/* ==========================================================================
   Cart + Checkout blocks — Basket v2 (Oct 2026, feedback round 2).
   Layout/colour only: every field, gateway, shipping method and total still
   renders through WooCommerce's own blocks (wc-block-*). Head (title +
   3 steps + free-delivery bar) and the trust row come from
   inc/cart-checkout.php. Loaded on Cart and Checkout. Tokens only.
   ========================================================================== */
.co2 { --co-ease: cubic-bezier(.16,1,.3,1); }
.co2 .generic-content { max-width: 1440px; padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(56px, 7vw, 100px); }
.co2 .generic-article > .entry-title { display: none; }
.co2 .wp-block-woocommerce-cart, .co2 .wp-block-woocommerce-checkout { max-width: none; margin: 0; padding: 0; font-family: var(--sans); }

/* head: title + steps + delivery bar */
.co2-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin: 0 0 clamp(22px, 3vw, 36px); }
.co2-title { margin: 0; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.03em; color: var(--ink); }
.co2-steps { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.co2-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.co2-steps li + li::before { content: ""; width: clamp(16px, 3vw, 40px); height: 1.5px; margin-right: 2px; background: var(--line); }
.co2-steps li.is-done + li::before { background: var(--brand-deep); }
.co2-steps i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-style: normal; font-size: 13px; font-weight: 800; }
.co2-steps .is-current { color: var(--ink); }
.co2-steps .is-current i { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--paper); }
.co2-steps .is-done i { background: var(--brand); border-color: var(--brand); color: var(--brand-deep); }
.co2-steps a { color: inherit; text-decoration: none; }
.co2-steps a:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.co2-fd { margin: 0 0 24px; padding: 16px 20px; border-radius: 18px; }
.co2-fd .lvc-fd-msg { font-size: 15px; }

/* shared: sidebar layout + white summary card */
.co2 .wc-block-components-sidebar-layout { gap: clamp(24px, 3vw, 48px); margin: 0; flex-wrap: nowrap; }
.co2 .wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 0; width: auto; flex: 1 1 auto; min-width: 0; }
.co2 .wc-block-components-sidebar-layout .wc-block-components-sidebar { width: clamp(340px, 34%, 440px); flex: none; padding-left: 0; }
.co2 .wc-block-components-sidebar { position: sticky; top: calc(var(--lvc-sticky-top, 96px) + 16px); align-self: flex-start; }
.co2 .wp-block-woocommerce-cart-order-summary-block, .co2 .wp-block-woocommerce-checkout-order-summary-block { padding: 24px 26px !important; border: 1px solid var(--line) !important; border-radius: 22px; background: var(--paper); box-shadow: 0 30px 60px -48px color-mix(in srgb, var(--ink) 50%, transparent); }
.co2 .wc-block-cart__totals-title, .co2 .wc-block-components-checkout-order-summary__title-text { display: block; margin: 0 0 8px !important; padding: 0 !important; font-family: 'Archivo', sans-serif !important; font-size: 22px !important; font-weight: 800 !important; letter-spacing: -.02em; text-transform: none !important; color: var(--ink); text-align: left !important; }
.co2 .wc-block-components-checkout-order-summary__title { padding: 0 0 8px; }
.co2 .wc-block-components-totals-wrapper { padding: 14px 0 !important; border-top: 1px solid var(--line) !important; }
.co2 .wc-block-components-totals-wrapper:empty { display: none; }
.co2 .wc-block-components-totals-item { padding: 4px 0; }
.co2 .wc-block-components-totals-item__label, .co2 .wc-block-components-totals-item__value { font-size: 14.5px; color: var(--ink); }
.co2 .wc-block-components-totals-item__description { font-size: 12.5px; color: var(--muted); }
.co2 .wc-block-components-totals-footer-item { padding-top: 6px; }
.co2 .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 20px; }
.co2 .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -.02em; color: var(--brand-deep); }
.co2 .wc-block-components-totals-footer-item-tax { font-size: 12.5px; color: var(--muted); }

