/* Checkout popup (static/_shop.js), in O Positiv's palette and fonts (red #c41423, ink #2d2926, cream #fffaf4,
   pink rule #f2cec8; Proxima Nova, Bookmania titles). Logical properties, so the Arabic (RTL) pages mirror it. */
.op-co { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; font-family: "Proxima Nova", system-ui, sans-serif; color: #2d2926; }
.op-co[hidden] { display: none; }
.op-co__backdrop { position: absolute; inset: 0; background: rgba(45, 41, 38, .55); animation: op-co-fade .2s ease; }
.op-co__panel { position: relative; display: flex; flex-direction: column; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: #fffaf4; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); overflow: hidden; animation: op-co-up .25s ease; }
.op-co__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-block-end: 1px solid #f2cec8; }
.op-co__title { margin: 0; font-family: "Bookmania", Georgia, serif; font-size: 1.5rem; color: #c41423; line-height: 1.2; }
.op-co__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #2d2926; font-size: 28px; line-height: 1; cursor: pointer; }
.op-co__close:hover { background: rgba(196, 20, 35, .08); }
.op-co__body { overflow-y: auto; padding: 16px 20px 20px; -webkit-overflow-scrolling: touch; }
.op-co__summary { background: #fff; border: 1px solid #f2cec8; border-radius: 12px; padding: 12px 14px; margin-block-end: 14px; }
.op-co__items { list-style: none; margin: 0; padding: 0; }
.op-co__item { display: flex; align-items: center; gap: 12px; padding-block: 8px; }
.op-co__item + .op-co__item { border-block-start: 1px solid #f7e4df; }
.op-co__thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; object-fit: contain; background: #fdf3ec; }
.op-co__item-text { flex: 1 1 auto; min-width: 0; font-size: .95rem; line-height: 1.35; }
.op-co__item-title { display: block; font-weight: 700; }
.op-co__item-qty { color: #6f6864; font-size: .85rem; }
.op-co__item-price { flex: 0 0 auto; font-weight: 700; white-space: nowrap; }
.op-co__totals { margin-block-start: 8px; padding-block-start: 10px; border-block-start: 1px dashed #f2cec8; font-size: .95rem; }
.op-co__row { display: flex; justify-content: space-between; gap: 12px; padding-block: 3px; }
.op-co__row--total { font-size: 1.15rem; font-weight: 800; padding-block-start: 6px; }
.op-co__free { color: #c41423; font-weight: 700; }
.op-co__info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-end: 16px; }
.op-co__badge { padding: 10px 12px; border-radius: 12px; background: #fde9ed; font-size: .85rem; line-height: 1.3; }
.op-co__badge strong { display: block; font-size: .95rem; color: #c41423; }
.op-co__field { margin-block-end: 12px; }
.op-co__label { display: block; margin-block-end: 5px; font-size: .95rem; font-weight: 700; }
.op-co__label span { color: #c41423; }
.op-co__input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 11px 16px; border: 1.5px solid #e3c9c2; border-radius: 10px; background: #fff; color: #2d2926; font: inherit; font-size: 1rem; outline: none; }
textarea.op-co__input { min-height: 84px; resize: vertical; }
.op-co__input:focus { border-color: #c41423; box-shadow: 0 0 0 3px rgba(196, 20, 35, .15); }
.op-co__field.is-invalid .op-co__input { border-color: #c41423; }
.op-co__err { display: none; margin: 4px 0 0; color: #c41423; font-size: .85rem; }
.op-co__field.is-invalid .op-co__err { display: block; }
.op-co__input[type="tel"] { direction: ltr; text-align: start; }
[dir="rtl"] .op-co__input[type="tel"] { text-align: end; }
.op-co__city { position: relative; }
.op-co__list { position: absolute; inset-inline: 0; inset-block-start: calc(100% + 4px); z-index: 2; max-height: 220px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; background: #fff; border: 1.5px solid #c41423; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.op-co__list[hidden] { display: none; }
.op-co__opt { padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.op-co__opt small { color: #6f6864; margin-inline-start: 6px; }
.op-co__opt:hover { background: #fde9ed; }
.op-co__none { padding: 9px 12px; color: #6f6864; }
.op-co__hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.op-co__alert { display: none; margin-block: 4px 12px; padding: 10px 14px; border-radius: 10px; background: #fde9ed; color: #a1001f; }
.op-co__alert.is-shown { display: block; }
.op-co__submit { width: 100%; min-height: 54px; margin-block-start: 6px; border: 0; border-radius: 100px; background: #c41423; color: #fff; font: inherit; font-size: 1.05rem; font-weight: 800; letter-spacing: .02em; cursor: pointer; }
.op-co__submit[disabled] { opacity: .65; cursor: progress; }
.op-co__note { margin: 10px 0 0; text-align: center; color: #6f6864; font-size: .85rem; }
.op-co__thanks { text-align: center; }
.op-co__thanks[hidden] { display: none; }
.op-co__check { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-block: 4px 10px; border-radius: 50%; background: #c41423; color: #fff; font-size: 30px; }
.op-co__thanks-title { margin: 0 0 4px; font-family: "Bookmania", Georgia, serif; font-size: 1.6rem; color: #c41423; }
.op-co__number { margin: 0 0 14px; }
.op-co__recap { text-align: start; background: #fff; border: 1px solid #f2cec8; border-radius: 12px; padding: 12px 14px; margin-block-end: 14px; font-size: .95rem; }
.op-co__recap dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; }
.op-co__recap dt { color: #6f6864; }
.op-co__recap dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.op-co__next { margin: 0 0 14px; color: #6f6864; line-height: 1.45; }
.op-co__wa { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border-radius: 100px; background: #25d366; color: #fff; font-weight: 800; text-decoration: none; }
.op-co__continue { width: 100%; min-height: 48px; margin-block-start: 10px; border: 1.5px solid #c41423; border-radius: 100px; background: transparent; color: #c41423; font: inherit; font-weight: 800; cursor: pointer; }
@keyframes op-co-fade { from { opacity: 0; } }
@keyframes op-co-up { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 749px) {
  .op-co { align-items: flex-end; }
  .op-co__panel { width: 100vw; max-height: 94vh; border-radius: 16px 16px 0 0; }
  .op-co__info { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .op-co__backdrop, .op-co__panel { animation: none; } }
body.op-co-open { overflow: hidden; }

/* Translated labels are longer than O Positiv's English ones: let the buy box's "Add On / Save with Bundles"
   toggle wrap instead of widening the page (French "Économisez avec les coffrets"). */
[class*="_product-upsell-toggle__button_"] { white-space: normal; }

/* "afterpay available for orders above $45" under the buy box: no Afterpay in Morocco (the cart drawer's line is gone too) */
[class*="_afterpay_"] { display: none !important; }

/* "Add" buttons of the buy box's add-on list: a fixed 70 px fits "Add" but cuts "AJOUTER"; grow with the text */
[class*="shop-upsell-atc"] { width: auto !important; max-width: none !important; min-width: 70px; flex-shrink: 0; padding-left: 10px; padding-right: 10px; white-space: nowrap; }

/* Review carousel cards have a fixed height (350 px, 260 px on desktop) and their name/badge sit at the bottom: a
   longer translated review ran into the name. Same size whenever the text fits; otherwise every card of the
   carousel grows to the tallest one. */
[class*="_review-carousel-item_"]:not([class*="__"]) { height: auto !important; min-height: 350px; padding-bottom: 70px; flex: 1 0 auto; box-sizing: border-box; }
.swiper-slide:has(> [class*="_review-carousel-item_"]) { height: auto; display: flex; flex-direction: column; }
@media (min-width: 1025px) { [class*="_review-carousel-item_"]:not([class*="__"]) { min-height: 260px; padding-bottom: 70px; } }
