/*
Theme Name: Ecomus Child
Theme URI: https://wpecomus.com/
Author: DrFuri
Author URI: http://drfuri.com/
Description: Multipurpose WooCommerce WordPress Theme
Version: 1.0.0
Requires at least: 5.0
Tested up to: 5.8
Requires PHP: 7.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecomus
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: ecomus
*/

/* --- GoPay  --- */

.woocommerce #payment .payment_methods.methods label[for="payment_method_wc_gopay_gateway"] img{
	height: auto;
	max-width: 20%;!important
	margin-left: auto;
    float: right;
}

.payment_method_wc_gopay_gateway_selection {
    border-bottom: 0px dashed;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;

}

form.checkout .woocommerce-checkout-payment .payment_box {
    margin-top: 12px;
    font-size: 14px;
    font-size: 0.875rem;
    color: var(--em-color__base);
}

.payment_method_wc_gopay_gateway_selection img {
    height: 25px !important; 
    width: auto !important;
}

.payment_method_wc_gopay_gateway_selection[name="APPLE_PAY"] img {
    border-radius: 0 !important;
}

form.checkout .woocommerce-checkout-payment ul.wc_payment_methods li {
   padding-bottom: 12px;
	padding: 24px 0;
    border-bottom: 1px solid var(--em-border-color);

	}

/* TVRDÝ FIX KRUHŮ */
.ecomus-icon-box-widget__item.horizontal .ecomus-icon-box-widget__icon{
  position: relative;
  width: 50px !important;
  height: 50px !important;          /* žádné % z řádku */
  flex: 0 0 50px !important;         /* ať se nenatahuje */
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  align-self: center !important;     /* zruší stretch od rodiče */
}

/* samotný dokonalý kruh */
.ecomus-icon-box-widget__item.horizontal .ecomus-icon-box-widget__icon::before{
  content: "";
  position: absolute;
  inset: 0;                          /* vyplní přesně 50×50 */
  border-radius: 50% !important;
  border: 1px solid var(--em-border-color, #e5e5e5) !important;
  background: transparent;
}

/* ikonka uvnitř */
.ecomus-icon-box-widget__item.horizontal .ecomus-icon-box-widget__icon > svg,
.ecomus-icon-box-widget__item.horizontal .ecomus-icon-box-widget__icon > img{
  width: 22px !important;
  height: 22px !important;
  display: block !important;
}

/* pro jistotu na řádku */
.ecomus-icon-box-widget__item.horizontal{
  align-items: flex-start !important; /* žádný stretch na dětech */
}

/* --- ZÁSILKOVNA  --- */

/* řádka dopravy jako flex kontejner */
.packeta-widget.after-rate{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px 12px;
}

/* wrapper pro CTA + logo (přidána mezera pod nápisem) */
.packeta-widget.after-rate .packeta-widget-button{
  display:flex;
  align-items:center;
  width:100%;
  gap:12px;
  min-width:0;            /* pro správnou ellipsu */
  margin-top:12px;        /* větší odsazení od "Zásilkovna:" */
}

/* reset starého width:150px z pluginu */
.packeta-widget.after-rate .packeta-widget-button button,
.packeta-widget.after-rate .packeta-widget-button a.button{
  width:auto !important;
}

/* CTA vlevo */
.packeta-widget.after-rate .packeta-widget-button button,
.packeta-widget.after-rate .packeta-widget-button a.button{
  display:inline-flex;
  align-items:center;
  padding:6px 18px;
  line-height:1.2;
  font-size:14px;
  order:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:calc(100% - 57px); /* 45 logo + 12 mezera */
  flex:0 1 auto;
}

/* logo vpravo (fix) */
.packeta-widget.after-rate .packeta-widget-button img{
  width:45px !important;
  height:45px !important;
  object-fit:contain;
  display:block !important;
  order:2;
  margin-left:auto;
  flex:0 0 45px;
}

/* --- ADRESA / PLACE POD ŘÁDEK A DOLEVA --- */
.packeta-widget.after-rate .packeta-widget-info-success,
.packeta-widget.after-rate .packeta-widget-info-error,
.packeta-widget.after-rate .packeta-selected-branch,
.packeta-widget.after-rate .packeta-widget-branch,
.packeta-widget.after-rate [class*="selected"][class*="branch"],
.packeta-widget.after-rate [class*="widget-info"],
.packeta-widget.after-rate .packeta-widget-place{
  order:10 !important;
  display:block !important;
  flex-basis:100% !important;
  width:100% !important;
  text-align:left !important;
  float:none !important;
  margin-top:4px;
}

/* bezpečné zalomení dlouhých řádků v .packeta-widget-place */
.packeta-widget.after-rate .packeta-widget-place{
  white-space:normal !important;
  word-break:normal;
  overflow-wrap:anywhere;
}

/* některé šablony dávají text u dopravy na střed/pravou – zrušíme to i na p */
.packeta-widget.after-rate p{
  margin:0;
  text-align:left !important;
}

/* --- Mobilní úpravy: žádná “dlaždice”, menší logo, o chlup větší mezera --- */
@media (max-width: 640px){
  .packeta-widget.after-rate img{
    width:32px !important;
    height:32px !important;
    object-fit:contain !important;
  }
  .packeta-widget.after-rate .packeta-widget-button{
    flex-wrap:nowrap;
    margin-top:14px; /* větší mezera na mobilu */
  }
  .packeta-widget.after-rate .packeta-widget-button button,
  .packeta-widget.after-rate .packeta-widget-button a.button{
    max-width:calc(100% - 44px);
  }
}

/* úplně úzké telefony – raději dovolit zalomení textu v CTA než ellipsu */
@media (max-width: 360px){

  .packeta-widget.after-rate .packeta-widget-button button,
  .packeta-widget.after-rate .packeta-widget-button a.button{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    max-width:100%;
  }
}