/* coupon (opened by default from JS) */
.co2 .wc-block-components-totals-coupon .wc-block-components-panel__button { padding: 4px 0 !important; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.co2 .wc-block-components-totals-coupon__form { gap: 8px; }
.co2 .wc-block-components-totals-coupon__input input { height: 48px !important; border-radius: 12px !important; }
.co2 .wc-block-components-totals-coupon__button { height: 48px !important; border-radius: 999px !important; padding: 0 20px !important; background: var(--brand-soft) !important; color: var(--brand-deep) !important; border: 1.5px solid var(--brand-deep) !important; font-weight: 800 !important; }
.co2 .wc-block-components-totals-coupon__button:hover:not(:disabled) { background: var(--brand-deep) !important; color: var(--paper) !important; }

/* buttons */
.co2 .wc-block-cart__submit-button, .co2 .wc-block-components-checkout-place-order-button { min-height: 60px; border: 0 !important; border-radius: 999px !important; background: var(--brand-deep) !important; color: var(--paper) !important; font-family: 'Archivo', sans-serif !important; font-size: 17px !important; font-weight: 800 !important; letter-spacing: .01em; text-transform: none !important; transition: background-color .25s, transform .3s var(--co-ease), box-shadow .3s; }
.co2 .wc-block-cart__submit-button:hover, .co2 .wc-block-components-checkout-place-order-button:hover:not(:disabled) { background: color-mix(in srgb, var(--brand-deep) 85%, var(--ink)) !important; transform: translateY(-1px); box-shadow: 0 18px 32px -20px color-mix(in srgb, var(--brand-deep) 80%, transparent); }
.co2 .wc-block-cart__submit-container { margin-top: 6px; }
.co2 .wc-block-cart__payment-options { margin-top: 10px; text-align: center; }
.co2-trust { list-style: none; display: grid; gap: 8px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.co2-trust li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: color-mix(in srgb, var(--ink) 75%, var(--paper)); }
.co2-trust svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--brand-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Cart: line items ---- */
.co2 .wc-block-cart-items { border: 0; margin: 0; }
.co2 .wc-block-cart-items__header { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.co2 .wc-block-cart-items__header th { padding: 0 0 12px !important; border-bottom: 1px solid var(--line) !important; }
.co2 .wc-block-cart-items__row { border-bottom: 1px solid var(--line); }
.co2 .wc-block-cart-items__row td { padding-top: 22px !important; padding-bottom: 22px !important; border: 0 !important; }
.co2 .wc-block-cart-item__image { width: 112px; padding-right: 20px !important; }
.co2 .wc-block-cart-item__image img { width: 96px !important; height: 96px; padding: 8px; box-sizing: border-box; object-fit: contain; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.co2 .wc-block-cart-item__product .wc-block-components-product-name { font-family: 'Archivo', sans-serif !important; font-size: 18px !important; font-weight: 800 !important; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.co2 .wc-block-cart-item__product .wc-block-components-product-name:hover { color: var(--brand-deep); }
.co2 .wc-block-cart-item__prices { margin: 4px 0 2px; font-size: 14px; color: var(--muted); }
.co2 .wc-block-components-product-metadata { margin-top: 6px; font-size: 13px; color: var(--muted); }
.co2 .wc-block-components-product-details { margin: 0; }
.co2 .wc-block-components-product-details li { margin: 0 0 2px; }
.co2 .wc-block-components-product-details__name { font-weight: 700; color: color-mix(in srgb, var(--ink) 70%, var(--paper)); }
.co2 .wc-block-cart-item__quantity { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.co2 .wc-block-components-quantity-selector { width: auto; height: 44px; margin: 0; border: 1.5px solid var(--line) !important; border-radius: 999px; background: var(--paper); overflow: hidden; }
.co2 .wc-block-components-quantity-selector::after { display: none; }
.co2 .wc-block-components-quantity-selector__input { width: 40px; font-family: 'Archivo', sans-serif; font-size: 16px !important; font-weight: 800; color: var(--ink); }
.co2 .wc-block-components-quantity-selector__button { width: 40px; min-width: 40px; font-size: 18px; color: var(--ink); opacity: 1; }
.co2 .wc-block-components-quantity-selector__button:hover:not(:disabled) { background: var(--brand-soft); }
.co2 .wc-block-cart-item__remove-link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted) !important; transition: background-color .2s, color .2s; }
.co2 .wc-block-cart-item__remove-link:hover { background: color-mix(in srgb, var(--ink) 8%, var(--paper)); color: var(--ink) !important; }
.co2 .wc-block-cart-item__total { font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 800; color: var(--brand-deep); }
.co2 .wc-block-components-sale-badge { margin-top: 6px; padding: 4px 9px; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-deep); font-size: 11.5px; font-weight: 800; text-transform: none; }

/* ---- Checkout: numbered white step cards ---- */
.co2 .wc-block-checkout__form { counter-reset: co2-step; }
.co2 .wc-block-checkout__form .wc-block-components-checkout-step { position: relative; margin: 0 0 16px; padding: 26px 28px 28px 80px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); counter-increment: co2-step; }
.co2 .wc-block-checkout__form .wc-block-components-checkout-step::before { content: counter(co2-step); position: absolute; left: 28px; top: 24px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 800; }
.co2 .wc-block-checkout__form .wc-block-components-checkout-step:focus-within::before { background: var(--brand-deep); color: var(--paper); }
.co2 .wc-block-components-checkout-step__heading { margin: 4px 0 16px; }
.co2 .wc-block-components-checkout-step__title { margin: 0; font-family: 'Archivo', sans-serif !important; font-size: 22px !important; font-weight: 800 !important; letter-spacing: -.02em; text-transform: none !important; color: var(--ink); }
.co2 .wc-block-components-checkout-step__description { margin: -8px 0 14px; font-size: 13.5px; color: var(--muted); }
.co2 .wc-block-components-checkout-step__content { padding-bottom: 0 !important; }
.co2 .wc-block-checkout__guest-checkout-notice { font-size: 13px; color: var(--muted); }
.co2 .wc-block-checkout__order-notes.wc-block-components-checkout-step::before { display: none; }
.co2 .wc-block-checkout__order-notes.wc-block-components-checkout-step { padding-left: 28px; }
.co2 .wc-block-checkout__terms { margin: 8px 0 0; padding: 0; border: 0; font-size: 13px; color: var(--muted); }
.co2 .wc-block-checkout__actions { padding: 0; }
.co2 .wc-block-checkout__actions_row { gap: 16px; }
.co2 .wc-block-components-checkout-return-to-cart-button { color: var(--brand-deep); font-weight: 700; text-decoration: none; }

/* inputs */
.co2 .wc-block-components-text-input input, .co2 .wc-block-components-textarea, .co2 .wc-blocks-components-select__select, .co2 .wc-block-components-combobox .components-combobox-control__input { min-height: 54px; border: 1.5px solid var(--line) !important; border-radius: 12px !important; background: var(--paper) !important; font-family: var(--sans) !important; font-size: 15.5px !important; color: var(--ink); box-shadow: none !important; transition: border-color .2s, box-shadow .2s; }
.co2 .wc-block-components-text-input input:focus, .co2 .wc-block-components-textarea:focus, .co2 .wc-blocks-components-select__select:focus { border-color: var(--brand-deep) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent) !important; outline: none !important; }
.co2 .wc-block-components-text-input label, .co2 .wc-blocks-components-select__label { font-family: var(--sans) !important; color: var(--muted); }
.co2 .wc-block-components-text-input.has-error input { border-color: var(--warn) !important; }
.co2 .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border-radius: 6px; border-color: color-mix(in srgb, var(--ink) 30%, var(--paper)); }
.co2 .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--brand-deep); border-color: var(--brand-deep); }
.co2 .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--paper); }
.co2 .wc-block-components-address-form__address_2-toggle { color: var(--brand-deep); font-weight: 700; }

