/*
 * Cart v2 (inc/gem-checkout-v2.php; checkout-v2/cart/*.php). Local only while
 * it is reviewed. The concept is mockups/checkout-redesign/cart.html.
 * Rules: Quasimoda, ink #01010C, gray #61616B, gold pill buttons, no navy,
 * 16px cards / 12px panels / 10px tiles, underlined gray text links.
 * Scoped to body.gem-co2 (the cart page while v2 is on).
 */

@font-face { font-family: "GND Barlow"; src: url("../../../plugins/gem-awards-nametag-designer/assets/fonts/barlow-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "GND Barlow Regular"; src: url("../../../plugins/gem-awards-nametag-designer/assets/fonts/barlow-regular-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "GND Century"; src: url("../../../plugins/gem-awards-nametag-designer/assets/fonts/century-latin.woff2") format("woff2"); font-display: swap; }

body.gem-co2 {
	--c2-ink: #01010C; --c2-ink-2: #2A2A33; --c2-slate: #61616B; --c2-mist: #AAAAB2; --c2-line: #EBEBED; --c2-line-2: #DCDCE0;
	--c2-paper: #FBFBFB; --c2-cream: #F7F3EC; --c2-gold: #E1A91B; --c2-gold-2: #D39700; --c2-gold-lt: #EAC66E; --c2-gold-text: #8A6200; --c2-gold-wash: #FBF4E2;
	--c2-grad: linear-gradient(180deg, #EAC66E, #D39700); --c2-ease: cubic-bezier(.16, 1, .3, 1);
	--c2-font: "Quasimoda", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* the theme's page title: the cart card carries its own h1 */
html body.gem-co2 .hero-section { display: none !important; }
html body.gem-co2 .entry-content > .gds-section:has(.woocommerce) { padding-top: 0; }
html body.gem-co2 .entry-content :is(.gds-section, .gds-row) > br { display: none; }

body.gem-co2 .gco2-cart { max-width: 1240px; margin: 0 auto; padding: 28px 0 40px; font-family: var(--c2-font); color: var(--c2-ink); }
body.gem-co2 .gco2-cart *, body.gem-co2 .gco2-empty * { box-sizing: border-box; }
body.gem-co2 .gco2-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.gem-co2 .gco2-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.gem-co2 :focus-visible { outline: 3px solid var(--c2-gold-lt); outline-offset: 2px; }

body.gem-co2 .gco2-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--c2-line-2); }
html body.gem-co2 .gco2-title { margin: 0; font: 700 clamp(2rem, 1.4rem + 2vw, 2.75rem)/1.05 "Quasimoda", system-ui, sans-serif; letter-spacing: -.025em; color: var(--c2-ink); }
body.gem-co2 .gco2-title small { margin-left: 10px; font-size: .45em; font-weight: 600; color: var(--c2-slate); letter-spacing: 0; vertical-align: middle; }

body.gem-co2 .gco2-link, body.gem-co2 .gco2-cart .gco2-details summary {
	color: var(--c2-slate) !important; text-decoration: underline; text-decoration-color: var(--c2-slate); text-decoration-thickness: 1px; text-underline-offset: 3px;
	background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
body.gem-co2 .gco2-link:hover { color: var(--c2-ink) !important; text-decoration-color: var(--c2-ink); }
body.gem-co2 .gco2-link--tap { display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px; font-size: .92rem; }

/* buttons */
html body.gem-co2 .gco2-btn, html body.gem-co2 .wc-proceed-to-checkout a.checkout-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; margin: 0; border: 0; border-radius: 999px;
	background: var(--c2-grad) !important; color: #fff !important; text-decoration: none !important; font: 700 1rem/1.1 var(--c2-font) !important; letter-spacing: .01em; text-transform: none;
	box-shadow: 0 8px 18px -10px rgba(176, 126, 0, .8) !important; cursor: pointer; transition: filter .2s var(--c2-ease);
}
html body.gem-co2 .gco2-btn:hover, html body.gem-co2 .wc-proceed-to-checkout a.checkout-button:hover { filter: brightness(1.04) saturate(1.05); }
html body.gem-co2 .gco2-btn--outline { background: transparent !important; color: var(--c2-gold-2) !important; box-shadow: inset 0 0 0 1.5px var(--c2-gold-2) !important; }
html body.gem-co2 .gco2-btn--outline:hover { background: var(--c2-grad) !important; color: #fff !important; box-shadow: none !important; filter: none; }
html body.gem-co2 .gco2-btn--sm { min-height: 44px; padding: 0 18px; font-size: .92rem !important; }
body.gem-co2 .gco2-card { background: #fff; border: 1px solid var(--c2-line); border-radius: 16px; }

/* ---------- grid ---------- */
body.gem-co2 .gco2-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1040px) { body.gem-co2 .gco2-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; } }
body.gem-co2 .gco2-main { min-width: 0; display: grid; gap: 18px; }
body.gem-co2 .gco2-side { width: auto !important; float: none !important; margin: 0 !important; }
@media (min-width: 1040px) { body.gem-co2 .gco2-side { position: sticky; top: 100px; align-self: start; } /* below the 76px sticky store header + 24px; start so it can stick (Nov 17) */ }
/* phones: the totals come before the reassurance card */
@media (max-width: 1039px) {
	body.gem-co2 .gco2-grid { grid-template-areas: "main" "side"; }
	body.gem-co2 .gco2-main { display: contents; }
	body.gem-co2 .gco2-main > form { order: 1; }
	body.gem-co2 .gco2-side { order: 2; }
	body.gem-co2 .gco2-main > .gco2-next { order: 3; }
}

/* ---------- lines ---------- */
html body.gem-co2 .gco2-lines { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; border: 0; }
html body.gem-co2 .gco2-line { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; margin: 0; padding: 22px; background: #fff; border: 1px solid var(--c2-line); border-radius: 16px; }
@media (min-width: 760px) { html body.gem-co2 .gco2-line { grid-template-columns: 120px minmax(0, 1fr); gap: 22px; } }
html body.gem-co2 .gco2-line--designed { grid-template-columns: 1fr; }
@media (min-width: 760px) { html body.gem-co2 .gco2-line--designed { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; padding: 26px; } }
body.gem-co2 .gco2-line__media { width: auto !important; padding: 0 !important; display: block; }
body.gem-co2 .gco2-line__media a { display: block; }
body.gem-co2 .gco2-line__media img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: var(--c2-paper); padding: 8px; max-width: none !important; }
/* Designed lines share the account shelf's tile and preview treatment. */
body.gem-co2 .gco2-line--designed .gco2-line__media { padding: 26px 22px !important; border-radius: 12px; background: linear-gradient(160deg, #F5F5F8, #EDEDF3); display: grid; place-items: center; }
body.gem-co2 .gco2-line--designed .gco2-line__media img { aspect-ratio: auto; max-height: 300px; width: 100%; max-width: 100% !important; padding: 0; background: none; border-radius: 4px; }
body.gem-co2 .gco2-line__media img.sh-img[data-ko-src] { filter: drop-shadow(0 10px 14px rgba(1, 1, 12, .16)); }
.gav-ko body.gem-co2 .gco2-line__media img.sh-img { transition: opacity .2s; }
.gav-ko body.gem-co2 .gco2-line__media img.sh-img:not(.is-ko-done) { opacity: 0; }
body.gem-co2 .gco2-line__body { min-width: 0; }
body.gem-co2 .gco2-line__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
body.gem-co2 .gco2-line__id { padding: 0 !important; min-width: 0; }
body.gem-co2 .gco2-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--c2-gold-text); font: 700 .7rem/1.2 var(--c2-font); letter-spacing: .12em; text-transform: uppercase; }
html body.gem-co2 .gco2-line__name { margin: 0; font: 700 1.2rem/1.25 var(--c2-font); color: var(--c2-ink); letter-spacing: -.01em; }
html body.gem-co2 .gco2-line__name a { color: inherit !important; text-decoration: none; font-size: inherit !important; }
html body.gem-co2 .gco2-line__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.gem-co2 .gco2-line__price { flex: none; text-align: right; }
body.gem-co2 .gco2-line__price b { display: block; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c2-ink); }
body.gem-co2 .gco2-line__price b del { display: block; color: var(--c2-mist); font-weight: 400; font-size: .85rem; }
body.gem-co2 .gco2-line__price b ins { text-decoration: none; }
body.gem-co2 .gco2-line__price .product-price { display: block; color: var(--c2-slate); font-size: .82rem; font-variant-numeric: tabular-nums; }
body.gem-co2 .gco2-line__price .product-price del { display: none; }
body.gem-co2 .gco2-line__price .product-price ins { text-decoration: none; }

