/* Cart Next — React cart page. Reuses checkout-next.css tokens (--cn-*), buttons,
   and the .cn-page isolation resets. */

/* Wrapper is now a div inside the normal site header/footer (not the body), so
   drop the full-viewport/background the .cn-page base sets. */
.cn-page.cart-next-page { min-height: 0; background: transparent; }

/* Match the site page width across the WHOLE page — header, content and footer.
   On the cart page the theme's style.css (which sets .container to 1400px at
   ≥1400vw) happens to load BEFORE bootstrap's 1140px rule, so Bootstrap wins and
   every .container (header/footer included) ends up narrower than other pages.
   This body-scoped, higher-specificity rule restores parity regardless of order. */
@media (min-width: 1400px) {
  body.page-template-cart-next-template .container { max-width: 1400px; }
}

/* Sits inside the theme's #primary.content-area > .container, so it inherits the
   site's page width/gutters like every other page — no own max-width here.
   .cart-shell stacks the two-column layout and the full-width suggestions. */
.cart-next-page .cart-shell { padding: 28px 0 100px; }
.cart-next-page .cart-layout {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 34px;
}

/* Dotted-underline reveal links (change ZIP / have a coupon). */
.cn-page .cart-linkdotted {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--cn-blue); font-size: 13px; font-weight: 600;
  border-bottom: 1px dotted currentColor; line-height: 1.5;
}
.cn-page .cart-linkdotted:hover { color: var(--cn-purple); }
/* Lower-hierarchy variant — muted grey (e.g. optional Τ.Κ. precise-shipping). */
.cn-page .cart-linkdotted--muted { color: var(--cn-muted); font-weight: 500; }
.cn-page .cart-linkdotted--muted:hover { color: var(--cn-ink); }
.cart-main { flex: 1 1 auto; min-width: 0; }

.cart-title { font-size: 22px; font-weight: 800; color: var(--cn-purple); margin: 0 0 16px; }

/* Line items */
.cart-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-items.is-busy { opacity: .6; pointer-events: none; }
.cart-item {
  position: relative;
  /* Grid so a per-item validation message can drop onto its own full-width row
     (grid-column: 1/-1) WITHOUT ever pushing the qty/remove controls off the line
     — which is what flex-wrap did when the product name was long. */
  display: grid; align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  column-gap: 18px; row-gap: 6px;
  padding: 16px 18px; background: #fff;
  border: 1px solid var(--cn-line); border-radius: var(--cn-radius);
  box-shadow: 0 1px 3px rgba(16, 12, 40, 0.05); transition: box-shadow .15s, border-color .15s;
}
.cart-item:hover { box-shadow: 0 3px 12px rgba(16, 12, 40, 0.09); border-color: #d9d9e2; }
.cart-item__thumb { flex: 0 0 auto; width: 104px; height: 104px; border-radius: 10px; overflow: hidden; background: var(--cn-bg); display: inline-flex; padding: 4px; transition: opacity .15s; }
.cart-item__thumb:hover { opacity: .85; }
/* Per-item loader / success tick — top inner-right of the line, with padding. */
.cart-item__spin { position: absolute; top: 8px; right: 10px; width: 15px; height: 15px; border-width: 2px; }
.cart-item.is-updating .cart-item__price { opacity: .45; }
.cart-item__tick {
  position: absolute; top: 8px; right: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cn-green); color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  animation: cart-pop .2s ease-out;
}
@keyframes cart-pop { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cart-item__name { font-size: 16px; font-weight: 600; color: var(--cn-ink); line-height: 1.4; text-decoration: none; }
.cart-item__name:hover { color: var(--cn-purple); }
.cart-item__price { font-size: 17px; font-weight: 800; color: var(--cn-purple); display: inline-flex; align-items: baseline; gap: 8px; }
.cart-item__was { font-size: 14px; font-weight: 500; color: var(--cn-muted); text-decoration: line-through; }
/* Chosen cut-to-fit device on a cart line. */
.cart-item__cutfor { font-size: 12px; color: var(--cn-muted); }
.cart-item__cutfor strong { color: var(--cn-ink); font-weight: 600; }

/* Per-item delivery ETA (availability + backorder aware). Low in the hierarchy:
   small, muted, light weight — informative, not attention-grabbing. Neutral
   colour in all states — never discourage with red/orange. */
.cart-item__eta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--cn-muted); line-height: 1.3; font-weight: 400; }
.cart-item__eta svg { flex: 0 0 auto; width: 12px; height: 12px; opacity: .7; }
.cart-item__eta strong { color: inherit; font-weight: 500; }
.cart-item__eta-note { opacity: .8; }