/* shipping + payment options */
.co2 .wc-block-components-radio-control--highlight-checked { border-radius: 16px; }
.co2 .wc-block-components-radio-control__option, .co2 .wc-block-components-radio-control-accordion-option { padding-top: 16px; padding-bottom: 16px; font-size: 15px; }
.co2 .wc-block-components-radio-control--highlight-checked::after { border-radius: 16px; border-color: var(--line) !important; border-width: 1.5px !important; }
.co2 .wc-block-components-radio-control__option--checked-option-highlighted, .co2 .wc-block-components-radio-control-accordion-option--checked-option-highlighted { border-radius: 14px; box-shadow: inset 0 0 0 2px var(--brand-deep) !important; background: color-mix(in srgb, var(--brand) 12%, var(--paper)); }
.co2 .wc-block-components-radio-control__input { border-color: color-mix(in srgb, var(--ink) 30%, var(--paper)) !important; }
.co2 .wc-block-components-radio-control__input:checked { border-color: var(--brand-deep) !important; }
.co2 .wc-block-components-radio-control__input:checked::before { background: var(--brand-deep) !important; }
.co2 .wc-block-components-radio-control__label, .co2 .wc-block-components-radio-control__option-layout { font-weight: 700; color: var(--ink); }
.co2 .wc-block-components-radio-control__secondary-label { font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--brand-deep); }

