/* ==========================================================================
   Cart redesign (MCA_Cart_Redesign) — loaded only on the cart page.
   Approved mockup: mockups/cart-redesign/cart-mockup.html (v1, 2026-11-18).
   Same design language as checkout.css (the key ticket, steps, tokens); written as its own
   file because checkout.css styles a full page shell that the cart (which keeps the site
   header and footer) does not have. Every rule is scoped under .mcc; nothing styles <body>.

   Colours: the Elementor globals, with the same values as fallbacks (documented exception to
   "no hard-coded hex": the fallback IS the global). The extra greys are the checkout's tokens.
   ========================================================================== */

.mcc {
	--mcc-primary: var(--e-global-color-primary, #1E90FF);
	--mcc-green: var(--e-global-color-secondary, #0D3B2E);
	--mcc-text: var(--e-global-color-text, #1A1A1A);
	--mcc-lime: var(--e-global-color-accent, #7FD820);
	--mcc-ground: #EEF2EF;
	--mcc-sheet: #FFFFFF;
	--mcc-rule: #DDE4E0;
	--mcc-field: #C3CEC8;
	--mcc-muted: #55625C;
	--mcc-link: #0A62BE;
	--mcc-error: #B42318;
	--mcc-green-2: #14473A;
	--mcc-on-green: rgba(255, 255, 255, .78);
	--mcc-rule-on-green: rgba(255, 255, 255, .16);
	--mcc-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	--mcc-ease: cubic-bezier(.16, 1, .3, 1);

	position: relative;
	max-width: 1120px;
	margin: 0 auto;
	padding: 22px 0 64px;
	color: var(--mcc-text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
/* Full-width page ground. XStore's .template-container (overflow-x: hidden, checked live
   2026-11-18) keeps the 100vw layer from adding a horizontal scrollbar; every ancestor up to it is
   transparent, so z-index -1 only goes under the page's white canvas. Not isolation/clip-path:
   either would trap or clip the phone's fixed total bar. */
.mcc::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--mcc-ground); z-index: -1; }
.content-page:has(.mcc) { padding-bottom: 0; }
.mcc *, .mcc *::before, .mcc *::after { box-sizing: border-box; }
.mcc [hidden] { display: none !important; }
.mcc a { color: var(--mcc-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mcc a:hover { text-decoration-thickness: 2px; }
.mcc :focus-visible { outline: 2px solid var(--mcc-primary); outline-offset: 3px; border-radius: 4px; }
.mcc .mco-ico { flex: none; display: inline-block; vertical-align: middle; }

/* ── Steps (cart = step 1) ────────────────────────────────────────────────── */
.mcc .mcc-steps { margin: 0 0 18px; }
.mcc .mcc-steps__d { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--mcc-muted); }
.mcc .mcc-steps__d li { display: flex; align-items: center; gap: 7px; margin: 0; }
.mcc .mcc-dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1.5px solid var(--mcc-field); }
.mcc .is-now { color: var(--mcc-green); font-weight: 600; }
.mcc .is-now .mcc-dot { border-color: var(--mcc-green); background: var(--mcc-green); color: var(--mcc-lime); }
.mcc .mcc-bar { width: 32px; height: 1px; background: var(--mcc-field); }
.mcc .mcc-steps__m { display: none; margin: 0; font-size: 13px; font-weight: 600; color: var(--mcc-green); }

/* ── Notices ──────────────────────────────────────────────────────────────── */
.mcc .woocommerce-notices-wrapper:not(:empty) { margin: 0 0 16px; }
.mcc .woocommerce-error, .mcc .woocommerce-info, .mcc .woocommerce-message { margin: 0 0 12px; padding: 14px 18px; border-radius: 10px; list-style: none; background: var(--mcc-sheet); border: 1px solid var(--mcc-rule); border-left: 4px solid var(--mcc-green); color: var(--mcc-text); font-size: 14px; }
.mcc .woocommerce-error { border-left-color: var(--mcc-error); }
.mcc .woocommerce-error li { margin: 0; }
.mcc .woocommerce-message::before, .mcc .woocommerce-info::before, .mcc .woocommerce-error::before { display: none; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.mcc .mcc-form { margin: 0; }
.mcc .mcc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; align-items: start; }
.mcc .mcc-sheet { background: var(--mcc-sheet); border-radius: 12px; box-shadow: 0 1px 2px rgba(13, 59, 46, .06), 0 10px 28px -16px rgba(13, 59, 46, .14); /* secondary at 6% / 14% */ }
.mcc .mcc-side { position: sticky; top: 20px; min-width: 0; }

/* ── Product list ─────────────────────────────────────────────────────────── */
.mcc .mcc-list__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 24px 28px 8px; }
.mcc .mcc-list__h h1 { margin: 0; padding: 0; font-family: inherit; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; color: var(--mcc-green); text-transform: none; }
.mcc .mcc-list__h span { font-size: 14px; color: var(--mcc-muted); }
.mcc .mcc-rows { list-style: none; margin: 0; padding: 0 28px; border: 0; width: auto; }
.mcc .mcc-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; grid-template-areas: "img info qty line" "img rm rm rm"; gap: 4px 18px; align-items: center; margin: 0; padding: 18px 0; border-top: 1px solid var(--mcc-rule); }
.mcc .mcc-row:first-child { border-top: 0; }
.mcc .mcc-img { grid-area: img; align-self: start; width: 64px; height: 78px; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--mcc-rule); display: block; }
.mcc .mcc-img a { display: block; height: 100%; }
.mcc .mcc-img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.mcc .mcc-info { grid-area: info; min-width: 0; }
.mcc .mcc-name { font-weight: 600; font-size: 15px; line-height: 1.35; }
.mcc .mcc-name a { color: var(--mcc-text); text-decoration: none; }
.mcc .mcc-name a:hover { text-decoration: underline; }
.mcc .mcc-info dl.variation { margin: 4px 0 0; font-size: 12.5px; color: var(--mcc-muted); }
.mcc .mcc-info dl.variation dt, .mcc .mcc-info dl.variation dd, .mcc .mcc-info dl.variation p { display: inline; margin: 0; }
.mcc .mcc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.mcc .mco-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 3px 9px 3px 7px; border-radius: 99px; background: rgba(13, 59, 46, .07); /* secondary 7% */ color: var(--mcc-green); }
.mcc .mcc-unit { font-size: 13px; color: var(--mcc-muted); font-variant-numeric: tabular-nums; }
.mcc .mcc-unit .amount, .mcc .mcc-unit bdi { color: inherit; font-weight: 400; }

