/*
 * 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: 100%; }
.add-to-cart-form .atc-price { 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 { 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: #fff;
    color: #222;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 6px;
    width: 220px;
    max-width: 100%;
    height: auto;
    cursor: pointer;
    pointer-events: auto !important;
}
.add-to-cart-form .atc-qty-row { display: flex !important; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap;
    width: 100%;
    justify-content: space-between; }
.add-to-cart-form .atc-qty { display: flex !important; align-items: center; gap: 8px; }
.add-to-cart-form .atc-qty-label { font-size: 0.85em; font-weight: 500; opacity: 0.8; }
.add-to-cart-form .atc-qty-stepper { display: inline-flex !important; align-items: stretch; border: 1px solid rgba(0,0,0,0.18); border-radius: 6px; overflow: hidden; }
.add-to-cart-form .atc-qty-stepper button { background: transparent; border: 0; padding: 6px 10px; cursor: pointer; font-size: 1.1em; line-height: 1; }
.add-to-cart-form .atc-qty-stepper button:hover { background: rgba(0,0,0,0.06); }
.add-to-cart-form input.atc-qty-input { width: 48px !important; text-align: center; border: 0; border-left: 1px solid rgba(0,0,0,0.18); border-right: 1px solid rgba(0,0,0,0.18); padding: 6px 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; }
.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: fixed;
    align-items: center;
    justify-content: center;
    width: 4.8rem;
    height: 4.8rem;
    color: inherit;
    text-decoration: none;
    display: flex;
    bottom: 1.6rem;
    right: 1.6rem;
    background: var(--color-body);
    border: 1px solid var(--color-body);
    border-radius: 50%;
    padding: 0 4px 0 0;
    transition: var(--animate-medium);
    z-index: 999;

}
/* Hidden until the cart has at least one item. JS drops this class on add. */
.header-cart-icon--empty { display: none; }
.header-cart-icon:hover{
    background: var(--color-light);
}
.header-cart-icon svg { width: 22px; height: 22px; fill: var(--color-light);transition: var(--animate-medium); }
.header-cart-icon:hover svg { fill: var(--color-body); }
.header-cart-icon__badge {
    position: absolute;
    top: 1rem;
    right: .8rem;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0;
    border-radius: 9px;
    background: var(--color-light);
    color: var(--color-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4rem;
    text-align: center;
    box-sizing: border-box;
    transition: var(--animate-medium);
}

.header-cart-icon:hover .header-cart-icon__badge{
    background: var(--color-body)0;
    color: var(--color-light);
}
/* ─────────────────────────────────────────────────────────────────
   Cart page
   ───────────────────────────────────────────────────────────────── */
.cart-page { padding: 4rem 4rem 6rem; }
.cart-page .content { max-width: 1264px; margin: 0 auto; padding: 0; }
.cart-page__heading { font-size: 2.2em; margin: 0 0 24px; }

.cart-page__empty { 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: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.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 rgba(0,0,0,0.16); border-radius: 0; overflow: hidden; }
.cart-qty-stepper button {
    color: var(--color-heading); background: transparent; border: 0; padding: 6px 10px; cursor: pointer; font-size: 1.1em; line-height: 1; }
.cart-qty-stepper button:hover { background: rgba(0,0,0,0.06); }
input.cart-qty-input {background: none; border-radius: 0; width: 44px !important; text-align: center; border: 0; border-left: 1px solid rgba(0,0,0,0.16); border-right: 1px solid rgba(0,0,0,0.16); padding: 6px 0; appearance: textfield; -moz-appearance: textfield; }
.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: #731010;
    opacity: 0.72;
    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: 1px solid rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.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; }

/* Trust cue under the Checkout CTA. Deliberately quiet — it should reassure
   without competing with the button for attention. */
.cart-checkout-reassurance {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.2rem 0 0;
    font-size: 0.85em;
    opacity: 0.6;
    text-align: right;
}
.cart-checkout-reassurance svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: currentColor;
    flex-shrink: 0;
}