/* checkout summary items */
.co2 .wc-block-components-order-summary { padding: 0 !important; }
.co2 .wc-block-components-order-summary .wc-block-components-order-summary-item { padding: 12px 0; }
.co2 .wc-block-components-order-summary-item__image { width: 64px; }
.co2 .wc-block-components-order-summary-item__image img { width: 56px !important; max-width: none; height: 56px; padding: 4px; box-sizing: border-box; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.co2 .wc-block-components-order-summary-item__quantity { background: var(--brand-deep); color: var(--paper); border: 2px solid var(--paper); box-shadow: none; font-weight: 800; }
.co2 .wc-block-components-order-summary-item__description .wc-block-components-product-name { font-weight: 800; color: var(--ink); }
.co2 .wc-block-components-order-summary-item__total-price { font-weight: 800; color: var(--ink); }

@media (max-width: 1000px) {
	.co2 .wc-block-components-sidebar-layout { flex-wrap: wrap; }
	.co2 .wc-block-components-sidebar-layout .wc-block-components-main, .co2 .wc-block-components-sidebar-layout .wc-block-components-sidebar { width: 100%; flex: 1 1 100%; }
	.co2 .wc-block-components-sidebar { position: static; }
}
@media (max-width: 640px) {
	.co2-head { gap: 14px; }
	.co2-steps li span { display: none; }
	.co2-steps li.is-current span { display: inline; }
	.co2 .wc-block-checkout__form .wc-block-components-checkout-step { padding: 20px 18px 22px; border-radius: 18px; }
	.co2 .wc-block-checkout__form .wc-block-components-checkout-step::before { position: static; display: inline-grid; float: left; margin: 0 12px 0 0; width: 30px; height: 30px; font-size: 14px; }
	.co2 .wc-block-components-checkout-step__heading { margin-top: 0; min-height: 30px; align-items: center; }
	.co2 .wc-block-components-checkout-step__title { font-size: 19px !important; }
	.co2 .wp-block-woocommerce-cart-order-summary-block, .co2 .wp-block-woocommerce-checkout-order-summary-block { padding: 20px !important; border-radius: 18px; }
	.co2 .wc-block-cart-item__image { width: 84px; padding-right: 12px !important; }
	.co2 .wc-block-cart-item__image img { width: 72px !important; height: 72px; }
	.co2 .wc-block-cart-item__product .wc-block-components-product-name { font-size: 16px !important; }
	.co2-fd { padding: 14px 16px; }
}

/* Loyalty points switch in the order summary (lvc-account-loyalty, Oct 2026). */
.lvcal-co { margin: 14px 0 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--brand) 7%, var(--paper)); transition: background-color .25s, border-color .25s, opacity .2s; }
.lvcal-co.is-on { border-color: color-mix(in srgb, var(--brand-deep) 35%, var(--line)); background: color-mix(in srgb, var(--brand) 16%, var(--paper)); }
.lvcal-co.is-busy { opacity: .7; }
.lvcal-co, .lvcal-co__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.lvcal-co__row { grid-column: 1 / -1; margin: 0; cursor: pointer; }
.lvcal-co--guest, .lvcal-co--locked { grid-template-columns: 34px minmax(0, 1fr); }
.lvcal-co__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--brand-deep); }
.lvcal-co__mark { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; line-height: 1; }
.lvcal-co.is-on .lvcal-co__icon { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--paper); }
.lvcal-co__txt { display: block; min-width: 0; }
.lvcal-co__txt strong { display: block; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 14.5px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.lvcal-co__txt small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.lvcal-co.is-on .lvcal-co__txt small { color: var(--brand-deep); font-weight: 600; }
.lvcal-co__txt a { color: var(--brand-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.lvcal-co__switch { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--ink) 18%, var(--paper)); cursor: pointer; transition: background-color .25s; }
.lvcal-co__switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 25%, transparent); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.lvcal-co__switch:checked { background: var(--brand-deep); }
.lvcal-co__switch:checked::before { transform: translateX(18px); }
.lvcal-co__switch:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; }
.lvcal-co__switch:disabled { cursor: progress; }
.lvcal-co__err { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12.5px; font-weight: 600; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .lvcal-co, .lvcal-co__switch, .lvcal-co__switch::before { transition: none; } }

