/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/* --- Wyrównanie wysokości kart produktów w Ecco Bella --- */

#products .product-miniature {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

#products .product-miniature .thumbnail-container {
  flex: 1 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
}

#products .product-miniature .product-description {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
}

/* Równa wysokość tytułów produktów */
#products .product-miniature .product-title {
  min-height: 3.5em !important;
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis;
}

/* Przyciski wyrównane do dołu */
#products .product-miniature .add-to-cart,
#products .product-miniature .add {
  margin-top: auto !important;
  align-self: flex-end !important;
}

/* === Newsletter / GDPR: natywny checkbox + normalny tekst === */

/* pokaż natywny checkbox */
.block_newsletter-form .custom-checkbox input[type="checkbox"]{
  appearance:auto !important;
  -moz-appearance:auto !important;
  position:static !important;
  opacity:1 !important;
  visibility:visible !important;
  width:16px !important;
  height:16px !important;
  margin:3px 8px 0 0 !important;
}

/* ukryj tylko pseudo-check z motywu (ten obok inputa) */
.block_newsletter-form .custom-checkbox > span,
.block_newsletter-form .custom-checkbox > span::before,
.block_newsletter-form .custom-checkbox > span::after,
.block_newsletter-form .custom-checkbox i{
  display:none !important;
  content:none !important;
}

/* tekst przy checkboxie – zdejmujemy styl „kwadracików” */
.block_newsletter-form .custom-checkbox label{
  display:inline-block !important;
  white-space:normal !important;
  line-height:1.5 !important;
  max-width:100% !important;
}
.block_newsletter-form .custom-checkbox label span{
  display:inline !important;
  border:0 !important;
  background:none !important;
  box-shadow:none !important;
  width:auto !important;
  height:auto !important;
  padding:0 !important;
  position:static !important;
  transform:none !important;
  clip:auto !important;
  text-decoration:none !important;
  color:inherit !important;
}

.block_newsletter {
  margin: 3rem 0!important;
}

.btn-comment-inverse, .btn-comment, .btn-primary, .btn {
  border-radius: 4px !important;
}

p.custom-checkbox-label {
  margin-bottom: 0 !important;
}

.form-control-static-comment {
  display: none;
}
.captcha_register.form-group.row.required.register.page_order.ver17 {
  display: none !important;
}

div.payment-option, div.AccordionItem {
  background: #fafafa;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  padding: 18px 19px 20px;
}

div.payment-option label {
  display: flex !important;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
div.payment-option span {
  font-weight: bold;
}

div.payment-option label img {
  width: auto !important;
  margin-right: 14px;
}

label[for="payment-option-7"] {
  text-align: left;
}

/* Zmiana stylu płatności kartą w DE */
#card-number, #expiration-date, #cvv {
  padding: 0 !important;
}

#card-form {
  margin-bottom: 10px;
}

.pp-field-wrapper:nth-child(1) {
  flex: 1;
}

.omniversepricing-notice {
  line-height: normal;
  padding: 0;
}

.promotion-price {
  vertical-align: super;
  color: red;
  text-decoration: line-through;
  padding-left: 5px;
  font-size: 0.7em;
}

/* DESPO custom css */

@media (min-width: 768px){
  #cart .remove-item-wrap {
    position: absolute;
    top: -50px;
    right: 10px;
  }
  .amenu-link::after {
    content: "\e313";
    font-family: "Material Icons";
  }
}

#cart #footer {
  padding-top: 0px;
}
#category #footer {
  padding-top: 0;
}
.an_trust_badges-container {
  display: none !important;
}
.an_homeslider .an_homeslider-desc p {
  color: white !important;
}
.an_homeslider .an_homeslider-desc .h2{
  color: white !important;
}

.shop-payments {
  display: flex;
  align-items: center;
  width: 50%;
  gap: 20px;
  max-width: 450px;
  justify-content: end;
}
.copyright-container .col-md-6 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.paymentlogo-ft {
  width: 100%;
  max-width: 40px;
}

/* =========================================================
   HEADER: stabilny układ prawej strony + ikonki płatności
   ========================================================= */

.header-nav.tablet-h .header-nav-inside .right-nav{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  flex-wrap: nowrap !important;
}

/* wyłącz floaty z modułów w displayNav2 */
.header-nav.tablet-h .header-nav-inside .right-nav > *{
  float: none !important;
}

/* kontener na ikonki */
.header-nav.tablet-h .header-payments-wrap{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 320px !important;
  overflow: hidden !important;
  line-height: 1 !important;
}

/* wrapper z payment-icons.tpl */
.header-nav.tablet-h .header-payments-wrap .header-payments{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;

  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}

/* obrazki */
.header-nav.tablet-h .header-payments-wrap .paymentlogo-hd,
.header-nav.tablet-h .header-payments-wrap img{
  display: block !important;
  height: 16px !important;
  max-height: 16px !important;
  width: auto !important;
  max-width: 70px !important;
  object-fit: contain !important;
}

