/**
 * PrestaShop commerce compatibility
 * Restores Bootstrap 4-alpha behaviours that Tailwind preflight / utilities break:
 * collapse, tabs, modals, checkout steps, payment option visibility.
 */
.ps-hidden { display: none !important; }

.collapse {
  visibility: visible !important;
  display: none;
}
.collapse.in,
.collapse.show {
  display: block;
}

.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active,
.tab-content > .tab-pane.show,
.tab-content > .tab-pane.in { display: block; }

.nav-tabs .nav-link,
.nav-inline .nav-link { cursor: pointer; }
.nav-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 1rem; }

.modal { display: none; overflow: hidden; position: fixed; z-index: 1050; top: 0; right: 0; bottom: 0; left: 0; outline: 0; }
.modal.in,
.modal.show { display: block; }
.modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background: #000; opacity: .5; }
.modal-dialog { position: relative; width: auto; margin: 1.75rem auto; max-width: 720px; pointer-events: none; }
.modal-content { pointer-events: auto; background: #fffdf9; border: 1px solid #e4dacb; border-radius: 2px; }
.modal-header,
.modal-body,
.modal-footer { padding: 1rem 1.25rem; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e4dacb; }
.modal-footer { border-top: 1px solid #e4dacb; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.modal-header .close { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; }

.checkout-step .content { display: none; }
.checkout-step.-current .content { display: block; }
.checkout-step .step-edit { display: none; }
.checkout-step.-reachable.-complete .step-edit { display: inline-flex; align-items: center; cursor: pointer; }
.checkout-step .step-title { cursor: default; }
.checkout-step.-reachable .step-title { cursor: pointer; }
.checkout-step .done { display: none; }
.checkout-step.-complete .done { display: inline-block; }

.custom-radio,
.custom-checkbox { position: relative; display: inline-block; }
.custom-radio input,
.custom-checkbox input { margin-right: .4rem; }

body#checkout #content-wrapper,
body#cart #content-wrapper { width: 100%; }

#blockcart-modal .cart-content-btn { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
#blockcart-modal .product-image { max-width: 100%; height: auto; }

/* Hero: in-flow active slide + hide a second copy if hooked AND widgeted */
.sr-hero-slide.is-active { position: relative; inset: auto; opacity: 1; pointer-events: auto; min-height: clamp(560px, 64vw, 860px); }
.sr-home-cart-form { display:inline; margin:0; padding:0; }
.sr-home-cart-form .btn-flame { -webkit-appearance:none; appearance:none; }
