/*
 * E-Commerce styles — buy-box, cart page, header cart icon.
 *
 * Loaded by /includes/metatags-icons-css.php when ecommerce_enabled.
 * Selectors use !important on layout-critical rules to win against the
 * framework's global `select { display:none }` (which exists so the custom
 * dropdown widget can take over) — we want the native select to stay visible
 * inside our buy-box and cart-line UI.
 *
 * Visual baseline only — Figma-perfect styling lands in a later polish pass.
 */

/* ─────────────────────────────────────────────────────────────────
   Buy box (Add-to-Cart custom field)
   ───────────────────────────────────────────────────────────────── */
.add-to-cart-form { display: block !important; margin: 12px 0; max-width: 360px; }
.add-to-cart-form .atc-price { color: white; display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.add-to-cart-form .atc-price-display { font-size: 1.4em; font-weight: 600; }
.add-to-cart-form .atc-price-original { font-size: 0.95em; text-decoration: line-through; opacity: 0.55; }
.add-to-cart-form .atc-options { display: flex !important; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.add-to-cart-form .atc-option { display: flex !important; flex-direction: column; gap: 4px; }
.add-to-cart-form .atc-option-name {color:white !important; display: block !important; font-size: 0.85em; font-weight: 500; opacity: 0.8; }
.add-to-cart-form select.atc-option-select {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    padding: 8px 10px;
    margin: 0;
    font: inherit;
    
    background: hsla(0 0% 0% / .08);
    color: #26221f;
    border: 1px solid hsla(0 0% 0% / .08);
    border-radius: .4rem;
    width: 220px;
    max-width: 100%;
    height: auto;
    cursor: pointer;
    pointer-events: auto !important;
}
.add-to-cart-form select option{
    color: #333;
}
.add-to-cart-form .atc-qty-row { display: flex !important; flex-direction: column; align-items: flex-start;gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.add-to-cart-form .atc-qty { display: flex !important; align-items: flex-start; gap: 8px;flex-direction: column; }
.add-to-cart-form .atc-qty-label { font-size: 0.85em; font-weight: 500; opacity: 0.8; color: white !important; }
.add-to-cart-form .atc-qty-stepper { display: inline-flex !important; align-items: stretch; background: hsla(0 0% 100% / .08); border: 1px solid hsla(0 0% 100% / .08); border-radius: 6px; overflow: hidden; }
.add-to-cart-form .atc-qty-stepper button { background: transparent; border: 0;color: white; padding: 6px 10px; cursor: pointer; font-size: 1.1em; line-height: 1; }
.add-to-cart-form .atc-qty-stepper button:hover { background: var(--color-main); }
.add-to-cart-form input.atc-qty-input {
    width: 48px !important;
    text-align: center;
    border: 0;
    padding: 6px 0;
    background: hsla(0 0% 100% / .08);
    border-radius: 0;
    appearance: textfield;
    -moz-appearance: textfield;}
.add-to-cart-form .atc-qty-input::-webkit-outer-spin-button,
.add-to-cart-form .atc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-to-cart-form .atc-submit { padding: 10px 18px;margin:0; }
.add-to-cart-form .atc-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.add-to-cart-form .atc-stock-note { margin-top: 8px; font-size: 0.85em; color: #b25a00; }

/* ─────────────────────────────────────────────────────────────────
   Header cart icon (in /includes/header.php)
   ───────────────────────────────────────────────────────────────── */
.header-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: inherit;
    text-decoration: none;
}
@media screen and (max-width: 1024px) {
    .header-cart-icon {
        top: 12px;
    }
}
.header-cart-icon svg { width: 22px; height: 22px; fill: #26221F; }
.header-cart-icon:hover svg { fill: var(--color-main); }
.header-cart-icon__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #111;
    color: white;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────────
   Cart page
   ───────────────────────────────────────────────────────────────── */
.cart-page {
    padding: 40px 0 60px;
    min-height: calc(100vh - 3.8rem - 8.8rem - 28.6rem); }
.cart-page .content { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.cart-page__heading { font-size: 2.2em; margin: 0 0 24px; }

.cart-page__empty {
    background: white;
    box-shadow: var(--shadow-medium); border-radius: 8px; padding: 32px; text-align: center; }
.cart-page__empty p { margin: 0 0 16px; opacity: 0.7; }

.cart-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }

.cart-line {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    gap: 20px;
    align-items: center;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid hsla(0 0% 0% / .08);
}
.cart-line--missing { opacity: 0.6; }
.cart-line__image { width: 70px; height: 70px; }
.cart-line__image img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }
.cart-line__image-placeholder { width: 70px; height: 70px; background: #d8d8d8; border-radius: 6px; }
.cart-line__name { font-weight: 600; }
.cart-line__name a { color: inherit; text-decoration: none; }
.cart-line__name a:hover { text-decoration: underline; }
.cart-line__options { font-size: 0.9em; opacity: 0.7; margin-top: 2px; }
.cart-line__warning { font-size: 0.85em; color: #c44; margin-top: 4px; }

.cart-line__qty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cart-qty-form { margin: 0; }
.cart-qty-stepper { 
    display: inline-flex !important;
    align-items: stretch;
    border: 1px solid hsla(0 0% 0% / .08);
    background: hsla(0 0% 0% / .08);
    border-radius: 6px;
    overflow: hidden; }
.cart-qty-stepper button { background: transparent; border: 0; padding: 6px 10px; cursor: pointer; font-size: 1.1em; line-height: 1; color:#111; }
.cart-qty-stepper button:hover { background: var(--color-main); }
input.cart-qty-input {
    width: 44px !important;
    text-align: center;
    border: 0;
    border-left: 1px solid hsla(0 0% 0% / .08);
    border-right: 1px solid hsla(0 0% 0% / .08);
    padding: 6px 0;
    appearance: textfield;
    -moz-appearance: textfield;
    display: inline-flex !important;
    align-items: stretch;
    background: hsla(0 0% 0% / .08);
    border-radius: 0;}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-remove-form { margin: 0; }
.cart-line__remove {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    opacity: 0.55;
    font-size: 0.8em;
    text-decoration: underline;
    cursor: pointer;
}
.cart-line__remove:hover { opacity: 0.85; }

.cart-line__price { text-align: right; font-weight: 600; font-size: 1.05em; min-width: 80px; }
.cart-line__price-original { display: block; font-size: 0.85em; font-weight: 400; opacity: 0.5; text-decoration: line-through; }

.cart-totals {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid hsla(0 0% 0% / .08);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: #111;
}
.cart-totals__row { font-size: 0.95em; }
.cart-totals__total { font-size: 1.2em; }
.cart-totals__note { opacity: 0.6; font-size: 0.9em; }
.cart-totals__savings { color: #15803d; }

.cart-checkout-btn {
    background: var(--color-main);
    line-height: 1;
    padding: .2rem 4rem 0;
    text-decoration: none;
    border-radius: 0;
    border: none;
    outline: none;
    height: 4rem;
    cursor: pointer;
    margin: 2.4rem 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--animate-medium);
    text-transform: uppercase;
    font-weight: 700;
    color: white;
}
.cart-checkout-btn:hover { background: #111; color: white !important; }

/* Explicit color for the same reason as .checkout-page__intro — the global
   p rule would otherwise render this near-black on the dark cart. */
.cart-checkout-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    font-size: 0.85em;
    color: #464646;
}
.cart-checkout-note__icon { flex: 0 0 auto; }

@media (max-width: 720px) {
    .cart-line {
        grid-template-columns: 70px 1fr;
        grid-template-areas:
            "image details"
            "image qty"
            "price price";
    }
    .cart-line__image     { grid-area: image; }
    .cart-line__details   { grid-area: details; }
    .cart-line__qty       { grid-area: qty; align-items: flex-start; }
    .cart-line__price     { grid-area: price; text-align: left; padding-top: 8px; border-top: 1px solid rgba(0,0,0,0.06); }
}

/* ─────────────────────────────────────────────────────────────────
   Checkout page (Figma 8-629 / 16-71)

   Light theme: #f7f7f7 page, white cards, dark text — matching the cart
   page, which already uses white cards on a light background.
   ───────────────────────────────────────────────────────────────── */
.checkout-page { background: #f7f7f7; padding: 40px 0 60px; color: #1f1f1f; }
.checkout-page .content { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.checkout-page__heading { font-size: 2.2em; margin: 0 0 8px;
    color: #111;}
/* Explicit color — the global p rule wins over .checkout-page's inherited
   text color, so the muted grey is pinned here rather than inherited. */
.checkout-page__intro { margin: 0 0 24px; font-size: 0.95em; color: #5a5a5a; max-width: 60ch; }

.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.checkout-left { display: flex; flex-direction: column; gap: 16px; }
.checkout-right { display: flex; flex-direction: column; gap: 16px; }

.co-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.08);
    overflow: hidden;
}
.co-card ::placeholder{
    color: #1f1f1f;
    opacity: .6;
}
.co-card ::-moz-placeholder{
    color: #1f1f1f;
    opacity: .6;
}
.co-card ::-webkit-input-placeholder{
    color: #1f1f1f;
    opacity: .6;
}
.co-card__head {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 0;
    padding: 16px 20px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    color: #1f1f1f;
}
.co-card__toggle { margin-left: auto; padding-left: 12px; font-size: 1.2em; opacity: 0.7; }
.co-card__body { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.co-card--collapsed .co-card__body { display: none; }
/* Reset framework's `label { position: absolute }` and color for standalone labels in checkout */
.co-bill-same,
.co-discount__label,
.co-ship-method,
.co-option-name,
.atc-option-name,
.atc-qty-label {
    position: static !important;
    top: auto !important;
    left: auto !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Framework's `input { width: 100% }` breaks our flex layouts for radios/checkboxes */
.co-ship-method input[type="radio"],
.co-bill-same input[type="checkbox"],
.checkout-page input[type="radio"],
.checkout-page input[type="checkbox"] {
    width: auto !important;
    padding: 0 !important;
    border: 1px solid rgba(0,0,0,0.25) !important;
    background: #fff !important;
    flex: 0 0 auto;
    cursor: pointer;
}
.co-bill-same { font-weight: 400; font-size: 0.9em; opacity: 0.8; cursor: pointer; margin-left: auto; padding-right: 12px; display: inline-flex; align-items: center; }
.co-bill-same input { margin-right: 6px; vertical-align: middle; }

.co-card__body input[type="text"],
.co-card__body input[type="email"],
.co-card__body input[type="tel"],
.co-card__body input[type="date"],
.co-card__body textarea,
.co-card__body select {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    border: 1px solid rgba(0,0,0,0.16);
    border-radius: 6px;
    background: #fff;
    color: #1f1f1f;
    box-sizing: border-box;
}
.co-card__body select {
    display: block !important;
    visibility: visible !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    cursor: pointer;
    pointer-events: auto !important;
}
.co-card__body input:focus,
.co-card__body textarea:focus { outline: 2px solid rgba(0,0,0,0.45); outline-offset: -1px; }
.co-card__body textarea { resize: vertical; min-height: 72px; }
/* Standalone field labels inside a checkout card (framework labels are absolute). */
.co-field-label {
    position: static !important;
    display: block;
    font-size: 0.85em;
    color: #5a5a5a;
    margin: 2px 0 -4px;
}
/* Native date picker indicator reads fine unfiltered on the light field (kept
   for the no-jQuery fallback path in checkout.js). */
.co-card__body input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
}
/* Desired-date field: readonly and driven by the jQuery UI picker, so it needs
   to still read as an interactive control rather than a disabled one. */
.co-card__body input.co-datepicker {
    cursor: pointer;
    background: #fff;
    color: #1f1f1f;
    opacity: 1;
}
.co-date-clear {
    align-self: flex-start;
    background: none;
    border: 0;
    padding: 0;
    margin: -4px 0 0;
    font: inherit;
    font-size: 0.8em;
    color: #5a5a5a;
    text-decoration: underline;
    cursor: pointer;
}
.co-date-clear:hover { color: #111; }
.co-row { display: flex; gap: 10px; }
.co-row--2 > * { flex: 1; }

.co-ship-method {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    margin: 0;
}
.co-ship-method:last-child { border-bottom: 0; }
.co-ship-method__name { flex: 1; font-weight: 500; }
.co-ship-method__rate { font-weight: 600; white-space: nowrap; }
.co-bill-same { white-space: nowrap; }
/* Delivery method outside the customer zone — dimmed + non-interactive. */
.co-ship-method--disabled { opacity: 0.5; cursor: not-allowed; }
.co-ship-method--disabled .co-ship-method__rate { text-decoration: line-through; }
.co-ship-method__note {
    flex-basis: 100%;
    font-size: 0.8em;
    color: #b25a00;
    margin-top: -4px;
}

.co-card-field {
    padding: 14px 14px;
    border: 1px solid rgba(0,0,0,0.16);
    border-radius: 6px;
    background: #fff;
}
.co-card-errors { color: #c0392b; font-size: 0.85em; margin-top: 6px; min-height: 1em; }

/* Authorize.Net — Accept.js card fields (rendered when active_gateway = authorize_net).
   Stripe uses a single iframe div; Moneris uses one iframe; Auth.Net needs three
   actual <input> elements that hold values until Accept.js tokenizes on submit. */
.co-authnet-row { display: flex; flex-direction: column; gap: 4px; }
.co-authnet-row + .co-authnet-row { margin-top: 10px; }
.co-authnet-row label { font-size: 0.85em; font-weight: 600; opacity: 0.85; }
.co-authnet-row input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.16);
    border-radius: 6px;
    font: inherit;
    background: #fff;
    color: #1f1f1f;
    box-sizing: border-box;
}
.co-authnet-row input[type="text"]:focus { outline: 2px solid rgba(0,0,0,0.45); outline-offset: -1px; }
.co-authnet-row--split { display: flex; flex-direction: row; gap: 12px; }
.co-authnet-row--split > span { display: flex; flex-direction: column; gap: 4px; flex: 1; }

/* Right column — Order Summary */
.co-summary {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.co-summary__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 600;
    font-size: 1.05em;
    color: #111;
    margin: 0 0 .8rem;
}
.co-summary__edit { font-size: 0.85em; font-weight: 400; color: inherit; opacity: 0.7; text-decoration: underline; }
.co-summary__items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.co-summary__items > li { display: flex; gap: 12px; align-items: flex-start; }
.co-summary__thumb { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.co-summary__thumb img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; }
.co-summary__thumb-ph { width: 52px; height: 52px; background: #e2e2e2; border-radius: 6px; }
.co-summary__qty {
    position: absolute; top: -6px; right: -6px;
    width: 20px; height: 20px;
    background: var(--color-main); color: #fff;
    font-size: 11px; line-height: 20px;
    border-radius: 10px; text-align: center; font-weight: 700;
}
.co-summary__meta { flex: 1;
    color: #1f1f1f; }
.co-summary__name { font-weight: 600; font-size: 0.95em; }
.co-summary__options { font-size: 0.85em; opacity: 0.65; margin-top: 2px; }
.co-summary__price { font-weight: 600; margin-top: 4px; }

.co-discount { padding: 12px 0; border-top: 1px solid rgba(0,0,0,0.1); border-bottom: 1px solid rgba(0,0,0,0.1); }
.co-discount__label { font-weight: 600; display: block; margin-bottom: 8px; }
.co-discount__row { display: flex; gap: 8px; }
.co-discount__row input { flex: 1; padding: 10px 12px; font: inherit; border: 1px solid rgba(0,0,0,0.16); border-radius: 6px; background: #fff; color: #1f1f1f; }

button.co-discount__apply {
    padding: 0;
    border: none;
    background: none;
    font-weight: 400;
    font-family: var(--font-body);
    text-decoration: underline;
    text-transform: none;
    color: #111;
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.7;
    transition: var(--animate-fast);
    cursor: pointer;
}
button.co-discount__apply:hover {
    text-decoration: none;
    color: #111;
    background: none;
    opacity: 1;
}
.co-discount__msg { font-size: 0.85em; margin-top: 6px; min-height: 1em; }

.co-totals { display: flex; flex-direction: column; gap: 4px; color: #1f1f1f; }
.co-totals__row { display: flex; justify-content: space-between; font-size: 0.95em; opacity: 0.85; }
/* display:flex outranks the UA's [hidden]{display:none}, so rows toggled by
   checkout.js need this or they stay visible. */
.co-totals__row[hidden] { display: none; }
.co-totals__total { font-size: 1.1em; font-weight: 700; opacity: 1; margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(0,0,0,0.1); }

.co-pay-btn {
    padding: 12px 28px;
    background: var(--color-main) !important;
    color: #fff !important;
    border: 0 !important;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-end;
    margin-top: 8px;
    border-radius: 0 !important;
}
.co-pay-btn:hover{
    background: #111 !important;
    color: #fff !important;
}
.co-pay-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.co-form-error { color: #c0392b; font-size: 0.9em; margin-top: 8px; }

/* Trust footer under the pay button. Sits inside .co-summary's flex column,
   so it spans the card and closes it off with a divider. */
.co-secure-note {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: #5a5a5a;
    line-height: 1.4;
}
.co-secure-note__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9em;
    font-weight: 600;
    color: #1f1f1f;
}
.co-secure-note__sub { font-size: 0.8em; margin-top: 2px; }

/* Soft pre-auth note — the markup carries an inline amber style; these rules
   keep it on-theme with the light cards. */
.checkout-page .co-preauth-note {
    background: #fffbeb !important;
    border-color: #fcd34d !important;
    color: #5a4a1f !important;
}

@media (max-width: 880px) {
    .checkout-grid { grid-template-columns: 1fr; }
}
.ElementsApp, .ElementsApp .InputElement{
    color: #222 !important;
}
/* ─────────────────────────────────────────────────────────────────
   Order confirmed page (Figma 8-869)
   ───────────────────────────────────────────────────────────────── */
.confirmed-page { padding: 40px 0 60px;
    background: #0f0f0f; }
.confirmed-page .content { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.confirmed-page__heading { font-size: 2.4em; margin: 0 0 8px; }
.confirmed-page__lede { opacity: 0.7; margin: 0 0 4px; }
.confirmed-page__number { margin: 0 0 24px; }
/* Admin-authored rich text — force readable color on the dark page (the global
   p/li rules otherwise render it near-black). */
.confirmed-page__custom { margin: 0 0 16px; color: #c8c8c8; line-height: 1.6; }
.confirmed-page__custom p,
.confirmed-page__custom li { color: #c8c8c8; }
.confirmed-page__custom h1,
.confirmed-page__custom h2,
.confirmed-page__custom h3,
.confirmed-page__custom h4 { color: #fff; }
.confirmed-page__custom a { color: #fff; }
.confirmed-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.confirmed-card { padding: 20px; background: #1c1c1c; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.confirmed-card h2 { font-size: 1.1em; margin: 0 0 12px; }
.confirmed-card h3 { font-size: 0.95em; margin: 14px 0 4px; }
/* Explicit color: the global `p { color: var(--color-neutral) }` in styles.css
   beats the card's inherited light text and renders near-black on #1c1c1c. */
.confirmed-card p { margin: 0; color: #c8c8c8; font-size: 0.95em; line-height: 1.5; }
.confirmed-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
.confirmed-help {
    margin-top: 1.2rem;
    border-top: 1px solid hsla(0 0% 100% / .08);
    padding-top: 1.2rem;
    font-size: 0.9em;
}
.confirmed-help h3 { margin: 0 0 4px; font-size: 1em; color: #fff; }

/* "What Happens Next?" panel — full width beneath the two-column grid. */
.confirmed-next { margin-top: 24px; }
.confirmed-next p { margin: 0 0 12px; max-width: 75ch; }
.confirmed-next p:last-child { margin-bottom: 0; }
.confirmed-next__steps {
    margin: 0 0 12px 2rem;
    max-width: 75ch;
}
/* Color goes on the li: styles.css sets it there via `ul li`, so a rule on the
   ul alone would lose to it regardless of specificity. */
.confirmed-next__steps li {
    margin: 0 0 6px;
    color: #c8c8c8;
    font-size: 0.95em;
    line-height: 1.5;
}

.confirmed-actions { margin-top: 24px; display: flex; justify-content: center; }
.confirmed-help p { font-size: 1em; }
.confirmed-help a { color: inherit; font-weight: 600; }
@media (max-width: 880px) {
    .confirmed-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────
   Checkout upsell modal (cart page → Checkout click)
   Phase 2 add-on items feature. Shown ONLY when /cart/addons returns
   at least one suggestion.
   ───────────────────────────────────────────────────────────────── */
.addons-modal {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}
.addons-modal[hidden] { display: none; }
.addons-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}
.addons-modal__panel {
    position: relative;
    background: #26221F;
    border-radius: 12px;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-medium);
    padding: 28px;
    overflow: hidden;
    color: white;
}
.addons-modal__close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: 0; font-size: 28px; line-height: 1;
    cursor: pointer; padding: 4px 10px; color: white;
}
.addons-modal__close:hover { color: var(--color-main); }
.addons-modal__title { margin: 0 0 4px 0; font-size: 1.4em; font-weight: 600; color: white;}
.addons-modal__subtitle { margin: 0 0 18px 0; opacity: 0.7; color: white;}
.addons-modal__loading,
.addons-modal__error {
    padding: 18px 0;
    text-align: center;
    opacity: 0.7;
}
.addons-modal__error { color: #c44; opacity: 1; }
.addons-modal__list {
    flex: 1 1 auto;
    overflow-y: auto;
    margin: 0 -8px;
    padding: 0 8px;
    display: flex; flex-direction: column; gap: 12px;
}
.addons-modal__footer {
    display: flex; justify-content: flex-end; align-items: center;
    gap: 12px;
    margin-top: 18px; padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    flex-wrap: wrap;
}
.addons-modal__footer .button{
    margin: 0;
}
.addons-modal__confirm:disabled {
    opacity: 0.5; cursor: not-allowed;
}

/* Each suggested add-on row */
.addons-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: hsla(0 0% 100% / .08);
    border: 1px solid hsla(0 0% 100% / .08);
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s;
}
.addons-row--selected {
    border-color: hsla(0 0% 100% / .16);
    background: hsla(0 0% 100% / .16);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.addons-row--unavailable { opacity: 0.5; }
.addons-row__media {
    width: 80px; height: 80px;
    border-radius: 6px;
    background: #eee;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.addons-row__media img,
.addons-row__media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.addons-row__media-placeholder { font-size: 0.85em; color: white; }
.addons-row__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.addons-row__title { margin: 0; font-size: 1em; font-weight: 600; color:white;}
.addons-row__price { font-size: 0.95em; }
.addons-row__price-current { font-weight: 600; }
.addons-row__price-original { text-decoration: line-through; opacity: 0.55; margin-left: 6px; }
.addons-row__variants { display: flex; flex-wrap: wrap; gap: 8px; }
.addons-row__variants label {
    display: flex; flex-direction: column; gap: 2px;
    font-size: 0.8em; opacity: 0.85;
}
.addons-row__variants select {
    display: block !important;
    padding: 6px 10px;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 5px;
    font: inherit;
    background: #fff;
    min-width: 90px;
}
.addons-row__warning { font-size: 0.85em; color: #c44; }
.addons-row__controls {
    display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.addons-row__qty {
    display: inline-flex; align-items: center;
    border: 1px solid hsla(0 0% 100% / .08); border-radius: 5px;
    overflow: hidden;
}
.addons-row__qty button {
    background: none; border: 0;
    width: 26px; height: 30px;
    color: white;
    font: inherit; font-size: 1.1em; cursor: pointer;
}
.addons-row__qty button:hover { background: var(--color-main); }
.addons-row__qty input {
    padding: 0;
    width: 36px; height: 30px;
    text-align: center;
    border: 0; 
    background: hsla(0 0% 100% / .08);
    font: inherit;
    -moz-appearance: textfield;
    border-radius: 0;
    color: white;
}
.addons-row__qty input::-webkit-outer-spin-button,
.addons-row__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.addons-row__select {
    font: inherit; font-size: 0.8em; font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase;
    cursor: pointer;
    color: white;
    background: var(--color-main);
    padding: 7px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: var(--animate-medium);
}
.addons-row__select:hover {
    background: white;
    color: #111;
}
/* Selected state — outlined rather than filled, so an added row reads as a
   toggle-off affordance instead of a primary call to action. */
.addons-row--selected .addons-row__select {
    background: none;
    border-color: hsla(0 0% 100% / .4);
    color: white;
}
.addons-row--selected .addons-row__select:hover {
    background: hsla(0 0% 100% / .12);
    color: white;
}
.addons-row__select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.addons-row__select:disabled:hover {
    background: var(--color-main);
    color: white;
}

@media (max-width: 600px) {
    .addons-modal__panel { padding: 20px; border-radius: 10px; }
    .addons-row { grid-template-columns: 60px 1fr; }
    .addons-row__media { width: 60px; height: 60px; }
    .addons-row__controls {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }
}


button.cart-line__remove{
  color: var(--color-main);
  opacity: 1;
}
button.cart-line__remove:hover{
    color: white;
}
/* ─────────────────────────────────────────────────────────────────
   Desired-date picker (jQuery UI) — checkout-only theme.

   Scoped to .co-datepicker-theme, which checkout.js adds in beforeShow, so
   the site's other date pickers keep their existing look. The base theme in
   styles.css paints day cells #d5d1d1 with white text and 2px white grid
   rules, which reads as a muddy widget next to the white checkout cards —
   this replaces that wholesale. The ID selector is needed to out-specify
   #ui-datepicker-div in styles.css.
   ───────────────────────────────────────────────────────────────── */
#ui-datepicker-div.co-datepicker-theme,
.ui-datepicker.co-datepicker-theme {
    width: 20.5rem;
    max-width: calc(100vw - 32px);
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    font-family: inherit;
}

/* Header — flat, so the month/year reads as the heading rather than a bar. */
.ui-datepicker.co-datepicker-theme .ui-datepicker-header {
    background: transparent;
    border: 0;
    padding: 2px 0 8px;
}
.ui-datepicker.co-datepicker-theme .ui-datepicker-title {
    color: #111;
    font-weight: 600;
    font-size: 0.95em;
    line-height: 2rem;
}

/* Prev / next — circular hover target; chevrons come from styles.css. */
.ui-datepicker.co-datepicker-theme .ui-datepicker-prev,
.ui-datepicker.co-datepicker-theme .ui-datepicker-next {
    top: 6px;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}
.ui-datepicker.co-datepicker-theme .ui-datepicker-prev span::after,
.ui-datepicker.co-datepicker-theme .ui-datepicker-next span::after {
    border-color: #444;
}
.ui-datepicker.co-datepicker-theme .ui-datepicker-prev:hover span,
.ui-datepicker.co-datepicker-theme .ui-datepicker-next:hover span {
    background: rgba(0, 0, 0, 0.08);
}
.ui-datepicker.co-datepicker-theme .ui-datepicker-prev:hover span::after,
.ui-datepicker.co-datepicker-theme .ui-datepicker-next:hover span::after {
    border-color: #111;
}
.ui-datepicker.co-datepicker-theme .ui-datepicker-prev.ui-state-disabled { opacity: 0.25; }

/* Weekday row */
.ui-datepicker.co-datepicker-theme th {
    background: transparent;
    border: 0;
    padding: 6px 0;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #6b6b6b;
}

/* Day grid — drop the white rules, use spacing instead. */
.ui-datepicker.co-datepicker-theme tbody { background: transparent; }
.ui-datepicker.co-datepicker-theme tbody tr td {
    border: 0;
    padding: 2px;
}
.ui-datepicker.co-datepicker-theme td span,
.ui-datepicker.co-datepicker-theme td a,
.ui-datepicker.co-datepicker-theme .ui-state-default {
    display: block;
    padding: 7px 0;
    text-align: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #1f1f1f;
    font-size: 0.9em;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
}
.ui-datepicker.co-datepicker-theme td a:hover,
.ui-datepicker.co-datepicker-theme .ui-state-default.ui-state-hover {
    background: rgba(0, 0, 0, 0.08);
    color: #111;
}

/* Today outlined; the chosen day takes the site accent. */
.ui-datepicker.co-datepicker-theme td.ui-datepicker-today .ui-state-default {
    border-color: rgba(0, 0, 0, 0.35);
    color: #111;
}
.ui-datepicker.co-datepicker-theme td.ui-datepicker-current-day .ui-state-default,
.ui-datepicker.co-datepicker-theme .ui-state-default.ui-state-active {
    background: var(--color-main);
    border-color: var(--color-main);
    color: #fff;
    font-weight: 600;
}

/* Days before the lead-time cutoff, and filler days from adjacent months. */
.ui-datepicker.co-datepicker-theme td.ui-datepicker-unselectable .ui-state-default,
.ui-datepicker.co-datepicker-theme td.ui-state-disabled .ui-state-default {
    color: #b0b0b0;
    background: transparent;
    border-color: transparent;
    cursor: not-allowed;
}
.ui-datepicker.co-datepicker-theme .ui-datepicker-other-month .ui-state-default {
    color: #c4c4c4;
}