.mcc .mcc-qty { grid-area: qty; display: inline-flex; align-items: stretch; height: 40px; border: 1px solid var(--mcc-field); border-radius: 8px; overflow: hidden; background: #fff; }
.mcc .mcc-qty input.qty { width: 46px; height: 100%; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--mcc-rule); border-right: 1px solid var(--mcc-rule); border-radius: 0; background: #fff; box-shadow: none; text-align: center; font: inherit; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mcc-text); -moz-appearance: textfield; appearance: textfield; }
.mcc .mcc-qty input.qty::-webkit-outer-spin-button, .mcc .mcc-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mcc .mcc-qty__fixed { display: grid; place-items: center; width: 46px; font-weight: 600; }
.mcc .mcc-qty.is-busy { opacity: .6; }

.mcc .mcc-line { grid-area: line; min-width: 80px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.mcc .mcc-line .amount, .mcc .mcc-line bdi { color: var(--mcc-text); }
.mcc .mcc-rm { grid-area: rm; }
.mcc .mcc-rm a.remove { display: inline-flex; align-items: center; gap: 5px; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; line-height: 1.4; font-weight: 400; color: var(--mcc-muted) !important; text-decoration: none; }
.mcc .mcc-rm a.remove:hover { color: var(--mcc-error) !important; background: none; }
.mcc .mcc-rm a.remove::before, .mcc .mcc-rm a.remove::after { display: none; }

.mcc .mcc-list__f { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 28px 22px; border-top: 1px solid var(--mcc-rule); font-size: 14px; }
.mcc .mcc-empty-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mcc-muted) !important; }
.mcc .mcc-clp { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--mcc-ease); }
.mcc .mcc-clp > div { overflow: hidden; min-height: 0; }
.mcc .mcc-clp.is-open { grid-template-rows: 1fr; }
.mcc .mcc-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 28px 22px; padding: 14px 16px; border-radius: 10px; background: #FEF3F2; /* error tint */ font-size: 14px; }
.mcc .mcc-confirm span { flex: 1 1 220px; font-weight: 600; }
.mcc .mcc-confirm__yes { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 19px; background: var(--mcc-error); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.mcc .mcc-actions { display: none; }

/* ── Key ticket ───────────────────────────────────────────────────────────── */
.mcc .mcc-totals { width: auto; float: none; margin: 0; padding: 0; border: 0; }
.mcc .mcc-ticket { background: var(--mcc-green); color: #fff; border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(13, 59, 46, .6); /* secondary 60% */ }
.mcc .mcc-t-body { padding: 22px 24px 20px; }
.mcc .mcc-lbl { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 500; color: var(--mcc-on-green); }
.mcc .mcc-lbl b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.mcc .mcc-stack { position: relative; isolation: isolate; margin-top: 7px; }
.mcc .mcc-key { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.mcc .mcc-key span { height: 30px; display: grid; place-items: center; border-radius: 5px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(127, 216, 32, .3); /* accent 30% */ font: 600 11.5px/1 var(--mcc-mono); letter-spacing: .02em; color: var(--mcc-lime); }
.mcc .is-many .mcc-stack { margin-bottom: 10px; }
.mcc .is-many .mcc-key { background: var(--mcc-green); border-radius: 6px; }
.mcc .is-many .mcc-stack::before, .mcc .is-many .mcc-stack::after { content: ""; position: absolute; inset: 0; border-radius: 6px; border: 1px solid rgba(127, 216, 32, .4); /* accent 40% */ background: var(--mcc-green-2); z-index: -1; }
.mcc .is-many .mcc-stack::before { transform: translateY(5px) scaleX(.96); }
.mcc .is-many .mcc-stack::after { transform: translateY(10px) scaleX(.92); z-index: -2; opacity: .55; }
.mcc .mcc-key-note { margin: 8px 0 0; font-size: 12.5px; color: var(--mcc-on-green); }
.mcc .mcc-eta { margin-top: 14px; display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; }
.mcc .mcc-eta .mco-ico { margin-top: 3px; color: var(--mcc-lime); }
.mcc .mcc-perf { position: relative; margin: 0 20px; border-top: 1.5px dashed rgba(255, 255, 255, .28); }
.mcc .mcc-perf::before, .mcc .mcc-perf::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--mcc-ground); }
.mcc .mcc-perf::before { left: -29px; }
.mcc .mcc-perf::after { right: -29px; }
.mcc .mcc-stub { padding: 16px 24px 22px; }
.mcc .mcc-srow { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--mcc-on-green); }
.mcc .mcc-srow span:last-child { color: #fff; text-align: right; }
.mcc .mcc-stub .amount, .mcc .mcc-stub bdi { color: inherit; }
.mcc .mcc-stub .woocommerce-remove-coupon { color: var(--mcc-on-green); font-size: 12.5px; margin-left: 6px; }
.mcc .mcc-stub > .mcc-textbtn { margin: 8px 0 2px; }
.mcc .mcc-coupon { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.mcc .mcc-coupon input#coupon_code { flex: 1; min-width: 0; width: auto; height: 42px; margin: 0; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 8px; padding: 0 12px; font: inherit; font-size: 15px; letter-spacing: .03em; box-shadow: none; }
.mcc .mcc-coupon input#coupon_code::placeholder { color: rgba(255, 255, 255, .82); }
.mcc .mcc-coupon input#coupon_code:focus { outline: none; border-color: #fff; }
.mcc .mcc-coupon .coupon-error-notice { flex-basis: 100%; margin: 0; font-size: 13px; color: #fff; }
.mcc .mcc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--mcc-rule-on-green); font-variant-numeric: tabular-nums; }
.mcc .mcc-total > span:first-child { font-size: 15px; font-weight: 600; }
.mcc .mcc-total strong, .mcc .mcc-total .amount { font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.mcc .mcc-total small { font-size: 12px; font-weight: 500; color: var(--mcc-on-green); margin-right: 6px; }
.mcc .mcc-total .includes_tax { display: block; font-size: 12px; font-weight: 400; color: var(--mcc-on-green); }

/* ── Checkout button, reassurance ─────────────────────────────────────────── */
.mcc .wc-proceed-to-checkout { margin: 16px 0 0; padding: 0; }
.mcc .mcc-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; margin: 0; padding: 0 24px; border-radius: 27px; background: var(--mcc-primary); color: #fff !important; font-size: 16px; font-weight: 700; text-decoration: none !important; text-transform: none; letter-spacing: 0; box-shadow: 0 8px 20px -10px rgba(30, 144, 255, .7); /* primary 70% */ transition: filter .2s; }
.mcc .mcc-cta:hover { filter: brightness(.92); }
.mcc .mcc-paywith { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--mcc-muted); }
.mcc .mcc-paywith .mco-pp { width: 20px; height: 20px; margin: 0; }
.mcc .mcc-proof { margin: 14px 4px 0; font-size: 13.5px; line-height: 1.55; color: var(--mcc-muted); }
.mcc .mcc-proof p { margin: 0; padding: 9px 0; }
.mcc .mcc-proof p + p { border-top: 1px solid var(--mcc-rule); }
.mcc .mcc-proof strong { color: var(--mcc-text); font-weight: 600; }

/* ── Empty cart ───────────────────────────────────────────────────────────── */
.mcc .mcc-empty { text-align: center; padding: 56px 24px 60px; }
.mcc .mcc-empty__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(13, 59, 46, .07); /* secondary 7% */ color: var(--mcc-green); }
.mcc .mcc-empty h1 { margin: 0 0 8px; padding: 0; border: 0; font-family: inherit; font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--mcc-green); text-transform: none; background: none; }
.mcc .mcc-empty h1::before { display: none; }
.mcc .mcc-empty > p { margin: 0 auto 22px; max-width: 440px; color: var(--mcc-muted); }
.mcc .mcc-empty__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.mcc .mcc-empty__btns .mcc-cta { width: auto; height: 48px; padding: 0 26px; }
.mcc .mcc-btn2 { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 24px; border: 1.5px solid var(--mcc-green); color: var(--mcc-green) !important; font-weight: 700; text-decoration: none !important; }
.mcc .mcc-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.mcc .mcc-cats a { font-size: 13.5px; padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--mcc-rule); color: var(--mcc-text); text-decoration: none; }
.mcc .mcc-cats a:hover { border-color: var(--mcc-green); }