body.gem-co2 .gco2-lock { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border-radius: 12px; background: var(--c2-paper); }
body.gem-co2 .gco2-lock__qty { display: inline-flex; align-items: center; gap: 10px; flex: 1 1 260px; padding: 0 !important; }
body.gem-co2 .gco2-lock__qty .gco2-ico { color: var(--c2-gold-text); }
body.gem-co2 .gco2-lock__qty b { font: 800 1.35rem/1 var(--c2-font); font-variant-numeric: tabular-nums; }
body.gem-co2 .gco2-lock__qty span { color: var(--c2-slate); font-size: .86rem; line-height: 1.35; }
@media (max-width: 520px) { html body.gem-co2 .gco2-lock .gco2-btn { width: 100%; } }

body.gem-co2 .gco2-row { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
body.gem-co2 .gco2-row .product-remove { padding: 0 !important; width: auto !important; }
html body.gem-co2 .gco2-row .product-remove a.remove { width: auto !important; height: auto !important; border-radius: 0 !important; background: none !important; font-size: .92rem !important; font-weight: 400 !important; line-height: 1.2 !important; color: var(--c2-slate) !important; }
html body.gem-co2 .gco2-row .product-remove a.remove:hover { color: var(--c2-ink) !important; background: none !important; }
body.gem-co2 .gco2-qty { padding: 0 !important; }
html body.gem-co2 .gco2-qty .quantity { margin: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--c2-line-2); background: #fff; --quantity-height: 44px; min-height: 44px; }
html body.gem-co2 .gco2-qty .quantity input.qty { height: 44px !important; min-height: 44px; font: 700 1rem/1 var(--c2-font) !important; color: var(--c2-ink) !important; border: 0 !important; background: none !important; font-variant-numeric: tabular-nums; }
html body.gem-co2 .gco2-qty .quantity :is(.ct-increase, .ct-decrease) { width: 44px; height: 44px; border-radius: 50%; color: var(--c2-ink); }

/* details (WooCommerce's item data: names, color, size, bulk discount) */
body.gem-co2 .gco2-row .gco2-qty { order: 1; }
body.gem-co2 .gco2-details { order: 2; }
body.gem-co2 .gco2-row .product-remove { order: 3; }
body.gem-co2 .gco2-details[open] { flex: 1 1 100%; order: 4; }
body.gem-co2 .gco2-cart .gco2-details summary { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; list-style: none; }
body.gem-co2 .gco2-cart .gco2-details summary::-webkit-details-marker { display: none; }
body.gem-co2 .gco2-cart .gco2-details[open] summary { color: var(--c2-ink) !important; }
html body.gem-co2 .gco2-cart .gco2-line dl.variation { display: grid !important; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 4px 0 0 !important; padding: 16px 0 4px !important; border: 0 !important; border-top: 1px solid var(--c2-line) !important; background: none !important; font-size: .9rem; }
html body.gem-co2 .gco2-cart .gco2-line dl.variation dt { margin: 0 !important; color: var(--c2-slate) !important; font: 400 .9rem/1.4 var(--c2-font) !important; float: none !important; }
html body.gem-co2 .gco2-cart .gco2-line dl.variation dd { margin: 0 !important; color: var(--c2-ink) !important; font: 400 .9rem/1.4 var(--c2-font) !important; float: none !important; }
html body.gem-co2 .gco2-cart .gco2-line dl.variation dd p { margin: 0; }

body.gem-co2 .gco2-nudge { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 11px 14px; border-radius: 12px; background: var(--c2-gold-wash); color: var(--c2-ink-2); font-size: .9rem; line-height: 1.35; }
body.gem-co2 .gco2-nudge > span { flex: 1 1 200px; }
body.gem-co2 .gco2-nudge .gco2-ico { color: var(--c2-gold-text); }
body.gem-co2 .gco2-nudge b { color: var(--c2-ink); }
body.gem-co2 .gco2-nudge.is-met { background: var(--c2-paper); }

/* Cart action hooks can add controls after the visually hidden update button. */
html body.gem-co2 .gco2-actions:has(> :not(.gco2-update, [type="hidden"])) {
	display: block; margin: 18px 0 0; padding: 20px 22px; background: #fff;
	border: 1px solid var(--c2-line); border-radius: 16px;
}
html body.gem-co2 .gco2-actions .gco2-update { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; }

/* what happens next */
/* Centred columns, icon on top (Treyson 11-13). */
body.gem-co2 .gco2-next { padding: 40px 32px 44px; background: #fff; border: 1px solid var(--c2-line); border-radius: 16px; text-align: center; }
html body.gem-co2 .gco2-next h2 { margin: 0 0 30px; font: 700 1.2rem/1.3 var(--c2-font); color: var(--c2-ink); text-align: left; }
body.gem-co2 .gco2-next ol { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { body.gem-co2 .gco2-next ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
body.gem-co2 .gco2-next li { display: grid; justify-items: center; gap: 14px; text-align: center; min-width: 0; }
body.gem-co2 .gco2-next li > div { max-width: 30ch; }
body.gem-co2 .gco2-next__i { width: 52px; height: 52px; border-radius: 50%; background: var(--gem-maroon, #5B0209); color: #fff; display: grid; place-items: center; }
body.gem-co2 .gco2-next__i svg { width: 22px; height: 22px; }
body.gem-co2 .gco2-next b { display: block; font-size: 1rem; margin-bottom: 6px; color: var(--c2-ink); text-wrap: balance; }
body.gem-co2 .gco2-next p { margin: 0; color: var(--c2-slate); font-size: .9rem; line-height: 1.5; }
@media (max-width: 759px) { body.gem-co2 .gco2-next { padding: 32px 20px 36px; } }

/* ---------- summary (WooCommerce's totals table, laid out as rows) ---------- */
html body.gem-co2 .gco2-summary { width: auto !important; float: none !important; padding: 24px; background: #fff; border: 1px solid var(--c2-line); border-radius: 16px; }
html body.gem-co2 .gco2-summary > h2 { margin: 0 0 14px; font: 700 1.25rem/1.3 var(--c2-font) !important; color: var(--c2-ink) !important; text-transform: none; letter-spacing: 0; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr { padding: 8px 0 !important; border: 0 !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive th { font: 400 .95rem/1.4 var(--c2-font) !important; color: var(--c2-slate) !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive td { font: 400 .95rem/1.4 var(--c2-font) !important; color: var(--c2-ink) !important; font-variant-numeric: tabular-nums; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive td::before { display: none !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary :is(tr.fee, tr.cart-discount) td { color: var(--c2-gold-text) !important; font-weight: 700 !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary tr.cart-discount td a { color: var(--c2-slate) !important; font-weight: 400; margin-left: 6px; text-decoration: underline; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.shipping:not(.shipping ~ .shipping),
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.order-total { margin-top: 8px; padding-top: 14px !important; border-top: 1px solid var(--c2-line) !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.order-total { align-items: baseline !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.order-total th { font-weight: 700 !important; color: var(--c2-ink) !important; font-size: 1.05rem !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.order-total td,
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.order-total .woocommerce-Price-amount { font-size: 1.6rem !important; font-weight: 800 !important; letter-spacing: -.02em; color: var(--c2-ink) !important; }
/* Recurring total (membership in the cart; Treyson 11-17 "also this"): WooCommerce Subscriptions reuses the
   order-total class, so it picked up the big total styles and wrapped. It reads like the Subtotal row above it,
   with the renewal date small and right-aligned under the price. */
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.order-total.recurring-total { margin-top: 0; padding-top: 8px !important; border-top: 0 !important; align-items: flex-start !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.order-total.recurring-total th { font-size: .95rem !important; font-weight: 700 !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.order-total.recurring-total td { font-size: .95rem !important; font-weight: 400 !important; letter-spacing: 0; text-align: right !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.order-total.recurring-total :is(strong, .woocommerce-Price-amount) { font-size: inherit !important; font-weight: 700 !important; letter-spacing: 0; }
html body.woocommerce-cart.gem-co2 .gco2-summary tr.order-total.recurring-total .first-payment-date { margin-top: 2px; color: var(--c2-slate); }
html body.woocommerce-cart.gem-co2 .gco2-summary tr.order-total.recurring-total .first-payment-date small { font-size: .8rem; font-weight: 400; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.recurring-totals { margin-top: 8px; padding-top: 14px !important; border-top: 1px solid var(--c2-line) !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.recurring-totals th { font-weight: 700 !important; color: var(--c2-ink) !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods { margin: 0; padding: 0; }

/* Shipping choices follow the checked radio across WooCommerce totals updates. */
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods > li {
	position: relative;
	min-height: 44px;
	margin-bottom: 2px !important;
	padding: 8px 10px !important;
	gap: 10px !important;
	border-color: transparent !important;
	border-radius: 8px;
	background: transparent !important;
	box-shadow: none !important;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods > li:last-child {
	margin-bottom: 0 !important;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods > li > label {
	flex: 1 1 0 !important;
	min-width: 0;
	gap: 4px 10px !important;
	font-weight: 500;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods .gco2-shipping-name {
	min-width: 0;
	overflow-wrap: anywhere;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods .gco2-shipping-price {
	flex-shrink: 0;
	max-width: 50%;
	margin-inline-start: auto;
	text-align: end;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods .gco2-shipping-price .amount {
	white-space: nowrap;
	font-weight: 600;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods .gem-shipping-choice-tag {
	display: none;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods > li > input.shipping_method[type="radio"] + label::after {
	content: "";
	position: absolute;
	inset: 0;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods > li::before {
	content: none !important;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods > li:has(> input.shipping_method[type="radio"])::before {
	content: "" !important;
	margin-top: 0;
	border-color: #8c8c96 !important;
	background: #fff !important;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods > li:has(> input.shipping_method[type="radio"]):hover {
	background: var(--c2-paper) !important;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods > li:has(> input.shipping_method[type="radio"]:checked) {
	background: var(--c2-cream) !important;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods > li:has(> input.shipping_method[type="radio"]:checked)::before {
	border-color: var(--c2-gold-text) !important;
	background: radial-gradient(circle, var(--c2-gold-text) 0 42%, #fff 44%) !important;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods > li:has(> input.shipping_method[type="radio"]:focus-visible) {
	outline: 2px solid var(--c2-gold-text);
	outline-offset: 1px;
}
html body.woocommerce-cart.gem-co2 .gco2-summary .wc-proceed-to-checkout { margin: 18px 0 0 !important; padding: 0 !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary .wc-proceed-to-checkout a.checkout-button { width: 100%; min-height: 58px; font-size: 1.1rem !important; margin: 0 !important; }
body.gem-co2 .gco2-payment-brands {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}
body.gem-co2 .gco2-payment-badge {
	display: grid;
	place-items: center;
	flex: 0 0 35px;
	height: 23px;
	border-radius: 3px;
	overflow: hidden;
	background: #fff;
}
body.gem-co2 .gco2-payment-badge img {
	display: block;
	width: 35px;
	height: 23px;
	object-fit: cover;
}
body.gem-co2 .gco2-payment-badge--klarna-black { background: #ffa8cd; }
body.gem-co2 .gco2-payment-badge--affirm { background: #4a4af4; }
body.gem-co2 .gco2-payment-badge:is(.gco2-payment-badge--afterpay, .gco2-payment-badge--clearpay) { background: #b2fce4; }
body.gem-co2 .gco2-payment-badge:is(.gco2-payment-badge--affirm, .gco2-payment-badge--afterpay) img {
	object-fit: contain;
}
body.gem-co2 .gco2-payment-badge:is(.gco2-payment-badge--klarna-black, .gco2-payment-badge--clearpay) img {
	width: 28px;
	height: auto;
	object-fit: contain;
}
@media (max-width: 430px) {
	body.gem-co2 .gco2-payment-brands { max-width: 158px; margin-inline: auto; }
}
body.gem-co2 .gco2-fine { margin: 12px 0 0; color: var(--c2-slate); font-size: .84rem; text-align: center; }
body.gem-co2 .gco2-hint { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--c2-cream); font-size: .86rem; color: var(--c2-ink-2); line-height: 1.45; }
body.gem-co2 .gco2-hint b { color: var(--c2-ink); }

/* cross-sells, if any are set */
body.gem-co2 .gco2-side .cross-sells { margin-bottom: 18px; }

/* ---------- phone sticky total ---------- */
body.gem-co2 .gco2-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--c2-line); box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: transform .4s var(--c2-ease); font-family: var(--c2-font); }
body.gem-co2 .gco2-sticky.is-hidden { transform: translateY(110%); }
@media (min-width: 1040px) { body.gem-co2 .gco2-sticky { display: none; } }
body.gem-co2 .gco2-sticky__t { display: grid; line-height: 1.15; }
body.gem-co2 .gco2-sticky__t span { color: var(--c2-slate); font-size: .78rem; }
body.gem-co2 .gco2-sticky__t b { font: 800 1.3rem/1.1 var(--c2-font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--c2-ink); }
html body.gem-co2 .gco2-sticky__btn { min-height: 48px; padding: 0 22px; }
@media (max-width: 1039px) { body.gem-co2 .gco2-cart { padding-bottom: 90px; } }

/* ---------- empty cart ---------- */
body.gem-co2 .gco2-empty { max-width: 1040px; margin: 0 auto; padding: 28px 0 40px; font-family: var(--c2-font); display: grid; gap: 16px; }
body.gem-co2 .gco2-empty__hero { padding: 40px 28px; text-align: center; display: grid; justify-items: center; gap: 14px; }
html body.gem-co2 .gco2-empty__hero h1 { margin: 0; font: 800 clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem)/1.1 var(--c2-font); letter-spacing: -.025em; color: var(--c2-ink); }
body.gem-co2 .gco2-empty__hero p { margin: 0; color: var(--c2-slate); max-width: 46ch; }
body.gem-co2 .gco2-empty__art { width: min(300px, 80%); margin-bottom: 6px; display: grid; }
body.gem-co2 .gco2-empty__art .gco2-tag { transform: rotate(-3deg); }
body.gem-co2 .gco2-empty__art .gco2-tag + .gco2-tag { margin-top: -10px; transform: rotate(2deg) translateX(14px); filter: saturate(.6) brightness(1.08); }
body.gem-co2 .gco2-empty__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
body.gem-co2 .gco2-tag {
	position: relative; container-type: inline-size; aspect-ratio: 3 / 1; width: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	border-radius: 3% / 9%; overflow: hidden; color: #121212;
	background: #C9A94F var(--gco2-gold) center / cover;
	box-shadow: 0 1px 1px rgba(60, 40, 0, .35), 0 10px 18px -10px rgba(40, 25, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
body.gem-co2 .gco2-tag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .28) 0 18%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .12) 62%, rgba(255, 255, 255, 0) 80%); pointer-events: none; }
body.gem-co2 .gco2-tag__co { font: 400 4.1cqw/1 "GND Century", Georgia, serif; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 2.4cqw; }
body.gem-co2 .gco2-tag__name { font: 400 11.5cqw/1 "GND Barlow", system-ui, sans-serif; }
body.gem-co2 .gco2-tag__title { font: 400 5.6cqw/1.1 "GND Barlow Regular", system-ui, sans-serif; margin-top: 1.8cqw; letter-spacing: .02em; }
body.gem-co2 .gco2-reorder { padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
body.gem-co2 .gco2-reorder__t { flex: 1 1 320px; }
body.gem-co2 .gco2-reorder__t b { display: block; font-size: 1.02rem; margin-bottom: 2px; color: var(--c2-ink); }
body.gem-co2 .gco2-reorder__t p { margin: 0; color: var(--c2-slate); font-size: .9rem; }
body.gem-co2 .gco2-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { body.gem-co2 .gco2-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
body.gem-co2 .gco2-cat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px; text-decoration: none !important; color: var(--c2-ink) !important; transition: border-color .2s var(--c2-ease), transform .2s var(--c2-ease); min-width: 0; }
body.gem-co2 .gco2-cat:hover { border-color: var(--c2-gold-lt); transform: translateY(-2px); }
body.gem-co2 .gco2-cat__img { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--c2-cream); display: grid; place-items: center; overflow: hidden; padding: 8px; }
body.gem-co2 .gco2-cat__img.is-photo { padding: 0; }
body.gem-co2 .gco2-cat__img img { width: 100%; height: 100%; object-fit: contain; }
body.gem-co2 .gco2-cat__img.is-photo img { object-fit: cover; }
body.gem-co2 .gco2-cat b { font-size: .98rem; }
body.gem-co2 .gco2-cat > span:last-child { color: var(--c2-slate); font-size: .84rem; margin-top: -4px; }

/* phones: a stock line's controls and nudge run the full card width */
@media (max-width: 759px) {
	html body.gem-co2 .gco2-line--stock { grid-template-columns: 72px minmax(0, 1fr); }
	body.gem-co2 .gco2-line--stock .gco2-line__body { display: contents; }
	body.gem-co2 .gco2-line--stock .gco2-line__top { grid-column: 2; }
	body.gem-co2 .gco2-line--stock :is(.gco2-row, .gco2-nudge) { grid-column: 1 / -1; margin-top: 0; }
}
html body.woocommerce-cart.gem-co2 .gco2-summary .shipping-calculator-button { display: inline-flex; align-items: center; min-height: 44px; color: var(--c2-slate) !important; }

/* Promo field and delivery choices in the order summary. */
html body.gem-co2 .gco2-kicker--edit {
	min-height: 44px; margin: -12px 0 -6px; text-decoration: none; color: var(--c2-gold-text);
}
html body.gem-co2 .gco2-kicker--edit:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
body.gem-co2 .gco2-kicker--edit .gco2-ico { width: 15px; height: 15px; }
body.gem-co2 .gco2-details .variation dd { overflow-wrap: anywhere; }
html body.gem-co2 .gco2-summary :is(.woocommerce-shipping-destination, .woocommerce-shipping-calculator) { display: none !important; }
html body.woocommerce-cart.gem-co2 .gco2-summary .woocommerce-shipping-methods > li + li { border-top: 1px solid #E6E3DE !important; }

html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive :is(.gco2-promo-row, .gco2-ship-note) td {
	flex: 0 0 100% !important; width: 100% !important; min-width: 0; text-align: left !important;
}
body.gem-co2 .gco2-promo__link {
	display: inline-flex; align-items: center; min-height: 44px; color: var(--c2-slate);
	font-size: .9rem; text-decoration: underline; text-underline-offset: 3px;
	cursor: pointer; list-style: none;
}
body.gem-co2 .gco2-promo__link::-webkit-details-marker { display: none; }
/* Tighter promo row (Treyson 11-17: "spaced weirdly"): the row loses its 8px padding and the 44px tap area
   overlaps the space around it, so the link sits evenly between Subtotal and the divider. */
html body.woocommerce-cart.gem-co2 .gco2-summary table.shop_table.shop_table_responsive tr.gco2-promo-row { padding: 0 !important; }
body.gem-co2 .gco2-promo:not([open]) > .gco2-promo__link { margin: -14px 0 -5px; }
body.gem-co2 .gco2-promo__row { display: flex; gap: 8px; }
html body.gem-co2 .gco2-promo__row #coupon_code {
	flex: 1 1 auto; width: 0 !important; min-width: 0; margin: 0; height: 44px;
	padding: 0 12px; border: 1px solid var(--c2-line-2); border-radius: 10px;
	font: 400 .95rem/1.3 var(--c2-font); color: var(--c2-ink);
}
html body.gem-co2 .gco2-promo__row .gco2-promo__apply {
	flex: none; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--c2-gold-2);
	border-radius: 999px; background: #fff; color: var(--c2-gold-text); box-shadow: none;
}
body.gem-co2 .gco2-ship-note p { color: var(--c2-slate); font-size: .82rem; margin: 0; }

/* Designed lines: "Qty 1 · set by your names · Change names" in place of the lock box (Nov 17) */
body.gem-co2 .gco2-qtynote { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 12px 0 0 !important; font-size: .92rem; line-height: 1.45; color: var(--c2-slate); }
body.gem-co2 .gco2-qtynote .product-quantity { padding: 0 !important; }
body.gem-co2 .gco2-qtynote b { color: var(--c2-ink, #01010C); font-weight: 700; font-variant-numeric: tabular-nums; }
body.gem-co2 .gco2-qtynote__edit { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; color: #61616B !important; text-decoration: underline !important; text-underline-offset: 3px; font-weight: 600; }
body.gem-co2 .gco2-qtynote__edit:hover { color: #01010C !important; }