.cart-item__qty { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.cn-page .cart-item__qty button {
  width: 32px; height: 32px; border: 1px solid var(--cn-line) !important; border-radius: 8px;
  background: #fff !important; color: var(--cn-ink) !important; font-size: 16px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.cn-page .cart-item__qty button:hover:not(:disabled) { border-color: var(--cn-purple) !important; color: var(--cn-purple) !important; }
.cn-page input.cart-item__qtynum {
  width: 46px; height: 32px; text-align: center; font-weight: 600; font-size: 14px;
  border: 1px solid var(--cn-line); border-radius: 6px; padding: 0 4px; background: #fff; color: var(--cn-ink);
  -moz-appearance: textfield;
}
.cn-page input.cart-item__qtynum:focus { border-color: var(--cn-blue); outline: none; }
.cn-page input.cart-item__qtynum::-webkit-outer-spin-button,
.cn-page input.cart-item__qtynum::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cn-page .cart-item__remove {
  flex: 0 0 auto; width: 30px; height: 30px; border: none !important; background: none !important;
  color: var(--cn-muted) !important; font-size: 14px; cursor: pointer; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.cn-page .cart-item__remove:hover { background: var(--cn-bg) !important; color: #c62828 !important; }

/* Right column — sticky; holds the delivery-estimate box + the summary box. */
.cart-aside {
  flex: 0 0 420px; position: sticky; top: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
/* Estimated-delivery box — its own wrapper above the summary (distinct look). */
.cart-eta {
  display: flex; flex-direction: column; gap: 0;
  background: rgba(46, 12, 100, 0.05); border: 1px solid rgba(46, 12, 100, 0.14);
  border-radius: var(--cn-radius); padding: 14px 24px; font-size: 14px; color: var(--cn-ink);
}
/* Postcode line — sits on top, divided from the estimate below. */
.cart-eta__zip { padding-bottom: 11px; margin-bottom: 11px; border-bottom: 1px solid rgba(46, 12, 100, 0.12); }
.cart-eta__main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cart-eta__main > svg { flex: 0 0 auto; align-self: flex-start; margin-top: 2px; color: var(--cn-purple); }
.cart-eta__body { display: flex; flex-direction: column; gap: 1px; line-height: 1.35; min-width: 0; }
.cart-eta__label { color: var(--cn-muted); font-size: 12.5px; }
.cart-eta__val { color: var(--cn-purple); font-weight: 700; font-size: 15px; }
.cart-eta__main .cart-ontime { margin-left: auto; align-self: center; }

/* Summary box (order synopsis). */
.cart-summary {
  background: #fff; border: 1px solid var(--cn-line); border-radius: var(--cn-radius); padding: 24px;
  font-size: 15px;
}
.cart-summary__title { font-size: 19px; font-weight: 700; color: var(--cn-purple); margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
/* Non-blocking loader — spins while a request is in flight; nothing is disabled. */
.cart-spinner {
  display: inline-block; width: 14px; height: 14px; flex: 0 0 auto;
  border: 2px solid rgba(46, 12, 100, 0.2); border-top-color: var(--cn-purple);
  border-radius: 50%; animation: cart-spin .7s linear infinite;
}
@keyframes cart-spin { to { transform: rotate(360deg); } }
.cn-sum__totals.is-updating { opacity: .55; transition: opacity .12s; }
.cn-page .cart-checkout { width: 100%; margin-top: 16px; min-height: 54px; font-size: 16px; }
/* Primary "next step" CTAs — label + arrow centered, arrow trails the text. */
.cn-page .cart-checkout, .cn-page .cart-shippop__cta, .cn-page .cart-mobilebar__cta { display: flex; align-items: center; justify-content: center; gap: 10px; }
.cart-cta__arrow { font-size: 1.15em; line-height: 1; font-weight: 600; margin-left: 2px; }
/* Breakdown rows read as secondary — muted, normal weight, smaller — so the
   grand total below stands out. */
.cart-summary .cn-sum__totals div { font-size: 14.5px; color: var(--cn-muted); }
.cart-summary .cn-sum__totals dt,
.cart-summary .cn-sum__totals dd { font-weight: 500; }
.cart-summary .cn-sum__discount dd { color: var(--cn-purple); font-weight: 600; }
/* Prominent grand total. */
.cart-summary .cn-sum__grand { font-size: 22px; margin-top: 6px; }

.cart-empty { text-align: center; padding: 60px 20px; color: var(--cn-muted); display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* Added-to-cart modal. */
.cart-modal {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
  background: rgba(16, 12, 40, 0.5); padding: 20px; animation: cart-modal-fade .15s ease-out;
}
@keyframes cart-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.cart-modal__box {
  position: relative; width: 100%; max-width: 420px; background: #fff;
  border-radius: 14px; padding: 22px; box-shadow: 0 12px 40px rgba(16, 12, 40, 0.25);
  animation: cart-modal-pop .18s cubic-bezier(.22,1,.36,1);
}
@keyframes cart-modal-pop { from { transform: translateY(8px) scale(.98); } to { transform: none; } }
.cn-page .cart-modal__close {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: none !important;
  background: none !important; color: var(--cn-muted) !important; font-size: 15px; cursor: pointer; border-radius: 50%;
}
.cn-page .cart-modal__close:hover { background: var(--cn-bg) !important; }
.cart-modal__head { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 800; color: var(--cn-purple); margin-bottom: 16px; }
.cart-modal__head svg { flex: 0 0 auto; color: var(--cn-green); }
.cart-modal__prod { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--cn-bg); border-radius: 10px; }
.cart-modal__prod img { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; border-radius: 8px; background: #fff; }
.cart-modal__prod-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-modal__prod-name { font-size: 14px; font-weight: 600; color: var(--cn-ink); line-height: 1.35; }
.cart-modal__prod-cut { font-size: 12px; color: var(--cn-muted); }
.cart-modal__prod-cut strong { color: var(--cn-ink); }
.cart-modal__prod-price { font-size: 15px; font-weight: 800; color: var(--cn-purple); }
.cart-modal__actions { display: flex; gap: 10px; margin-top: 18px; }
.cn-page .cart-modal__actions .cn-btn { flex: 1 1 0; width: auto; margin: 0; min-height: 46px; }

/* Express pay (Apple Pay / Google Pay / Link) — shown by the express script when
   a wallet is available. */
.cart-express { margin-top: 14px; }
.cart-express__or {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 12px;
  color: var(--cn-muted); font-size: 12px;
}
.cart-express__or::before, .cart-express__or::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--cn-line);
}
.cart-express__or span { flex: 0 0 auto; text-align: center; }
#admexp-payment-request-button { min-height: 46px; }
.cart-express__consent { margin: 8px 0 0; font-size: 11px; color: var(--cn-muted); line-height: 1.4; text-align: center; }
/* Processing overlay (display toggled inline by the express script). */
.cart-express__overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  align-items: center; justify-content: center; flex-direction: column;
}
.cart-express__spinner { width: 56px; height: 56px; border: 4px solid #e5e7eb; border-top-color: #111; border-radius: 50%; animation: admexp-spin .9s linear infinite; }
#admexp-overlay-msg { margin-top: 18px; font: 600 15px/1.4 system-ui, -apple-system, sans-serif; color: #111; text-align: center; max-width: 280px; }
#admexp-overlay-sub { margin-top: 6px; font: 400 12px/1.4 system-ui, -apple-system, sans-serif; color: #666; text-align: center; max-width: 300px; }
@keyframes admexp-spin { to { transform: rotate(360deg); } }

/* BoxNow free-shipping teaser */
.cart-teaser {
  background: rgba(46, 12, 100, 0.05); border: 1px solid rgba(46, 12, 100, 0.15);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.cart-teaser.is-free { background: rgba(0, 185, 0, 0.08); border-color: rgba(0, 185, 0, 0.3); }
.cart-teaser__txt { font-size: 14.5px; color: var(--cn-ink); }
/* BoxNow brand wording — green, in the teaser only. */
.cart-bn { color: #44D62C; font-weight: 700; }
.cart-teaser__bar { margin-top: 8px; height: 7px; border-radius: 4px; background: rgba(46, 12, 100, 0.12); overflow: hidden; }
.cart-teaser__bar span { display: block; height: 100%; background: var(--cn-purple); border-radius: 4px; transition: width .3s ease; }

/* Cart-based promotions group — one labelled block holding both carousels, so
   the shopper understands these are recommendations from their cart contents. */
.cart-promos { margin-top: 28px; }
.cart-promos__heading {
  font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--cn-muted); margin: 0 0 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--cn-line);
  display: flex; align-items: center; gap: 7px;
}
.cart-promos__heading svg { flex: 0 0 auto; color: var(--cn-purple); }

/* Cross-sells — full container width. A tinted panel, visually separated so
   they aren't mistaken for items already in the basket. */
.cart-cross {
  margin-top: 16px; padding: 22px 24px; border-radius: var(--cn-radius);
  background: var(--cn-bg); border: 1px solid var(--cn-line);
}
.cart-promos .cart-cross:first-of-type { margin-top: 0; }
.cart-cross__head { margin-bottom: 16px; }

/* Per-model sub-section inside one box (same category, different device). */
.cart-cross__group + .cart-cross__group { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--cn-line); }
.cart-cross__model {
  display: flex; align-items: center; gap: 6px; margin: 0 0 10px;
  font-size: 13px; font-weight: 700; color: var(--cn-ink);
}
.cart-cross__model svg { flex: 0 0 auto; color: var(--cn-purple); }

/* Carousel viewport + arrows (Device-Finder style). */
.cart-cross__viewport { position: relative; }
.cn-page .cart-cross__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff !important; color: var(--cn-purple) !important;
  border: 1px solid var(--cn-line) !important; box-shadow: 0 2px 10px rgba(16,12,40,.14);
}
.cn-page .cart-cross__nav:hover { border-color: var(--cn-purple) !important; }
.cart-cross__nav--prev { left: -12px; }
.cart-cross__nav--next { right: -12px; }

/* Expand toggle. */
.cn-page .cart-cross__toggle {
  display: inline-flex; align-items: center; gap: 6px; margin: 14px auto 0;
  background: none; border: none; cursor: pointer; padding: 6px 4px;
  color: var(--cn-blue); font-size: 13.5px; font-weight: 700;
}
.cart-cross__toggle { width: 100%; justify-content: center; }
.cart-cross__chev { transition: transform .15s; }
.cart-cross__chev.up { transform: rotate(180deg); }
/* Expanded → wrap every card into a grid (no horizontal scroll). The `is-expanded`
   class lives on the carousel div (per-carousel toggle), not the section. */
.cart-cross__carousel.is-expanded .cart-cross__list { flex-wrap: wrap; overflow: visible; }
.cart-cross__eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--cn-muted); margin-bottom: 3px;
}
.cart-cross__title { font-size: 17px; font-weight: 700; color: var(--cn-purple); margin: 0; }
/* Active-offer indicator — own line, purple pill. */
.cart-cross__offer {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--cn-purple);
  padding: 3px 9px; border-radius: 999px; line-height: 1.3;
}
.cart-cross__offer svg { flex: 0 0 auto; }
.cart-cross__list { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -ms-overflow-style: none; }
.cart-cross__list::-webkit-scrollbar { width: 0; height: 0; display: none; }
.cart-cross__item {
  flex: 0 0 190px; display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--cn-line); border-radius: 12px; padding: 12px; background: #fff;
}
/* Image + corner discount badge. */
.cart-cross__thumb { position: relative; display: block; height: 130px; border-radius: 10px; overflow: hidden; background: var(--cn-bg); }
.cart-cross__thumb img { width: 100%; height: 100%; object-fit: contain; }
/* Universal / cut-to-fit marker + model selector. */
.cart-cross__item.is-universal { border-color: var(--cn-purple); box-shadow: 0 0 0 1px rgba(46,12,100,.12) inset; }
.cart-cross__universal {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--cn-purple); color: #fff; font-size: 10px; font-weight: 800;
  line-height: 1; padding: 4px 7px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.cart-cross__universal svg { flex: 0 0 auto; }