/* ── Phone total bar (shown by cart.js once the main button scrolls away) ─── */
.mcc .mcc-sticky { display: none; }

/* XStore paints every <button> with its own style at high specificity (same fix as
   checkout.css): the cart's own controls are forced here. */
.mcc .mcc-step, .mcc .mcc-textbtn, .mcc .mcc-chat, .mcc .mcc-confirm__no, .mcc .mcc-coupon__apply {
	-webkit-text-fill-color: currentColor !important; box-shadow: none !important; min-height: 0 !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.4 !important; font-family: inherit !important;
}
.mcc .mcc-step { width: 38px !important; height: 100% !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; color: var(--mcc-green) !important; display: grid !important; place-items: center; cursor: pointer; }
.mcc .mcc-step:hover { background: var(--mcc-ground) !important; }
.mcc .mcc-step:disabled { color: var(--mcc-field) !important; background: #fff !important; cursor: not-allowed; }
.mcc .mcc-textbtn { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; height: auto !important; padding: 0 !important; border: 0 !important; background: none !important; color: #fff !important; font-size: 14px !important; font-weight: 400 !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mcc .mcc-textbtn .mco-ico { transition: transform .3s var(--mcc-ease); }
.mcc .mcc-textbtn[aria-expanded="true"] .mco-ico { transform: rotate(180deg); }
.mcc .mcc-chat { display: inline !important; width: auto !important; height: auto !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; color: var(--mcc-link) !important; font-size: inherit !important; font-weight: inherit !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mcc .mcc-confirm__no { width: auto !important; height: 38px !important; padding: 0 14px !important; margin: 0 !important; border: 1px solid var(--mcc-field) !important; border-radius: 19px !important; background: #fff !important; color: var(--mcc-text) !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer; }
.mcc .mcc-coupon__apply { width: auto !important; height: 42px !important; padding: 0 16px !important; margin: 0 !important; border: 0 !important; border-radius: 8px !important; background: #fff !important; color: var(--mcc-green) !important; font-size: 15px !important; font-weight: 700 !important; cursor: pointer; }

/* WooCommerce's loading overlay while the cart refreshes */
.mcc .blockUI.blockOverlay { border-radius: 12px; }

/* ── Tablet and phone ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.mcc { padding: 16px 0 48px; }
	.mcc .mcc-grid { grid-template-columns: 1fr; gap: 16px; }
	.mcc .mcc-side { position: static; }
	.mcc .mcc-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(13, 59, 46, .12); /* secondary 12% */ transform: translateY(110%); transition: transform .3s var(--mcc-ease); }
	.mcc .mcc-sticky.is-on { transform: none; }
	.mcc .mcc-sticky__t { flex: 1; font-size: 12.5px; color: var(--mcc-muted); line-height: 1.3; }
	.mcc .mcc-sticky__t b { display: block; font-size: 18px; color: var(--mcc-text); font-variant-numeric: tabular-nums; }
	.mcc .mcc-sticky .mcc-cta { width: auto; height: 46px; padding: 0 22px; font-size: 15px; }
}
@media (max-width: 560px) {
	.mcc { padding: 12px 0 90px; }
	.mcc .mcc-steps__d { display: none; }
	.mcc .mcc-steps__m { display: block; }
	.mcc .mcc-list__h { padding: 20px 16px 4px; }
	.mcc .mcc-rows { padding: 0 16px; }
	.mcc .mcc-row { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img qty line"; gap: 10px 12px; }
	.mcc .mcc-img { width: 56px; height: 68px; }
	.mcc .mcc-qty { justify-self: start; height: 38px; }
	.mcc .mcc-rm { align-self: start; justify-self: end; }
	.mcc .mcc-rm a.remove span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.mcc .mcc-rm a.remove svg { width: 18px; height: 18px; }
	.mcc .mcc-list__f { padding: 14px 16px 18px; }
	.mcc .mcc-confirm { margin: 0 16px 18px; }
	.mcc .mcc-t-body, .mcc .mcc-stub { padding-left: 18px; padding-right: 18px; }
	.mcc .mcc-key span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
	.mcc *, .mcc *::before, .mcc *::after { transition: none !important; animation: none !important; }
}

/* While the phone total bar shows, lift the chat bubble and the consent button above it.
   These live outside .mcc (Chatwoot / Complianz append them to <body>); the class is set on
   <html> by cart.js only on the cart page. */
@media (max-width: 900px) {
	html.mcc-bar-on .woot-widget-bubble, html.mcc-bar-on #cmplz-manage-consent .cmplz-manage-consent { transition: transform .3s cubic-bezier(.16, 1, .3, 1); transform: translateY(-72px); }
}