/*.cart-checkout-btn {
    margin-top: 16px;
    padding: 12px 28px;
    background: #111 !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.cart-checkout-btn:hover { background: #333 !important; }*/

@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)
   ───────────────────────────────────────────────────────────────── */
.checkout-page { padding: 4rem 4rem 6rem; }
.checkout-page .content { max-width: 1264px; margin: 0 auto; padding: 0; }
.checkout-page__heading { font-size: 2.2em; margin: 0 0 8px; }
/* Reassurance line under the title. Tightened the heading's bottom margin so
   the two read as one unit; this carries the original 24px gap to the form. */
.checkout-page__intro { margin: 0 0 24px; font-size: 0.95em; opacity: 0.7; max-width: 60ch; }

/* Post-purchase expectation + trust cues under the Complete Purchase button. */
.co-delivery-note {
    margin: 12px 0 0;
    font-size: 0.85em;
    line-height: 1.45;
    opacity: 0.7;
    text-align: center;
}
.co-secure-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
}
.co-secure-note__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    font-weight: 600;
}
.co-secure-note__title svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: currentColor;
    flex-shrink: 0;
}
.co-secure-note__sub { font-size: 0.8em; opacity: 0.6; }

.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: var(--shadow-low);
    overflow: hidden;
}
.co-card__head {
    color: var(--color-heading);
    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;
}
.co-card__toggle { margin-left: auto; padding-left: 12px; font-size: 1.2em; opacity: 1;color: var(--color-heading); }
.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.3) !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 select {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    background: #fff;
    color: #222;
    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 { outline: 2px solid rgba(0,0,0,0.4); outline-offset: -1px; }
.co-row { display: flex; gap: 10px; }
.co-row--2 > * { flex: 1; }

.co-ship-method {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    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; }

.co-card-field {
    padding: 14px 14px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    background: #fff;
}
.co-card-errors { color: #c44; 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.18);
    border-radius: 6px;
    font: inherit;
    background: #fff;
    box-sizing: border-box;
}
.co-authnet-row input[type="text"]:focus { outline: 2px solid rgba(0,0,0,0.4); 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: var(--shadow-low);
    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;
}
.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: #d8d8d8; border-radius: 6px; }
.co-summary__qty {
    position: absolute; top: -6px; right: -6px;
    width: 20px; height: 20px;
    background: #111; color: #fff;
    font-size: 11px; line-height: 20px;
    border-radius: 10px; text-align: center; font-weight: 700;
}
.co-summary__meta { flex: 1; }
.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.08); border-bottom: 1px solid rgba(0,0,0,0.08); }
.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: 8px 12px;
    font: inherit;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0;
    background: none;}
.co-discount__msg { font-size: 0.85em; margin-top: 6px; min-height: 1em; }
form .button.co-discount__apply{
    height: 4.2rem;
}
.co-totals { display: flex; flex-direction: column; gap: 4px; }
.co-totals__row { display: flex; justify-content: space-between; font-size: 0.95em; opacity: 0.85; }
/* The display:flex above outranks the [hidden] attribute's UA display:none, so
   rows marked hidden (discount / shipping / tax at $0.00) need this to stay
   hidden. Without it the JS toggle has no visible effect. */
.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.08); }