.cart-cross__cut { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.cart-cross__cut-label { font-size: 11.5px; font-weight: 600; color: var(--cn-ink); }
.cn-page .cart-cross__cut select {
  width: 100%; height: 36px; padding: 0 8px; border: 1.5px solid var(--cn-line); border-radius: 8px;
  font-size: 13px; background: #fff; color: var(--cn-ink);
}
.cn-page .cart-cross__cut select:focus { border-color: var(--cn-purple); outline: none; }

.cart-cross__badge {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  background: var(--cn-purple); color: #fff; font-size: 11px; font-weight: 800;
  line-height: 1; padding: 4px 7px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
/* Fixed 2-line name so every card's price/button line up. */
.cart-cross__name { font-size: 14px; font-weight: 500; color: var(--cn-ink); text-decoration: none; line-height: 1.35; height: 4.05em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cart-cross__name:hover { color: var(--cn-purple); }
/* Price row: struck regular then the discounted price, baseline-aligned. */
.cart-cross__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-height: 24px; }
.cart-cross__was { font-size: 13px; font-weight: 500; color: var(--cn-muted); text-decoration: line-through; }
.cart-cross__now { font-size: 18px; font-weight: 800; color: var(--cn-purple); }
/* Pin the add button to the bottom so all buttons align across cards. */
.cn-page .cart-cross__add { width: 100%; font-size: 14px; padding: 10px 10px; margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.cn-page .cart-cross__add.is-adding { opacity: .85; }
.cart-cross__spin { width: 13px; height: 13px; border-width: 2px; }

/* Shipping-group selector */
.cart-ship { margin-bottom: 4px; }
.cart-ship__head { font-size: 13px; font-weight: 700; color: var(--cn-muted); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 10px; }
.cart-ship__opt {
  display: flex; align-items: center; gap: 10px; padding: 15px 13px; margin-bottom: 9px;
  border: 1.5px solid var(--cn-line); border-radius: 12px; cursor: pointer; font-size: 16px;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.cart-ship__opt:hover:not(.is-unavailable) { border-color: var(--cn-purple); }
.cart-ship__opt.is-selected { border-color: var(--cn-purple); background: rgba(46, 12, 100, 0.04); box-shadow: 0 0 0 1px var(--cn-purple) inset; }
.cart-ship__opt.is-unavailable { opacity: .55; cursor: not-allowed; }
.cart-ship__opt input { accent-color: var(--cn-purple); width: 20px; height: 20px; flex: 0 0 auto; }
.cart-ship__icon { flex: 0 0 auto; display: inline-flex; color: var(--cn-muted); }
.cart-ship__icon svg { width: 19px; height: 19px; }
.cart-ship__opt.is-selected .cart-ship__icon { color: var(--cn-purple); }
/* Wrap long labels (e.g. "Παραλαβή από το κατάστημα") to a second line instead of
   letting nowrap text overflow and overlap the cost / "Μη διαθέσιμο" on the right. */
.cart-ship__label { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--cn-ink); white-space: normal; line-height: 1.25; }
.cart-ship__cost { flex: 0 0 auto; font-weight: 700; font-size: 16px; color: var(--cn-purple); white-space: nowrap; text-align: right; }
.cart-ship__cost .is-free { color: var(--cn-green); }
.cart-ship__from { font-size: 12px; font-weight: 500; font-style: normal; color: var(--cn-muted); }
.cart-ship__na { font-size: 13px; font-weight: 500; color: var(--cn-muted); }
/* "Choose a method" validation state. */
.cart-ship.is-invalid .cart-ship__opt { border-color: #e4002b; }
.cart-ship__err { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #e4002b; }
.cart-ship__pending { color: var(--cn-muted); font-weight: 500; }
/* Checkout button looks inactive until a method is chosen (still clickable to
   trigger the validation message). */
.cn-page .cart-checkout.is-disabled { opacity: .55; }
.cn-page .cart-eta__zip input { width: 100%; height: 42px; padding: 0 12px; border: 1.5px solid var(--cn-line); border-radius: 9px; font-size: 14px; }
.cn-page .cart-eta__zip input:focus { border-color: var(--cn-blue); outline: none; }
/* Collapsed ZIP state — shows the applied Τ.Κ. + a "change" link. */
.cart-zip-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cart-zip-applied__txt { font-size: 13.5px; color: var(--cn-muted); }
.cart-zip-applied__txt strong { color: var(--cn-ink); font-weight: 700; }
.cart-ship__eta {
  margin-top: 10px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--cn-ink);
  background: rgba(46, 12, 100, 0.05); border: 1px solid rgba(46, 12, 100, 0.12);
  border-radius: 9px; padding: 10px 12px;
}
.cart-ship__eta > svg { flex: 0 0 auto; align-self: flex-start; margin-top: 2px; color: var(--cn-purple); }
/* Placed as its own section right above the totals. */
.cart-ship__eta--totals { margin-top: 2px; margin-bottom: 14px; }
/* Label on line 1, date on line 2 — never wrap mid-phrase. */
.cart-ship__eta-body { display: flex; flex-direction: column; gap: 1px; line-height: 1.35; min-width: 0; }
.cart-ship__eta-label { color: var(--cn-muted); font-size: 12.5px; }
.cart-ship__eta-val { color: var(--cn-purple); font-weight: 700; }
/* On-time dispatch trust stat — a compact green pill, pinned to the right of the
   ETA box (wraps under on narrow widths). */
.cart-ontime {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: #1f7a33; background: rgba(0, 185, 0, 0.10);
  padding: 3px 9px; border-radius: 999px; line-height: 1.3; white-space: nowrap;
}
.cart-ship__eta .cart-ontime { margin-left: auto; align-self: center; }
.cart-ontime svg { flex: 0 0 auto; }
.cart-ontime strong { font-weight: 800; }

/* Lightweight hover/focus tooltip. Hidden with display:none (not just opacity),
   so the absolutely-positioned bubble never adds to page width. Anchored to the
   right edge of the trigger so it opens inward and can't cause a scrollbar. */
.cart-tip { position: relative; cursor: help; outline: none; }
.cart-tip__bubble {
  display: none;
  position: absolute; right: 0; left: auto; bottom: calc(100% + 8px); z-index: 20;
  width: max-content; max-width: min(240px, 78vw);
  white-space: normal; /* reset the pill's nowrap so the text wraps inside 240px instead of overflowing */
  background: var(--cn-ink); color: #fff; font-size: 11.5px; font-weight: 500; line-height: 1.4;
  padding: 8px 10px; border-radius: 8px; box-shadow: 0 4px 16px rgba(16, 12, 40, 0.22);
  pointer-events: none;
}
.cart-tip__bubble::after {
  content: ""; position: absolute; top: 100%; right: 14px;
  border: 6px solid transparent; border-top-color: var(--cn-ink);
}
.cart-tip:hover .cart-tip__bubble,
.cart-tip:focus .cart-tip__bubble,
.cart-tip:focus-visible .cart-tip__bubble { display: block; }

/* Coupon */
/* Loyalty "Coins" — thin banner under the Box Now teaser. Gold accent; opens the
   My Coins modal / links to the loyalty page. */
.cn-page a.cart-coins {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: -4px 0 14px; padding: 8px 14px; border-radius: 10px;
  background: rgba(46, 12, 100, 0.045); border: 1px solid rgba(46, 12, 100, 0.14);
  color: var(--cn-ink); font-size: 13px; line-height: 1.3; text-decoration: none;
  transition: background .12s, border-color .12s;
}
.cn-page a.cart-coins:hover { background: rgba(46, 12, 100, 0.08); border-color: rgba(46, 12, 100, 0.25); }
.cart-coins strong { color: var(--cn-purple); font-weight: 800; }
.cart-coins__cta { flex: 0 0 auto; color: var(--cn-blue); font-weight: 700; font-size: 12.5px; }

.cart-coupon { border-top: 1px solid var(--cn-line); padding-top: 12px; margin-top: 12px; }
.cart-coupon__applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.cart-coupon__tag { display: inline-flex; align-items: center; gap: 6px; }
.cart-coupon__tag svg { flex: 0 0 auto; color: var(--cn-purple); }
.cart-coupon__amt { color: var(--cn-purple); font-weight: 700; }
/* Inline input + bound submit button (ZIP calculate, coupon apply). */
.cart-inline-form { display: flex; gap: 8px; align-items: stretch; }
.cn-page .cart-inline-form input {
  flex: 1 1 auto; min-width: 0; width: auto; height: 42px; padding: 0 12px;
  border: 1.5px solid var(--cn-line); border-radius: 9px; font-size: 14px;
}
.cn-page .cart-inline-form input:focus { border-color: var(--cn-blue); outline: none; }
.cn-page .cart-inline-form .cn-btn {
  flex: 0 0 auto; width: auto; margin-top: 0;
  min-height: 42px; height: 42px; padding: 0 16px; font-size: 14px; border-radius: 9px;
}

.cart-coupon__form { display: flex; gap: 8px; align-items: stretch; }
.cn-page .cart-coupon__form input {
  flex: 1 1 auto; min-width: 0; width: auto; height: 42px; padding: 0 12px;
  border: 1.5px solid var(--cn-line); border-radius: 9px; font-size: 14px;
}
.cn-page .cart-coupon__form input:focus { border-color: var(--cn-blue); outline: none; }
.cn-page .cart-coupon__form .cn-btn {
  flex: 0 0 auto; width: auto; margin-top: 0;
  min-height: 42px; height: 42px; padding: 0 16px; font-size: 14px; border-radius: 9px;
}
.cart-coupon__err { margin: 6px 0 0; font-size: 12.5px; color: #c62828; }

/* Sticky mobile checkout bar — hidden on desktop, shown on narrow screens. */
.cart-mobilebar { display: none; }

/* Mobile shipping popup — bottom sheet; hidden on desktop (selector is inline there). */
.cart-shippop { display: none; }

@media (max-width: 900px) {
  .cart-next-page .cart-shell { padding: 6px 12px 96px; }
  /* Tighten the theme breadcrumb banner → cart-title gap on mobile (this template only). */
  body.page-template-cart-next-template .banner .banner-content { padding-top: 12px; padding-bottom: 4px; }
  .cart-layout { flex-direction: column; gap: 18px; }
  .cart-aside { position: static; flex-basis: auto; width: 100%; }
  .cart-summary { width: 100%; padding: 18px; }
  .cart-eta { padding-left: 18px; padding-right: 18px; }
  .cart-title { font-size: 20px; margin-bottom: 12px; }

  /* On mobile the shipping selector is chosen in the popup, not inline in the summary. */
  .cart-summary .cart-ship { display: none; }

  .cart-shippop {
    display: flex; position: fixed; inset: 0; z-index: 100000; align-items: flex-end;
    background: rgba(16, 12, 40, 0.5);
  }
  .cart-shippop__box {
    width: 100%; background: #fff; border-radius: 16px 16px 0 0; padding: 16px;
    display: flex; flex-direction: column; gap: 12px; max-height: 85vh; overflow-y: auto;
    box-shadow: 0 -8px 30px rgba(16, 12, 40, 0.25);
  }
  .cart-shippop__head { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 800; color: var(--cn-purple); }
  .cn-page .cart-shippop__close { border: 0; background: none; font-size: 20px; line-height: 1; color: #888; cursor: pointer; padding: 4px; }
  .cart-shippop__opts { display: flex; flex-direction: column; gap: 0; }
  /* Long labels (e.g. «Παραλαβή από το κατάστημα») wrap instead of colliding with the price. */
  .cart-shippop .cart-ship__label { white-space: normal; line-height: 1.25; }
  .cart-shippop .cart-ship__cost { padding-left: 8px; }
  .cn-page .cart-shippop__cta { width: 100%; min-height: 52px; font-size: 16px; justify-content: center; white-space: nowrap; }

  /* Cart item → grid: image left (full height), name/price top, remove top-right,
     quantity controls on their own row below. Keeps everything readable + tappable. */
  .cart-item {
    display: grid; gap: 6px 12px; padding: 12px;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "thumb info remove"
      "thumb qty  qty";
    align-items: start;
  }
  .cart-item__thumb { grid-area: thumb; width: 76px; height: 76px; align-self: center; }
  .cart-item__info { grid-area: info; }
  .cart-item__remove { grid-area: remove; align-self: start; }
  .cart-item__qty { grid-area: qty; justify-self: start; }
  /* Bigger tap targets for the stepper on touch. */
  .cn-page .cart-item__qty button { width: 36px; height: 36px; font-size: 18px; }
  .cn-page input.cart-item__qtynum { width: 48px; height: 36px; font-size: 15px; }
  .cart-item__spin, .cart-item__tick { top: 10px; right: 12px; }

  /* Cross-sell cards a touch narrower so more peek into view; keep swipe scroll. */
  .cart-cross { padding: 16px; }
  .cart-cross__item { flex-basis: 158px; }
  .cart-cross__thumb { height: 110px; }
  /* Scroll-snap the carousel for a nicer swipe; hide arrows (touch swipe instead). */
  .cart-cross__list { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .cart-cross__item { scroll-snap-align: start; }
  .cart-cross__nav { display: none; }

  /* The in-summary CTA is replaced by the sticky bar on mobile. */
  .cn-page .cart-checkout { display: none; }

  /* Sticky bottom bar. */
  .cart-mobilebar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--cn-line);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
  }
  .cart-mobilebar__info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .cart-mobilebar__label { font-size: 11px; color: var(--cn-muted); }
  .cart-mobilebar__label em { font-style: normal; }
  .cart-mobilebar__total { font-size: 19px; font-weight: 800; color: var(--cn-purple); }
  .cn-page .cart-mobilebar__cta {
    flex: 1 1 auto; width: auto; margin: 0; min-height: 50px;
    justify-content: center; white-space: nowrap; padding-left: 14px; padding-right: 14px;
  }
  .cart-mobilebar__cta .cart-cta__arrow { flex: 0 0 auto; }
}

/* Phones: an expanded carousel wraps to a clean 2-up grid (default cards are 190px,
   which wrap 1–2 unevenly). gap stays 14px → each card = 50% - 7px fits exactly two. */
@media (max-width: 600px) {
  .cart-cross__carousel.is-expanded .cart-cross__item { flex: 0 0 calc(50% - 7px); }
}

@media (max-width: 380px) {
  .cart-item__thumb { width: 64px; height: 64px; }
  .cart-item__name { font-size: 13px; }
}

/* Per-item quantity validation message — sits at the BOTTOM of the cart line,
   full width (the line wraps it onto its own row). Light, non-alarming. */
.cart-item__msg {
  grid-column: 1 / -1; margin: 0;
  font-size: 12.5px; font-weight: 600; color: #7a5314;
  background: #fff6ea; border: 1px solid #f0d9b5; border-radius: 8px;
  padding: 7px 10px; line-height: 1.35;
}