/* loyalty switch: roomier padding + amount picker (Oct 8) */
.wc-block-components-discounts-meta .lvcal-co { padding: 18px 20px; column-gap: 14px; }
.lvcal-co__amt { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--brand-deep) 14%, var(--line)); }
.lvcal-co__amt-label { flex: 1 1 auto; font-size: 13px; font-weight: 600; color: var(--ink); }
.lvcal-co__step { display: inline-flex; align-items: center; height: 38px; padding: 0 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lvcal-co__step:focus-within { border-color: var(--brand-deep); }
.lvcal-co__step button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 18px; line-height: 1; color: var(--ink); cursor: pointer; transition: background-color .2s; }
.lvcal-co__step button:hover:not(:disabled) { background: color-mix(in srgb, var(--brand) 18%, var(--paper)); }
.lvcal-co__step button:disabled { color: color-mix(in srgb, var(--ink) 28%, var(--paper)); cursor: default; }
.lvcal-co__cur { margin-left: 4px; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; color: var(--muted); }
.lvcal-co__step input { width: 54px; height: 30px; margin: 0; padding: 0 2px; border: 0 !important; box-shadow: none !important; outline: none; background: transparent; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px; text-align: left; color: var(--ink); }
.lvcal-co__max { flex: none; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.lvcal-co__max:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.lvcal-co__step button:focus-visible, .lvcal-co__max:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; }
@media (max-width: 400px) { .lvcal-co__amt-label { flex-basis: 100%; } }

/* Payment box: WooCommerce's list ::after draws a 1px side line (radius 16px) next to the
   selected option's 2px outline (radius 14px) = a doubled left edge. Keep the one outline (Oct 22). */
.wc-block-checkout__payment-method .wc-block-components-radio-control--highlight-checked::after { display: none; }

/* Anthony's Loom (Oct 22): more room between "Add a note to your order" and the terms line. */
.co2 .wc-block-checkout__terms { margin-top: 22px; }
/* Basket page: no accepted-payment card icons under "Proceed to Checkout". */
.wc-block-cart__payment-options, .wp-block-woocommerce-cart-accepted-payment-methods-block, .wc-block-cart .wc-block-components-payment-method-icons { display: none !important; }