.co-pay-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.co-form-error { color: #c44; font-size: 0.9em; margin-top: 8px; }

@media (max-width: 880px) {
    .checkout-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────
   Order confirmed page (Figma 8-869)
   ───────────────────────────────────────────────────────────────── */
.confirmed-page { padding: 4rem 4rem 6rem; }
.confirmed-page .content { max-width: 1264px; margin: 0 auto; }
.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; }
.confirmed-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
.confirmed-card { padding: 20px; background: #fff; border-radius: 8px; box-shadow: var(--shadow-low); }
.confirmed-card h2 { font-size: 1.1em; margin: 0 0 12px; }
.confirmed-card h3 { font-size: 0.95em; margin: 14px 0 4px; }
.confirmed-card p { margin: 0; opacity: 0.85; 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: 18px; font-size: 0.9em; opacity: 0.8; }
.confirmed-help a { color: inherit; font-weight: 600; }

/* Post-purchase guidance: plan caveats + who to contact about an order. */
.confirmed-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 0.9em;
    line-height: 1.5;
}
.confirmed-note__title { margin: 0 0 6px; }
.confirmed-note p { margin: 0 0 10px; opacity: 0.8; }
.confirmed-note p:last-child { margin-bottom: 0; }
.confirmed-note a { color: inherit; font-weight: 600; }

.confirmed-actions { margin-top: 24px; display: flex; justify-content: center; }

@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: #fff;
    border-radius: 12px;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    padding: 28px;
    overflow: hidden;
}
.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: #555;
}
.addons-modal__close:hover { color: #000; }
.addons-modal__title { margin: 0 0 4px 0; font-size: 1.4em; font-weight: 600; }
.addons-modal__subtitle { margin: 0 0 18px 0; opacity: 0.7; }
.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: space-between; 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__skip {
    background: none; border: 0; cursor: pointer;
    font: inherit; color: #555; text-decoration: underline;
    padding: 8px 0;
}
.addons-modal__skip:hover { color: #000; }
.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: #fafafa;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    transition: border-color 0.15s, background 0.15s;
}
.addons-row--selected {
    border-color: #28282A;
    background: #fff;
    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: #999; }
.addons-row__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.addons-row__title { margin: 0; font-size: 1em; font-weight: 600; }
.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 rgba(0,0,0,0.18); border-radius: 5px;
    overflow: hidden;
}
.addons-row__qty button {
    background: none; border: 0;
    width: 26px; height: 30px;
    font: inherit; font-size: 1.1em; cursor: pointer;
}
.addons-row__qty button:hover { background: rgba(0,0,0,0.06); }
.addons-row__qty input {
    width: 36px; height: 30px;
    text-align: center;
    border: 0; border-left: 1px solid rgba(0,0,0,0.12);
    border-right: 1px solid rgba(0,0,0,0.12);
    font: inherit;
    -moz-appearance: textfield;
}
.addons-row__qty input::-webkit-outer-spin-button,
.addons-row__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.addons-row__select {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #28282A;
    border-radius: 16px;
    font: inherit; font-size: 0.85em; font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase;
    cursor: pointer;
    color: #28282A;
}
.addons-row--selected .addons-row__select {
    background: #28282A; color: #fff;
}

@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;
    }
    .confirmed-row{
        display: flex;
        flex-direction: column;
    }
}

button.co-discount__apply{
    padding: 0;
    border: none;
    background: none;
    font-weight: 400;
    font-family: var(--font-body);
    text-decoration: underline;
    color: var(--color-heading);
    font-size: 1.8rem;
    transition: var(--animate-fast);
    cursor: pointer;
}
button.co-discount__apply:hover{
    text-decoration: none;
    opacity: .72;
}
.confirmed-card > ul{
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
}
.confirmed-card > ul > li{
    padding: 0 !important;
    margin: 0;
    border: none !important
}
.confirmed-card > ul > li a{
    background: none;
    color: var(--color-body) !important;
    line-height: 1;
    padding: .2rem 3.2rem 0;
    text-decoration: none;
    border-radius: 0;
    border: 1px solid var(--color-body);
    outline: none;
    height: 3.2rem;
    cursor: pointer;
    margin: 0;
    font-size: 1.4rem !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading) !important;
    transition: var(--animate-medium);
    letter-spacing: .2em;
}
.confirmed-card > ul > li a:hover{
    background: var(--color-body);
    color: var(--color-light) !important;
}
@media screen and (max-width: 768px){
    .checkout-page{
        padding-inline: 2.4rem;
        overflow: hidden;
    }
    .checkout-page .content{
        max-width: 100%;
    }
}