/* awaryjnie: gdyby wrócił <ul> */
.header-nav.tablet-h .header-payments-wrap ul,
.header-nav.tablet-h .header-payments-wrap li{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.header-nav.tablet-h .header-payments-wrap ul{
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}
/* =========================================================
   FIX: header right-nav layout + payments zawsze skrajnie po prawej
   ========================================================= */

@media (min-width: 992px){
  /* .right-nav jako flex */
  .header-nav.tablet-h .header-nav-inside .right-nav{
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }

  /* ikony mają być ostatnie i wypchnięte na prawo */
  .header-nav.tablet-h .header-nav-inside .right-nav .header-payments-wrap{
    display: inline-flex !important;
    align-items: center !important;
    margin-left: auto !important;  /* to je wypycha na skraj */
    order: 999 !important;         /* zawsze na końcu */
    max-width: 260px !important;
    overflow: hidden !important;
    line-height: 1 !important;
  }

  .header-nav.tablet-h .header-payments{
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .header-nav.tablet-h .header-payments .paymentlogo-hd{
    height: 18px !important;
    width: auto !important;
    max-width: 80px !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* bezpieczeństwo: waluta/wishlist nie rozpycha do nowej linii */
  .header-nav.tablet-h .header-nav-inside .right-nav > *{
    flex: 0 0 auto !important;
  }
}
.hidden-md-down .row {
    margin: auto;
}
.pseudo-regular-price {
    vertical-align: super;
  color: red!important;
  text-decoration: line-through;
  padding-left: 5px;
  font-size: .7em;
}
/* selektor docelowy */

.header-nav-inside .row {
    width: 100%!important;
}
#footer .block_newsletter {
  margin-top: 0 !important;
}
.cart-usp{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:14px;
}

.cart-usp-item{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  line-height:1.35;
}

.cart-usp-item i{
  font-size:18px;
  color:#5ca60d;
}
/* wspólne ustawienia ikon */
.gl-topbar-hours i,
.gl-mobile-hours i{
  opacity:.85;
}

/* desktop – topbar */
.gl-topbar-hours{
  display:inline-flex;
  align-items:center;
  gap:6px;

  margin-left:10px;      /* odstęp od Serwis Klienta */
  padding-left:10px;

  border-left:1px solid rgba(0,0,0,.12);

  font-size:13px;
  color:#666;
  white-space:nowrap;
}

.gl-topbar-hours i{
  font-size:14px;
}

/* mobile menu */
.gl-mobile-hours{
  display:flex;
  align-items:center;
  gap:8px;

  margin-top:10px;
  padding:10px 0 10px 10px;  /* odstęp z lewej */

  border-top:1px solid rgba(0,0,0,.08);

  font-size:14px;
  color:#222;
}

.gl-mobile-hours i{
  font-size:16px;
}
@media (min-width: 992px){
  .header-nav.tablet-h .header-nav-inside .row{
    display:flex !important;
    align-items:center !important;
  }

  .header-nav.tablet-h .header-nav-inside .left-nav{
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
  }

  .header-nav.tablet-h .header-nav-inside .right-nav{
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin-left: auto !important;
  }
}
/* =========================================================
   Płatności: desktop + mobile
   ========================================================= */

/* desktop */
.gl-desktop-payments-bar{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  width:100% !important;
  padding:6px 8px 10px 0 !important;
}

.gl-desktop-payments-bar .header-payments{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  margin:0 !important;
  padding:0 !important;
  width:100% !important;
}

.gl-desktop-payments-bar .paymentlogo-hd{
  display:block !important;
  height:18px !important;
  width:auto !important;
  max-width:80px !important;
  object-fit:contain !important;
}

/* mobile top */
.gl-mobile-payments-top{
  display:none;
}

.gl-mobile-payments{
  display:none;
}

@media (max-width: 991.98px){
  .gl-desktop-payments-bar{
    display:none !important;
  }

  .gl-mobile-payments-top{
    display:block !important;
    width:100% !important;
    padding:8px 14px !important;
    background:#fff !important;
    border-bottom:1px solid rgba(0,0,0,.08) !important;
  }

  .gl-mobile-payments-top .header-payments{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    flex-wrap:wrap !important;
    margin:0 !important;
    padding:0 !important;
  }

  .gl-mobile-payments-top .paymentlogo-hd{
    display:block !important;
    height:16px !important;
    width:auto !important;
    max-width:68px !important;
    object-fit:contain !important;
  }

  .gl-mobile-payments{
    display:block !important;
    padding:10px 0 !important;
    border-bottom:1px solid rgba(0,0,0,.08) !important;
    margin-bottom:10px !important;
  }

  .gl-mobile-payments .header-payments{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    flex-wrap:wrap !important;
    margin:0 !important;
    padding:0 !important;
  }

  .gl-mobile-payments .paymentlogo-hd{
    display:block !important;
    height:18px !important;
    width:auto !important;
    max-width:72px !important;
    object-fit:contain !important;
  }
}

@media (min-width: 992px){
  .gl-mobile-payments-top,
  .gl-mobile-payments{
    display:none !important;
  }
}
.products {
    margin-bottom: -65px !important;
}
