/* Sungame Order Form v1.3.7 - standard_cart runtime and brand presentation layer */

/* This stylesheet is loaded by the independent Sungame Order Form style include. */

/* WHMCS standard_cart uses both utility names in native partials.  Keep the
 * visibility contract local to the Sungame order context so native hidden
 * controls, validation output, loaders, and cloned rows stay non-interactive
 * until their own runtime reveals them. */
.sg-order-context .hidden {
    display: none !important;
}

.sg-order-context .w-hidden {
    display: none !important;
}

/* WHMCS client base.css intentionally makes .w-hidden important.  Native
 * order.js also reveals a small set of legacy nodes with show()/slideDown(),
 * so those nodes use this local, non-important runtime state instead. */
.sg-order-context .sg-runtime-hidden {
    display: none;
}

/*
 * The copied WHMCS order markup uses short icon class names in a few
 * shared fragments. Keep those fragments self-contained by mapping the names
 * to the local WHMCS Font Awesome asset; no external icon font is required.
 */
.sg-order-context .ls,
.sg-order-context .lm {
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.sg-order-context .ls-check::before,
.sg-order-context .lm-check::before { content: "\f00c"; }
.sg-order-context .ls-close::before,
.sg-order-context .lm-close::before { content: "\f00d"; }
.sg-order-context .ls-search::before,
.sg-order-context .lm-search::before { content: "\f002"; }
.sg-order-context .ls-trash::before,
.sg-order-context .lm-trash::before { content: "\f2ed"; }
.sg-order-context .ls-info-circle::before,
.sg-order-context .lm-info-circle::before { content: "\f05a"; }
.sg-order-context .ls-chain::before,
.sg-order-context .lm-chain::before { content: "\f0c1"; }
.sg-order-context .ls-exclamation-circle::before,
.sg-order-context .lm-exclamation-circle::before { content: "\f06a"; }
.sg-order-context .ls-tag::before,
.sg-order-context .lm-tag::before { content: "\f02b"; }
.sg-order-context .ls-edit::before,
.sg-order-context .lm-edit::before { content: "\f044"; }
.sg-order-context .ls-bank-note::before,
.sg-order-context .lm-bank-note::before { content: "\f53d"; }
.sg-order-context .ls-reply::before,
.sg-order-context .lm-reply::before { content: "\f3e5"; }
.sg-order-context .ls-plus::before,
.sg-order-context .lm-plus::before { content: "\f067"; }
.sg-order-context .ls-arrow-right::before,
.sg-order-context .lm-arrow-right::before { content: "\f061"; }
.sg-order-context .ls-caret::before,
.sg-order-context .lm-caret::before { content: "\f0d7"; }
.sg-order-context .ls-addon::before,
.sg-order-context .lm-addon::before { content: "\f1b2"; }
.sg-order-context .ls-box::before,
.sg-order-context .lm-box::before { content: "\f1b2"; }
.sg-order-context .ls-hosting::before,
.sg-order-context .lm-hosting::before { content: "\f233"; }
.sg-order-context .ls-shield::before,
.sg-order-context .lm-shield::before { content: "\f3ed"; }
.sg-order-context .ls-lock::before,
.sg-order-context .lm-lock::before { content: "\f023"; }

body.sg-order-context {
    --sg-order-radius: 16px;
    --sg-order-radius-sm: 8px;
    --sg-order-radius-surface: var(--sg-order-radius);
    --sg-order-radius-control: 10px;
    --sg-order-radius-compact: var(--sg-order-radius-sm);
    --sg-order-radius-pill: 999px;
}

.sg-order-form {
    --sg-order-accent: #2e8b63;
    --sg-order-accent-hover: #0e4935;
    --sg-order-accent-solid: #145b42;
    --sg-order-accent-solid-hover: #0e4935;
    --sg-order-accent-soft: #dcefe6;
    --sg-order-surface-emphasis: #eef3f1;
    --sg-order-text-on-accent: #ffffff;
    --sg-order-bg: #f7f9f9;
    --sg-order-surface: #ffffff;
    --sg-order-surface-muted: #f1f5f5;
    --sg-order-text: #14201c;
    --sg-order-text-secondary: #40504a;
    --sg-order-text-muted: #5f6b70;
    --sg-order-border: #dce5e1;
    --sg-order-border-strong: #b9cbc2;
    --sg-order-danger: #b13d3d;
    --sg-order-radius: 16px;
    --sg-order-radius-sm: 8px;
    --sg-order-radius-surface: var(--sg-order-radius);
    --sg-order-radius-control: 10px;
    --sg-order-radius-compact: var(--sg-order-radius-sm);
    --sg-order-radius-pill: 999px;
    --sg-order-shadow: 0 8px 24px rgba(23, 35, 38, 0.06);
    background: var(--sg-order-bg);
    color: var(--sg-order-text);
    min-width: 0;
    padding: 0 0 42px;
}

/* The Sungame shell has already rendered the product-group title before the
 * order-form template runs. The independent products template supplies the
 * replacement title below; this bridge is only active because this asset is
 * loaded from the sungame products page. */
body.sg-order-context.sg-page-products .main-header {
    padding-bottom: 0;
    padding-top: 10px;
}

body.sg-order-context.sg-page-products .main-header-title,
body.sg-order-context.sg-page-products .main-header-bottom {
    display: none;
}

.sg-order-products {
    margin: 0 auto;
    max-width: 1240px;
    min-width: 0;
}

.sg-order-products__header {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 8px 0 24px;
}

.sg-order-games {
    border-bottom: 1px solid var(--sg-order-border);
    min-width: 0;
    padding: 0 0 13px;
}

.sg-order-games__label {
    color: var(--sg-order-text-muted);
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.sg-order-games__list {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.sg-order-game {
    align-items: center;
    background: var(--sg-order-surface);
    border: 1px solid var(--sg-order-border);
    border-radius: var(--sg-order-radius-control);
    color: var(--sg-order-text-secondary);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.sg-order-game:hover,
.sg-order-game:focus {
    background: var(--sg-order-accent-soft);
    border-color: #b9e3dc;
    color: var(--sg-order-accent-hover);
    outline: none;
}

.sg-order-game:active {
    transform: translateY(1px);
}

.sg-order-game.is-active {
    background: var(--sg-order-accent-solid);
    border-color: var(--sg-order-accent-solid);
    box-shadow: 0 3px 8px rgba(11, 157, 141, 0.16);
    color: var(--sg-order-text-on-accent);
}

.sg-order-game:focus-visible {
    box-shadow: 0 0 0 3px rgba(11, 157, 141, 0.2);
    outline: 2px solid var(--sg-order-accent);
    outline-offset: 2px;
}

.sg-order-category[hidden] {
    display: none !important;
}

.sg-order-products__heading {
    min-width: 0;
}

.sg-order-products__eyebrow {
    color: var(--sg-order-accent-hover);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 9px;
}

.sg-order-products__title {
    color: var(--sg-order-text);
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0;
}

.sg-order-products__subtitle {
    color: var(--sg-order-text-secondary);
    font-size: 1rem;
    line-height: 1.55;
    margin: 10px 0 0;
}

.sg-order-categories {
    border-bottom: 1px solid var(--sg-order-border);
    border-top: 1px solid var(--sg-order-border);
    min-width: 0;
    padding: 15px 0;
}

.sg-order-categories__label {
    color: var(--sg-order-text-muted);
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.sg-order-categories__list {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.sg-order-category {
    align-items: center;
    background: var(--sg-order-surface);
    border: 1px solid var(--sg-order-border);
    border-radius: var(--sg-order-radius-sm);
    color: var(--sg-order-text-secondary);
    display: inline-flex;
    flex: 0 1 auto;
    line-height: 1.3;
    max-width: 100%;
    min-height: 38px;
    overflow-wrap: break-word;
    padding: 8px 12px;
    text-decoration: none;
    white-space: normal;
    word-break: normal;
}

.sg-order-category:hover,
.sg-order-category:focus,
.sg-order-category.is-active {
    background: var(--sg-order-accent-soft);
    border-color: #b9e3dc;
    color: var(--sg-order-accent-hover);
    text-decoration: none;
}

.sg-order-category:focus-visible,
.sg-order-product__cta:focus-visible {
    box-shadow: 0 0 0 3px rgba(11, 157, 141, 0.2);
    outline: 2px solid var(--sg-order-accent);
    outline-offset: 2px;
}

.sg-order-products__toolbar {
    align-items: baseline;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    min-width: 0;
    padding: 22px 0 14px;
}

.sg-order-products__toolbar-title {
    color: var(--sg-order-text);
    font-size: 1.12rem;
    font-weight: 650;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.sg-order-products__toolbar-meta {
    color: var(--sg-order-text-muted);
    flex: 0 0 auto;
    font-size: 0.84rem;
    white-space: nowrap;
}

/* Products uses the same commerce presentation adapter as Configure,
 * Cart and Checkout.  Keep the adapter-owned currency suffix legible on
 * the product cards without changing the formatted amount. */
/* Products identifies itself with an explicit template root.  Keep this
 * presentation scope independent from the WHMCS $templatefile body token,
 * whose order-form value is not a stable Products page contract. */
.sg-order-products-page .sg-order-product__price [data-sg-price] .sg-price-display__amount {
    font: inherit;
    font-variant-numeric: tabular-nums;
}

.sg-order-products-page .sg-order-product__price [data-sg-price] .sg-price-display__currency {
    margin-left: .36em;
    color: var(--sg-order-text-secondary, #536266);
    font-size: .72em;
    font-weight: 650;
    letter-spacing: .01em;
}

.sg-order-products-page .sg-order-product__price [data-sg-price] .sg-price-display__trailing {
    margin-left: .12em;
    color: inherit;
    font: inherit;
}

.sg-order-alert,
.sg-order-empty {
    background: var(--sg-order-surface);
    border: 1px solid var(--sg-order-border);
    border-left: 3px solid var(--sg-order-danger);
    border-radius: var(--sg-order-radius-sm);
    color: var(--sg-order-text-secondary);
    margin: 0 0 18px;
    padding: 14px 16px;
}

.sg-order-product-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
}

.sg-order-product {
    background: var(--sg-order-surface);
    border: 1px solid var(--sg-order-border);
    border-radius: var(--sg-order-radius);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    height: auto;
    min-width: 0;
    overflow: hidden;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.sg-order-product:hover {
    border-color: var(--sg-order-border-strong);
    box-shadow: var(--sg-order-shadow);
    transform: translateY(-2px);
}

.sg-order-product.is-featured {
    border-color: #a7d8d0;
}

.sg-order-product__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 20px 20px 18px;
}

.sg-order-product__badge {
    align-self: flex-start;
    background: var(--sg-order-accent-soft);
    border: 1px solid #b9e3dc;
    border-radius: var(--sg-order-radius-compact);
    color: var(--sg-order-accent-hover);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
    padding: 4px 8px;
}

.sg-order-product__name {
    color: var(--sg-order-text);
    font-size: 1.2rem;
    font-weight: 650;
    line-height: 1.3;
    margin: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
}

.sg-order-product__price {
    color: var(--sg-order-text);
    margin-top: 14px;
    min-width: 0;
}

.sg-order-product__price .price {
    color: var(--sg-order-text);
    max-width: 100%;
    text-align: left;
}

.sg-order-product__price .price-amount {
    color: var(--sg-order-text);
    justify-content: flex-start;
    max-width: 100%;
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: normal;
}

.sg-order-product__price .price-cycle,
.sg-order-product__price .price-setup-fee,
.sg-order-product__price .price-starting-from,
.sg-order-product__price-note {
    color: var(--sg-order-text-muted);
    display: block;
    font-size: 0.8rem;
    line-height: 1.4;
}

.sg-order-product__price-note {
    margin-bottom: 3px;
}

.sg-order-product__description {
    border-top: 1px solid var(--sg-order-border);
    color: var(--sg-order-text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-top: 18px;
    min-width: 0;
    overflow-wrap: break-word;
    padding-top: 16px;
    text-align: left;
    word-break: normal;
}

.sg-order-product__description p,
.sg-order-product__description div,
.sg-order-product__description li {
    color: inherit;
    line-height: inherit;
    text-align: left;
}

.sg-order-product__description p:first-child,
.sg-order-product__description div:first-child {
    margin-top: 0;
}

.sg-order-product__description p:last-child,
.sg-order-product__description div:last-child {
    margin-bottom: 0;
}

.sg-order-product__description img {
    height: auto;
    max-width: 100%;
}

.sg-order-product__description table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

/* Only ordinary coloured inline marketing markup inside the admin-provided
 * description is neutralised. CTA, stock and alert nodes are outside this
 * scope and keep their state colours. */
.sg-order-product__description span[style*="color"]:not([class*="status"]):not([class*="alert"]),
.sg-order-product__description font[style*="color"]:not([class*="status"]):not([class*="alert"]),
.sg-order-product__description font[color]:not([class*="status"]):not([class*="alert"]) {
    color: inherit !important;
}

.sg-order-product__features {
    border-top: 1px solid var(--sg-order-border);
    list-style: none;
    margin: 18px 0 0;
    padding: 10px 0 0;
}

.sg-order-product__features li {
    align-items: baseline;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    line-height: 1.5;
    min-width: 0;
    padding: 6px 0;
}

.sg-order-product__feature-name {
    color: var(--sg-order-text-secondary);
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.sg-order-product__feature-value {
    color: var(--sg-order-text);
    font-weight: 600;
    min-width: 0;
    overflow-wrap: break-word;
    text-align: right;
    word-break: normal;
}

.sg-order-product__footer {
    align-items: center;
    border-top: 1px solid var(--sg-order-border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: auto;
    min-width: 0;
    padding: 15px 20px 20px;
}

.sg-order-product__stock {
    color: var(--sg-order-text-muted);
    flex: 1 1 auto;
    font-size: 0.8rem;
    line-height: 1.35;
    min-width: 0;
}

.sg-order-product__stock.is-empty {
    color: var(--sg-order-danger);
}

.sg-order-product__cta {
    background: var(--sg-order-accent-solid);
    border-color: var(--sg-order-accent-solid);
    color: var(--sg-order-text-on-accent);
    flex: 0 1 auto;
    margin-left: auto;
    max-width: 100%;
    white-space: nowrap;
}

.sg-order-product__cta:hover,
.sg-order-product__cta:focus {
    background: var(--sg-order-accent-solid-hover);
    border-color: var(--sg-order-accent-solid-hover);
    color: var(--sg-order-text-on-accent);
}

.sg-order-product__cta.disabled,
.sg-order-product__cta[aria-disabled="true"] {
    background: var(--sg-order-surface-muted);
    border-color: var(--sg-order-border-strong);
    color: var(--sg-order-text-secondary);
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
}

.sg-order-products__included {
    border-top: 1px solid var(--sg-order-border);
    margin-top: 34px;
    padding-top: 24px;
}

.sg-order-products__included-title {
    color: var(--sg-order-text);
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0 0 14px;
}

.sg-order-products__included-list {
    color: var(--sg-order-text-secondary);
    display: grid;
    gap: 8px 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.sg-order-products__included-list li {
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.sg-order-products__included-icon {
    color: var(--sg-order-accent);
    font-weight: 700;
    margin-right: 8px;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .sg-order-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sg-order-products__included-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.sg-order-context.sg-page-products .main-header {
        padding-top: 4px;
    }

    .sg-order-form {
        padding-bottom: 28px;
    }

    .sg-order-products__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding-bottom: 20px;
    }

    .sg-order-categories {
        padding-bottom: 11px;
    }

    .sg-order-games {
        padding-bottom: 11px;
    }

    .sg-order-games__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 4px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .sg-order-game {
        flex: 0 0 auto;
    }

    .sg-order-categories__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 4px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .sg-order-category {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .sg-order-products__toolbar {
        padding-top: 18px;
    }

    .sg-order-product-grid {
        gap: 14px;
        grid-template-columns: minmax(0, 1fr);
    }

    .sg-order-product__body {
        padding: 18px 16px 16px;
    }

    .sg-order-product__footer {
        align-items: stretch;
        flex-direction: column;
        padding: 14px 16px 16px;
    }

    .sg-order-product__cta {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .sg-order-products__included-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 430px) {
    .sg-order-products__title {
        font-size: 1.85rem;
    }

    .sg-order-product__features li {
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 45%);
    }
}

/* -------------------------------------------------------------------------
 * v1.3.1 Commerce Runtime & Mobile Interaction Recovery
 * Presentation ownership is scoped to the Sungame View Cart / Checkout
 * context.  WHMCS standard_cart controls the forms, values, IDs, and events.
 * ------------------------------------------------------------------------- */

body.sg-order-context.sg-page-viewcart .main-grid.sg-cart-layout,
body.sg-order-context.sg-page-checkout .main-grid.sg-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
    gap: 30px;
}

body.sg-order-context.sg-page-viewcart .main-grid.sg-cart-layout > .main-content,
body.sg-order-context.sg-page-checkout .main-grid.sg-cart-layout > .main-content,
body.sg-order-context.sg-page-viewcart .main-grid.sg-cart-layout > .main-sidebar,
body.sg-order-context.sg-page-checkout .main-grid.sg-cart-layout > .main-sidebar {
    min-width: 0;
    width: auto;
}

body.sg-order-context.sg-page-viewcart .main-grid.sg-cart-layout > .main-sidebar,
body.sg-order-context.sg-page-checkout .main-grid.sg-cart-layout > .main-sidebar {
    margin-top: 0;
}

body.sg-order-context.sg-page-viewcart .sidebar-sticky-summary,
body.sg-order-context.sg-page-checkout .sidebar-sticky-summary {
    position: sticky;
    top: 24px;
}

/* order.js contains a legacy generic sidebar offset helper.  The Cart /
 * Checkout summary owns its position in CSS, so inline offset animation must
 * not be allowed to move this presentation surface. */
body.sg-order-context.sg-page-viewcart #orderSummary,
body.sg-order-context.sg-page-checkout #orderSummary {
    margin-top: 0 !important;
}

body.sg-order-context.sg-page-viewcart .order-summary-mob,
body.sg-order-context.sg-page-checkout .order-summary-mob,
body.sg-order-context.sg-page-configureproduct .order-summary-mob {
    display: none !important;
}

/* Cart cards replace the old table rhythm while retaining the original form
 * and data-input-number structure. */
body.sg-order-context.sg-page-viewcart .sg-cart-summary .section-body,
body.sg-order-context.sg-page-checkout .sg-cart-summary .section-body {
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card,
body.sg-order-context.sg-page-checkout .sg-cart-card {
    border-radius: var(--sg-order-radius-surface);
    overflow: hidden;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-heading,
body.sg-order-context.sg-page-checkout .sg-cart-card .cart-heading {
    display: none;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item,
body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item {
    padding: 22px;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item > .row,
body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 16px;
    row-gap: 12px;
    margin: 0;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-name,
body.sg-order-context.sg-page-checkout .sg-cart-card .prod-name {
    flex: 1 1 auto;
    min-width: 180px;
    width: auto;
    max-width: none;
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-qty,
body.sg-order-context.sg-page-checkout .sg-cart-card .prod-qty {
    flex: 0 0 90px;
    width: 90px;
    max-width: none;
    padding: 0;
    text-align: center;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-price,
body.sg-order-context.sg-page-checkout .sg-cart-card .prod-price {
    flex: 0 0 190px;
    width: 190px;
    max-width: none;
    padding: 0;
    text-align: right;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-actions,
body.sg-order-context.sg-page-checkout .sg-cart-card .prod-actions {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin-left: auto;
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .w-100,
body.sg-order-context.sg-page-checkout .sg-cart-card .w-100 {
    flex: 0 0 100%;
    width: 100%;
    height: 0;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-addons,
body.sg-order-context.sg-page-checkout .sg-cart-card .prod-addons {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item-title,
body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item-title {
    display: block;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item-title-main,
body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item-title-main {
    display: block;
    color: var(--sg-text, #172326);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item-title-small,
body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item-title-small {
    display: block;
    margin-top: 4px;
    color: var(--sg-text-muted, #5f6b70);
    font-size: .82rem;
    line-height: 1.45;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item-pricing,
body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 3px 8px;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item-price,
body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item-price {
    color: var(--sg-text, #172326);
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
    font-weight: 760;
    line-height: 1.25;
    white-space: nowrap;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .price-cycle-inline,
body.sg-order-context.sg-page-checkout .sg-cart-card .price-cycle-inline {
    color: var(--sg-text-secondary, #536266);
    font-size: .78rem;
    font-weight: 650;
    white-space: nowrap;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .price-setup,
body.sg-order-context.sg-page-checkout .sg-cart-card .price-setup {
    flex: 0 0 100%;
    color: var(--sg-text-muted, #5f6b70);
    font-size: .76rem;
    line-height: 1.4;
    white-space: nowrap;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-addons,
body.sg-order-context.sg-page-checkout .sg-cart-card .prod-addons {
    margin-top: 4px;
    border-top: 1px solid var(--sg-border, #dce5e5);
    padding-top: 13px;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .addon-item,
body.sg-order-context.sg-page-checkout .sg-cart-card .addon-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 12px;
    margin: 0;
    padding: 6px 0;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .addon-name,
body.sg-order-context.sg-page-checkout .sg-cart-card .addon-name {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .addon-name .item-name,
body.sg-order-context.sg-page-checkout .sg-cart-card .addon-name .item-name {
    display: block;
    color: var(--sg-text-muted, #5f6b70);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .04em;
    line-height: 1.35;
    text-transform: uppercase;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .addon-name .item-value,
body.sg-order-context.sg-page-checkout .sg-cart-card .addon-name .item-value {
    color: var(--sg-text, #172326);
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.4;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .addon-price,
body.sg-order-context.sg-page-checkout .sg-cart-card .addon-price,
body.sg-order-context.sg-page-viewcart .sg-cart-card .item-price,
body.sg-order-context.sg-page-checkout .sg-cart-card .item-price {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0;
    color: var(--sg-text-secondary, #536266);
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .addon-qty,
body.sg-order-context.sg-page-checkout .sg-cart-card .addon-qty {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .addon-actions,
body.sg-order-context.sg-page-checkout .sg-cart-card .addon-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item-actions,
body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item-actions .btn-icon,
body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item-actions .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--sg-order-radius-control);
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .input-number,
body.sg-order-context.sg-page-checkout .sg-cart-card .input-number {
    display: inline-flex;
    align-items: stretch;
    min-height: 38px;
    overflow: hidden;
    border: 1px solid var(--sg-border-strong, #c5d2d2);
    border-radius: var(--sg-order-radius-control);
    background: var(--sg-surface, #ffffff);
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .input-number input,
body.sg-order-context.sg-page-checkout .sg-cart-card .input-number input {
    width: 48px;
    min-height: 36px;
    padding: 5px 3px;
    border: 0;
    color: var(--sg-text, #172326);
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .input-number input:focus,
body.sg-order-context.sg-page-checkout .sg-cart-card .input-number input:focus {
    outline: 2px solid var(--sg-accent, #0b9d8d);
    outline-offset: -2px;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .input-number-actions,
body.sg-order-context.sg-page-checkout .sg-cart-card .input-number-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 24px;
    border-left: 1px solid var(--sg-border, #dce5e5);
    background: var(--sg-surface-muted, #f1f5f5);
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .input-number-actions > div,
body.sg-order-context.sg-page-checkout .sg-cart-card .input-number-actions > div {
    position: relative;
    flex: 1 1 50%;
    min-height: 17px;
    cursor: pointer;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .input-number-actions > div::before,
body.sg-order-context.sg-page-checkout .sg-cart-card .input-number-actions > div::before {
    position: absolute;
    inset: 0;
    color: var(--sg-text-secondary, #536266);
    font-size: .78rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .input-number-actions .plus::before,
body.sg-order-context.sg-page-checkout .sg-cart-card .input-number-actions .plus::before {
    content: '+';
}

body.sg-order-context.sg-page-viewcart .sg-cart-card .input-number-actions .minus::before,
body.sg-order-context.sg-page-checkout .sg-cart-card .input-number-actions .minus::before {
    content: '−';
}

body.sg-order-context.sg-page-viewcart .sg-cart-card > .panel-footer,
body.sg-order-context.sg-page-checkout .sg-cart-card > .panel-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card > .panel-footer .content,
body.sg-order-context.sg-page-checkout .sg-cart-card > .panel-footer .content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

body.sg-order-context.sg-page-viewcart .sg-cart-card > .panel-footer .btn,
body.sg-order-context.sg-page-checkout .sg-cart-card > .panel-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: var(--sg-order-radius-compact);
}

/* Promo card.  The native method, action, name, id, and validatepromo name
 * remain in the template; only the surface and label are owned here. */
body.sg-order-context.sg-page-viewcart .sg-promo-section .section-body,
body.sg-order-context.sg-page-checkout .sg-promo-section .section-body {
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-promo-card,
body.sg-order-context.sg-page-checkout .sg-promo-card {
    margin-bottom: 0;
    border: 1px solid var(--sg-border, #dce5e5);
    border-radius: var(--sg-order-radius-surface);
    background: var(--sg-surface, #ffffff);
    box-shadow: 0 5px 16px rgba(23, 35, 38, .04);
}

body.sg-order-context.sg-page-viewcart .sg-promo-card--form,
body.sg-order-context.sg-page-checkout .sg-promo-card--form {
    padding: 18px;
}

body.sg-order-context.sg-page-viewcart .sg-promo-card-heading,
body.sg-order-context.sg-page-checkout .sg-promo-card-heading {
    padding: 16px 18px;
    background: var(--sg-surface-emphasis, #edf7f5);
    border-bottom: 1px solid var(--sg-border, #dce5e5);
}

body.sg-order-context.sg-page-viewcart .promo-code-description,
body.sg-order-context.sg-page-checkout .promo-code-description {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--sg-text, #172326);
    font-weight: 650;
}

body.sg-order-context.sg-page-viewcart .promo-code-description i,
body.sg-order-context.sg-page-checkout .promo-code-description i {
    color: var(--sg-accent-hover, #087d71);
}

body.sg-order-context.sg-page-viewcart .sg-promo-card-footer,
body.sg-order-context.sg-page-checkout .sg-promo-card-footer {
    padding: 13px 18px;
    background: var(--sg-surface, #ffffff);
    border-top: 0;
}

body.sg-order-context.sg-page-viewcart .sg-promo-card .code,
body.sg-order-context.sg-page-checkout .sg-promo-card .code {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--sg-border, #dce5e5);
    border-radius: var(--sg-order-radius-compact);
    background: var(--sg-surface-muted, #f1f5f5);
    color: var(--sg-text, #172326);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
}

body.sg-order-context.sg-page-viewcart .sg-promo-form,
body.sg-order-context.sg-page-checkout .sg-promo-form {
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-promo-row,
body.sg-order-context.sg-page-checkout .sg-promo-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

body.sg-order-context.sg-page-viewcart .sg-promo-field,
body.sg-order-context.sg-page-checkout .sg-promo-field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

body.sg-order-context.sg-page-viewcart .sg-promo-field .sg-promo-input,
body.sg-order-context.sg-page-checkout .sg-promo-field .sg-promo-input {
    min-height: 42px;
    padding-left: 40px;
    border-radius: var(--sg-order-radius-control);
}

body.sg-order-context.sg-page-viewcart .sg-promo-field .sg-promo-icon,
body.sg-order-context.sg-page-checkout .sg-promo-field .sg-promo-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    transform: translateY(-50%);
    color: var(--sg-accent-hover, #087d71);
    pointer-events: none;
}

body.sg-order-context.sg-page-viewcart .sg-promo-submit-wrap,
body.sg-order-context.sg-page-checkout .sg-promo-submit-wrap {
    flex: 0 0 auto;
}

body.sg-order-context.sg-page-viewcart .sg-promo-submit,
body.sg-order-context.sg-page-checkout .sg-promo-submit {
    min-height: 42px;
    min-width: 76px;
    border-radius: var(--sg-order-radius-control);
    font-weight: 700;
}

/* Billing is intentionally compact: no artificial height is introduced and
 * the existing account/address/register fields remain the source of truth. */
body.sg-order-context.sg-page-viewcart .sg-billing-section .section-body,
body.sg-order-context.sg-page-checkout .sg-billing-section .section-body {
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-billing-section .panel-group,
body.sg-order-context.sg-page-checkout .sg-billing-section .panel-group {
    display: grid;
    gap: 10px;
    margin-bottom: 0;
}

body.sg-order-context.sg-page-viewcart .sg-billing-section .panel-check,
body.sg-order-context.sg-page-checkout .sg-billing-section .panel-check {
    min-height: 0 !important;
    margin: 0;
    overflow: hidden;
    border-radius: var(--sg-order-radius-surface);
}

body.sg-order-context.sg-page-viewcart .sg-billing-section .panel-check .panel-heading,
body.sg-order-context.sg-page-checkout .sg-billing-section .panel-check .panel-heading {
    min-height: 0;
    padding: 14px 16px;
}

body.sg-order-context.sg-page-viewcart .sg-billing-section .panel-check .panel-body,
body.sg-order-context.sg-page-checkout .sg-billing-section .panel-check .panel-body {
    min-height: 0;
    padding: 14px 16px;
}

body.sg-order-context.sg-page-viewcart .sg-billing-section address,
body.sg-order-context.sg-page-checkout .sg-billing-section address {
    margin: 0;
    color: var(--sg-text-secondary, #536266);
    font-size: .84rem;
    line-height: 1.65;
}

body.sg-order-context.sg-page-viewcart .sg-billing-section .account-select-label,
body.sg-order-context.sg-page-checkout .sg-billing-section .account-select-label {
    margin-left: 8px;
}

/* Credit and payment gateway cards keep the native radio contracts intact. */
body.sg-order-context.sg-page-viewcart .sg-payment-section .section-body,
body.sg-order-context.sg-page-checkout .sg-payment-section .section-body {
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-credit-panel,
body.sg-order-context.sg-page-checkout .sg-credit-panel {
    min-height: 0 !important;
    margin-bottom: 14px;
    border-radius: var(--sg-order-radius-surface);
}

body.sg-order-context.sg-page-viewcart .sg-credit-panel .panel-body,
body.sg-order-context.sg-page-checkout .sg-credit-panel .panel-body {
    padding: 16px 18px;
}

body.sg-order-context.sg-page-viewcart .credit-balance,
body.sg-order-context.sg-page-checkout .credit-balance {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-viewcart .credit-balance-title,
body.sg-order-context.sg-page-checkout .credit-balance-title {
    margin: 0;
    color: var(--sg-text-secondary, #536266);
    font-size: .82rem;
    font-weight: 600;
}

body.sg-order-context.sg-page-viewcart .sg-credit-balance-value,
body.sg-order-context.sg-page-checkout .sg-credit-balance-value {
    color: var(--sg-text, #172326);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    font-weight: 760;
    white-space: nowrap;
}

body.sg-order-context.sg-page-viewcart .sg-credit-zero-state,
body.sg-order-context.sg-page-checkout .sg-credit-zero-state {
    display: none;
}

body.sg-order-context.sg-page-viewcart .sg-gateway-section,
body.sg-order-context.sg-page-checkout .sg-gateway-section {
    margin-bottom: 0;
}

body.sg-order-context.sg-page-viewcart .sg-gateway-section .section-body,
body.sg-order-context.sg-page-checkout .sg-gateway-section .section-body {
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-gateway-list,
body.sg-order-context.sg-page-checkout .sg-gateway-list {
    display: grid;
    gap: 10px;
}

body.sg-order-context.sg-page-viewcart #paymentGatewaysContainer,
body.sg-order-context.sg-page-checkout #paymentGatewaysContainer {
    background: transparent;
    border: 0;
    border-radius: 0;
}

body.sg-order-context.sg-page-viewcart .sg-gateway-option,
body.sg-order-context.sg-page-checkout .sg-gateway-option {
    min-height: 0 !important;
    margin: 0;
    overflow: hidden;
    border-radius: var(--sg-order-radius-surface);
}

body.sg-order-context.sg-page-viewcart .sg-gateway-option .panel-heading,
body.sg-order-context.sg-page-checkout .sg-gateway-option .panel-heading {
    min-height: 0;
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-gateway-option .panel-heading > label,
body.sg-order-context.sg-page-checkout .sg-gateway-option .panel-heading > label {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 54px;
    margin: 0;
    padding: 12px 16px;
    cursor: pointer;
}

body.sg-order-context.sg-page-viewcart .sg-gateway-option .check-content,
body.sg-order-context.sg-page-checkout .sg-gateway-option .check-content {
    flex: 1 1 auto;
    color: inherit;
    font-weight: 650;
}

body.sg-order-context.sg-page-viewcart .sg-gateway-icon,
body.sg-order-context.sg-page-checkout .sg-gateway-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--sg-order-radius-compact);
    background: var(--sg-surface-muted, #f1f5f5);
    color: var(--sg-accent-hover, #087d71);
}

body.sg-order-context.sg-page-viewcart .sg-gateway-option.checked .sg-gateway-icon,
body.sg-order-context.sg-page-checkout .sg-gateway-option.checked .sg-gateway-icon {
    background: var(--sg-surface, #ffffff);
}

body.sg-order-context.sg-page-viewcart .sg-gateway-option input:focus-visible ~ .check-content,
body.sg-order-context.sg-page-checkout .sg-gateway-option input:focus-visible ~ .check-content {
    outline: 2px solid var(--sg-accent, #0b9d8d);
    outline-offset: 4px;
}

/* Summary list reset is local to the Commerce summary; no global list style
 * is changed. */
body.sg-order-context.sg-page-viewcart #orderSummary .summary-list,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .list-item,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .list-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 7px 0;
}

body.sg-order-context.sg-page-viewcart #orderSummary .summary-list + .summary-list,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list + .summary-list {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--sg-border, #dce5e5);
}

body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .item-name,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .item-name {
    min-width: 0;
    color: var(--sg-text-secondary, #536266);
    line-height: 1.45;
}

body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .item-value,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .item-value {
    flex: 0 0 auto;
    color: var(--sg-text, #172326);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

body.sg-order-context.sg-page-viewcart #orderSummary [data-sg-price],
body.sg-order-context.sg-page-checkout #orderSummary [data-sg-price] {
    white-space: nowrap;
}

body.sg-order-context.sg-page-viewcart [data-sg-price] .sg-price-display__amount,
body.sg-order-context.sg-page-checkout [data-sg-price] .sg-price-display__amount {
    font: inherit;
    font-variant-numeric: tabular-nums;
}

body.sg-order-context.sg-page-viewcart [data-sg-price] .sg-price-display__currency,
body.sg-order-context.sg-page-checkout [data-sg-price] .sg-price-display__currency {
    margin-left: .34em;
    color: var(--sg-text-secondary, #536266);
    font-size: .74em;
    font-weight: 650;
    letter-spacing: .01em;
}

body.sg-order-context.sg-page-viewcart [data-sg-price] .sg-price-display__trailing,
body.sg-order-context.sg-page-checkout [data-sg-price] .sg-price-display__trailing {
    margin-left: .12em;
    color: inherit;
    font: inherit;
}

body.sg-order-context.sg-page-viewcart #orderSummary #totalDueToday,
body.sg-order-context.sg-page-checkout #orderSummary #totalDueToday {
    line-height: 1.25;
    white-space: nowrap;
}

@media (max-width: 991px) {
    body.sg-order-context.sg-page-configureproduct #orderSummary .summary-actions {
        display: none !important;
    }

    body.sg-order-context.sg-page-viewcart .main-grid.sg-cart-layout,
    body.sg-order-context.sg-page-checkout .main-grid.sg-cart-layout {
        display: block;
    }

    body.sg-order-context.sg-page-viewcart .main-grid.sg-cart-layout > .main-content,
    body.sg-order-context.sg-page-checkout .main-grid.sg-cart-layout > .main-content,
    body.sg-order-context.sg-page-viewcart .main-grid.sg-cart-layout > .main-sidebar,
    body.sg-order-context.sg-page-checkout .main-grid.sg-cart-layout > .main-sidebar {
        width: 100%;
    }

    body.sg-order-context.sg-page-viewcart .main-grid.sg-cart-layout > .main-sidebar,
    body.sg-order-context.sg-page-checkout .main-grid.sg-cart-layout > .main-sidebar {
        margin-top: 28px;
    }

    body.sg-order-context.sg-page-viewcart .sidebar-sticky-summary,
    body.sg-order-context.sg-page-checkout .sidebar-sticky-summary {
        position: static;
    }

    body.sg-order-context.sg-page-viewcart #orderSummary .summary-actions,
    body.sg-order-context.sg-page-checkout #orderSummary .summary-actions {
        display: none !important;
    }

    body.sg-order-context.sg-page-viewcart .order-summary-mob,
    body.sg-order-context.sg-page-checkout .order-summary-mob,
    body.sg-order-context.sg-page-configureproduct .order-summary-mob {
        position: static !important;
        display: block !important;
        width: 100%;
        margin: 20px 0 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.sg-order-context.sg-page-viewcart .order-summary-mob #checkoutMobile,
    body.sg-order-context.sg-page-checkout .order-summary-mob #checkoutMobile,
    body.sg-order-context.sg-page-configureproduct .order-summary-mob #btnCompleteProductConfigMob {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        border-radius: var(--sg-order-radius-control);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sg-order-context .panel-check,
    body.sg-order-context .sg-order-product,
    body.sg-order-context .sg-order-addon-card,
    body.sg-order-context .btn,
    body.sg-order-context .sg-order-game,
    body.sg-order-context .sg-order-category,
    body.sg-order-context .form-control,
    body.sg-order-context .custom-select,
    body.sg-order-context .sg-cta-arrow {
        transition: none;
    }

    body.sg-order-context .sg-order-product:hover,
    body.sg-order-context .sg-order-product:focus-within,
    body.sg-order-context .sg-order-addon-card:hover,
    body.sg-order-context .sg-order-addon-card:focus-within,
    body.sg-order-context .panel-check:hover,
    body.sg-order-context .panel-check:focus-within,
    body.sg-order-context .btn:hover .sg-cta-arrow,
    body.sg-order-context .btn:focus-visible .sg-cta-arrow {
        transform: none;
    }
}

@media (max-width: 767px) {
    body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item {
        padding: 18px 16px;
    }

    /* v1.4.5 mobile contract: one deterministic grid owns each cart row.
     * The desktop flex arrangement and the legacy empty .w-100 break helper
     * must not decide mobile placement. */
    body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item > .row,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item > .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        column-gap: 12px;
        row-gap: 12px;
        margin: 0;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item > .row > .prod-name,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item > .row > .prod-name {
        grid-column: 1 / -1;
        grid-row: 1;
        flex: none;
        min-width: 0;
        width: auto;
        max-width: none;
        padding: 0;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item > .row > .prod-qty,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item > .row > .prod-qty {
        grid-column: 1;
        grid-row: 2;
        flex: none;
        min-width: 0;
        width: auto;
        max-width: none;
        padding: 0;
        text-align: left;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item > .row > .prod-price,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item > .row > .prod-price {
        grid-column: 1 / -1;
        grid-row: 2;
        flex: none;
        min-width: 0;
        width: auto;
        max-width: none;
        padding: 0;
        text-align: right;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item > .row > .prod-qty + .prod-price,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item > .row > .prod-qty + .prod-price {
        grid-column: 2;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item > .row > .prod-actions,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item > .row > .prod-actions {
        grid-column: 1 / -1;
        grid-row: 3;
        align-self: start;
        justify-self: end;
        flex: none;
        min-width: 0;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        text-align: right;
    }

    /* This is an empty legacy flex break in summary-table.tpl.  The grid
     * contract supplies the actual row placement; no content is removed. */
    body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item > .row > .w-100,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item > .row > .w-100 {
        display: none;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item > .row > .prod-addons,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item > .row > .prod-addons {
        grid-column: 1 / -1;
        grid-row: auto;
        flex: none;
        min-width: 0;
        width: auto;
        max-width: none;
        padding: 0;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-addons .addon-name,
    body.sg-order-context.sg-page-checkout .sg-cart-card .prod-addons .addon-name {
        min-width: 0;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-addons .item-value,
    body.sg-order-context.sg-page-checkout .sg-cart-card .prod-addons .item-value,
    body.sg-order-context.sg-page-viewcart .sg-cart-card .addon-price,
    body.sg-order-context.sg-page-checkout .sg-cart-card .addon-price,
    body.sg-order-context.sg-page-viewcart .sg-cart-card .item-price,
    body.sg-order-context.sg-page-checkout .sg-cart-card .item-price {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item-price,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item-price,
    body.sg-order-context.sg-page-viewcart .sg-cart-card .price-cycle-inline,
    body.sg-order-context.sg-page-checkout .sg-cart-card .price-cycle-inline,
    body.sg-order-context.sg-page-viewcart .sg-cart-card .price-setup,
    body.sg-order-context.sg-page-checkout .sg-cart-card .price-setup {
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .cart-item-pricing,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item-pricing {
        max-width: 100%;
        min-width: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-price > .renewal,
    body.sg-order-context.sg-page-checkout .sg-cart-card .prod-price > .renewal {
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-price > .btn,
    body.sg-order-context.sg-page-checkout .sg-cart-card .prod-price > .btn {
        max-width: 100%;
        white-space: normal;
    }

    body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-name,
    body.sg-order-context.sg-page-checkout .sg-cart-card .prod-name,
    body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-qty,
    body.sg-order-context.sg-page-checkout .sg-cart-card .prod-qty,
    body.sg-order-context.sg-page-viewcart .sg-cart-card .prod-price,
    body.sg-order-context.sg-page-checkout .sg-cart-card .prod-price {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    body.sg-order-context.sg-page-viewcart .sg-promo-row,
    body.sg-order-context.sg-page-checkout .sg-promo-row {
        flex-wrap: wrap;
    }

    body.sg-order-context.sg-page-viewcart .sg-promo-field,
    body.sg-order-context.sg-page-checkout .sg-promo-field,
    body.sg-order-context.sg-page-viewcart .sg-promo-submit-wrap,
    body.sg-order-context.sg-page-checkout .sg-promo-submit-wrap {
        flex: 1 1 100%;
    }

    body.sg-order-context.sg-page-viewcart .sg-promo-submit,
    body.sg-order-context.sg-page-checkout .sg-promo-submit {
        width: 100%;
    }
}

/* Bootstrap tooltips can be left in the document while the destructive
 * modal owns the viewport. Keep the existing lifecycle and actions, but make
 * that stale visual layer inert only in the cart modal context. */
body.sg-order-context.sg-page-viewcart.modal-open .tooltip,
body.sg-order-context.sg-page-checkout.modal-open .tooltip {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* The client-area overlay has intentionally broad typography/button rules.
 * Keep this independent page's key text and CTA declarations above those
 * rules without changing any shared client-area component. */
.sg-order-form p.sg-order-products__eyebrow {
    color: var(--sg-order-accent-hover);
}

.sg-order-form p.sg-order-products__subtitle {
    color: var(--sg-order-text-secondary);
}

.sg-order-form h1.sg-order-products__title,
.sg-order-form h2.sg-order-product__name,
.sg-order-form h2.sg-order-products__included-title {
    color: var(--sg-order-text);
}

.sg-order-form h1.sg-order-products__title {
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0;
}

.sg-order-form h2.sg-order-product__name {
    font-size: 1.2rem;
    font-weight: 650;
    line-height: 1.3;
    margin: 0;
}

.sg-order-form h2.sg-order-products__included-title {
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0 0 14px;
}

.sg-order-form a.sg-order-category {
    color: var(--sg-order-text-secondary);
}

.sg-order-form a.sg-order-category:hover,
.sg-order-form a.sg-order-category:focus,
.sg-order-form a.sg-order-category.is-active {
    color: var(--sg-order-accent-hover);
}

.sg-order-form a.sg-order-product__cta {
    background: var(--sg-order-accent-solid);
    border-color: var(--sg-order-accent-solid);
    color: var(--sg-order-text-on-accent);
}

.sg-order-form a.sg-order-product__cta:hover,
.sg-order-form a.sg-order-product__cta:focus {
    background: var(--sg-order-accent-solid-hover);
    border-color: var(--sg-order-accent-solid-hover);
    color: var(--sg-order-text-on-accent);
}

.sg-order-form a.sg-order-product__cta.disabled,
.sg-order-form a.sg-order-product__cta[aria-disabled="true"] {
    background: var(--sg-order-surface-muted);
    border-color: var(--sg-order-border-strong);
    color: var(--sg-order-text-secondary);
    opacity: 1;
    pointer-events: none;
}

/* -------------------------------------------------------------------------
* Sungame v1.3.1 shared purchase-flow language under the independent order scope.
 * These selectors are scoped to order-form page classes so the stylesheet
 * can be loaded by common.tpl without changing unrelated client-area pages.
 * ------------------------------------------------------------------------- */
body.sg-order-context {
    background: var(--sg-bg, #f7f9f9);
}

body.sg-order-context .main-body {
    padding-bottom: 52px;
}

body.sg-order-context .main-content {
    min-width: 0;
}

/* Products: stronger hierarchy, quieter borders, and a deliberate chip rail. */
body.sg-order-context.sg-page-products .sg-order-form {
    background: var(--sg-bg, #f7f9f9);
    border-top: 1px solid var(--sg-border, #dce5e5);
    padding-top: 18px;
}

body.sg-order-context.sg-page-products .sg-order-products__header {
    padding-bottom: 30px;
}

body.sg-order-context.sg-page-products .sg-order-products__eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
}

body.sg-order-context.sg-page-products .sg-order-products__title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.045em;
}

body.sg-order-context.sg-page-products .sg-order-products__subtitle {
    font-size: 1.02rem;
    margin-top: 12px;
}

body.sg-order-context.sg-page-products .sg-order-categories {
    border: 0;
    padding: 0;
}

body.sg-order-context.sg-page-products .sg-order-categories__label {
    letter-spacing: 0.12em;
    margin-bottom: 9px;
}

body.sg-order-context.sg-page-products .sg-order-categories__list {
    background: var(--sg-surface-emphasis, #edf7f5);
    border: 1px solid var(--sg-border, #dce5e5);
    border-radius: var(--sg-order-radius-surface);
    gap: 5px;
    padding: 5px;
}

body.sg-order-context.sg-page-products .sg-order-category {
    background: transparent;
    border-color: transparent;
    border-radius: var(--sg-order-radius-control);
    font-size: 0.88rem;
    min-height: 36px;
    padding: 7px 11px;
}

body.sg-order-context.sg-page-products .sg-order-category:hover,
body.sg-order-context.sg-page-products .sg-order-category:focus {
    background: var(--sg-surface, #ffffff);
    border-color: var(--sg-border, #dce5e5);
    color: var(--sg-accent-hover, #087d71);
}

body.sg-order-context.sg-page-products .sg-order-category.is-active {
    background: var(--sg-order-accent-solid, #087d71);
    border-color: var(--sg-order-accent-solid, #087d71);
    box-shadow: 0 3px 8px rgba(11, 157, 141, 0.2);
    color: var(--sg-order-text-on-accent, #ffffff);
}

body.sg-order-context.sg-page-products .sg-order-products__toolbar {
    border-bottom: 1px solid var(--sg-border, #dce5e5);
    padding-bottom: 15px;
    padding-top: 30px;
}

body.sg-order-context.sg-page-products .sg-order-products__toolbar-title {
    font-size: 1.05rem;
    font-weight: 600;
}

body.sg-order-context.sg-page-products .sg-order-product {
    border-color: #e1e9e8;
    border-radius: var(--sg-order-radius-surface);
    box-shadow: 0 7px 22px rgba(23, 35, 38, 0.045);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.sg-order-context.sg-page-products .sg-order-product:hover {
    border-color: #b8d8d3;
    box-shadow: 0 13px 30px rgba(23, 35, 38, 0.09);
    transform: translateY(-2px);
}

body.sg-order-context.sg-page-products .sg-order-product.is-featured {
    border-color: #8fcac0;
    box-shadow: 0 8px 24px rgba(11, 157, 141, 0.09);
}

body.sg-order-context.sg-page-products .sg-order-product__body {
    padding: 24px 23px 20px;
}

body.sg-order-context.sg-page-products .sg-order-product__badge {
    border-radius: var(--sg-order-radius-pill);
    letter-spacing: 0.02em;
}

body.sg-order-context.sg-page-products .sg-order-product__name {
    font-size: 1.24rem;
    font-weight: 600;
    letter-spacing: -0.018em;
}

body.sg-order-context.sg-page-products .sg-order-product__price {
    margin-top: 16px;
}

body.sg-order-context.sg-page-products .sg-order-product__price .price-amount {
    font-size: clamp(1.65rem, 2.3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

body.sg-order-context.sg-page-products .sg-order-product__description {
    font-size: 0.9rem;
    line-height: 1.72;
    margin-top: 20px;
    padding-top: 18px;
}

body.sg-order-context.sg-page-products .sg-order-product__description p,
body.sg-order-context.sg-page-products .sg-order-product__description div,
body.sg-order-context.sg-page-products .sg-order-product__description ul,
body.sg-order-context.sg-page-products .sg-order-product__description ol {
    margin-bottom: 0.65em;
}

body.sg-order-context.sg-page-products .sg-order-product__features {
    margin-top: 20px;
    padding-top: 11px;
}

body.sg-order-context.sg-page-products .sg-order-product__footer {
    background: #fbfdfc;
    padding: 16px 23px 21px;
}

body.sg-order-context.sg-page-products .sg-order-product__cta {
    border-radius: var(--sg-order-radius-control);
    font-weight: 600;
    min-height: 40px;
    padding-left: 17px;
    padding-right: 17px;
}

/* Shared page scaffolding for Configure, Addons, Cart, and Checkout. */
body.sg-order-context.sg-page-configureproduct .main-grid,
body.sg-order-context.sg-page-addons .main-grid,
body.sg-order-context.sg-page-viewcart .main-grid,
body.sg-order-context.sg-page-checkout .main-grid {
    align-items: flex-start;
    gap: 28px;
}

/* v1.3.5 Sticky Layout Seal: Configure Product owns its two-column skeleton
 * locally.  The summary is a normal grid item, so it cannot overlay controls
 * in the main form.  The sticky owner is the existing summary wrapper only. */
body.sg-order-context.sg-page-configureproduct .main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
    gap: 30px;
    min-width: 0;
}

body.sg-order-context.sg-page-configureproduct .main-grid > .main-content,
body.sg-order-context.sg-page-configureproduct .main-grid > .main-sidebar {
    align-self: start;
    min-width: 0;
    width: 100%;
}

body.sg-order-context.sg-page-configureproduct .main-sidebar {
    width: 100%;
}

body.sg-order-context.sg-page-configureproduct .sidebar-sticky-summary {
    align-self: start;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* order.js has a frozen generic scrolling-sidebar helper for the legacy
 * #scrollingPanelContainer markup.  Sungame Configure Product intentionally
 * has no such container; keep the existing #orderSummary sticky owner out of
 * that helper's inline margin animation. */
body.sg-order-context.sg-page-configureproduct #orderSummary {
    margin-top: 0 !important;
}

body.sg-order-context.sg-page-configureproduct .section,
body.sg-order-context.sg-page-viewcart .section,
body.sg-order-context.sg-page-checkout .section {
    margin-bottom: 30px;
}

body.sg-order-context.sg-page-configureproduct .section-header,
body.sg-order-context.sg-page-viewcart .section-header,
body.sg-order-context.sg-page-checkout .section-header {
    border-bottom: 0;
    margin-bottom: 14px;
    padding: 0 0 2px;
}

body.sg-order-context.sg-page-configureproduct .section-title,
body.sg-order-context.sg-page-viewcart .section-title,
body.sg-order-context.sg-page-checkout .section-title {
    color: var(--sg-text, #172326);
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0;
}

body.sg-order-context.sg-page-configureproduct .section-desc,
body.sg-order-context.sg-page-viewcart .section-desc,
body.sg-order-context.sg-page-checkout .section-desc {
    color: var(--sg-text-secondary, #536266);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 5px 0 0;
}

body.sg-order-context.sg-page-configureproduct .panel,
body.sg-order-context.sg-page-addons .panel,
body.sg-order-context.sg-page-viewcart .panel,
body.sg-order-context.sg-page-checkout .panel {
    background: var(--sg-surface, #ffffff);
    border: 1px solid var(--sg-border, #dce5e5);
    border-radius: var(--sg-order-radius-surface);
    box-shadow: 0 6px 18px rgba(23, 35, 38, 0.045);
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-configureproduct .panel-heading,
body.sg-order-context.sg-page-configureproduct .panel-body,
body.sg-order-context.sg-page-configureproduct .panel-footer,
body.sg-order-context.sg-page-addons .panel-heading,
body.sg-order-context.sg-page-addons .panel-body,
body.sg-order-context.sg-page-addons .panel-footer,
body.sg-order-context.sg-page-viewcart .panel-heading,
body.sg-order-context.sg-page-viewcart .panel-body,
body.sg-order-context.sg-page-viewcart .panel-footer,
body.sg-order-context.sg-page-checkout .panel-heading,
body.sg-order-context.sg-page-checkout .panel-body,
body.sg-order-context.sg-page-checkout .panel-footer {
    background: var(--sg-surface, #ffffff);
    border-color: var(--sg-border, #dce5e5);
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-configureproduct .panel-heading,
body.sg-order-context.sg-page-addons .panel-heading,
body.sg-order-context.sg-page-viewcart .panel-heading,
body.sg-order-context.sg-page-checkout .panel-heading {
    padding: 16px 20px;
}

body.sg-order-context.sg-page-configureproduct .panel-body,
body.sg-order-context.sg-page-addons .panel-body,
body.sg-order-context.sg-page-viewcart .panel-body,
body.sg-order-context.sg-page-checkout .panel-body {
    padding: 20px;
}

body.sg-order-context.sg-page-configureproduct .panel-footer,
body.sg-order-context.sg-page-addons .panel-footer,
body.sg-order-context.sg-page-viewcart .panel-footer,
body.sg-order-context.sg-page-checkout .panel-footer {
    background: var(--sg-surface-muted, #f1f5f5);
    padding: 15px 20px;
}

body.sg-order-context.sg-page-configureproduct .panel-title,
body.sg-order-context.sg-page-addons .panel-title,
body.sg-order-context.sg-page-viewcart .panel-title,
body.sg-order-context.sg-page-checkout .panel-title,
body.sg-order-context.sg-page-configureproduct .check-title,
body.sg-order-context.sg-page-configureproduct .check-subtitle,
body.sg-order-context.sg-page-configureproduct .check-desc,
body.sg-order-context.sg-page-viewcart .check-title,
body.sg-order-context.sg-page-viewcart .check-subtitle,
body.sg-order-context.sg-page-viewcart .check-desc {
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-configureproduct .panel-check,
body.sg-order-context.sg-page-viewcart .panel-check,
body.sg-order-context.sg-page-checkout .panel-check {
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 160ms ease;
}

body.sg-order-context.sg-page-configureproduct .panel-check:hover,
body.sg-order-context.sg-page-configureproduct .panel-check:focus-within,
body.sg-order-context.sg-page-viewcart .panel-check:hover,
body.sg-order-context.sg-page-viewcart .panel-check:focus-within,
body.sg-order-context.sg-page-checkout .panel-check:hover,
body.sg-order-context.sg-page-checkout .panel-check:focus-within {
    transform: translateY(-2px);
}

body.sg-order-context.sg-page-configureproduct .panel-check.checked,
body.sg-order-context.sg-page-viewcart .panel-check.checked,
body.sg-order-context.sg-page-checkout .panel-check.checked {
    background: var(--sg-accent-soft, #e6f6f3);
    border-color: var(--sg-accent, #0b9d8d);
    box-shadow: 0 5px 15px rgba(11, 157, 141, 0.08);
}

body.sg-order-context.sg-page-configureproduct .panel-check.checked .panel-heading,
body.sg-order-context.sg-page-configureproduct .panel-check.checked .panel-body,
body.sg-order-context.sg-page-viewcart .panel-check.checked .panel-heading,
body.sg-order-context.sg-page-viewcart .panel-check.checked .panel-body,
body.sg-order-context.sg-page-checkout .panel-check.checked .panel-heading,
body.sg-order-context.sg-page-checkout .panel-check.checked .panel-body {
    background: transparent;
}

/* Billing-cycle pricing is presentation-only: the amount remains the
 * formatted WHMCS value, while a known WHMCS currency suffix gets its own
 * visual node. Unknown formats stay intact. */
body.sg-order-context.sg-page-configureproduct .sg-cycle-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    color: var(--sg-text, #172326);
    line-height: 1.25;
}

body.sg-order-context.sg-page-configureproduct .sg-cycle-price__amount,
body.sg-order-context.sg-page-configureproduct .sg-cycle-price__raw {
    color: var(--sg-text, #172326);
    font-size: 1.18rem;
    font-variant-numeric: tabular-nums;
    font-weight: 760;
    letter-spacing: -.01em;
}

body.sg-order-context.sg-page-configureproduct .sg-cycle-price__currency,
body.sg-order-context.sg-page-configureproduct .sg-cycle-price__period {
    color: var(--sg-text-secondary, #536266);
    font-size: .76rem;
    font-weight: 650;
    letter-spacing: .02em;
}

body.sg-order-context.sg-page-configureproduct .sg-cycle-price__period {
    white-space: nowrap;
}

/* Keep solid purchase-flow buttons readable even when only this local
 * stylesheet is available after a fullPath template branch. */
body.sg-order-context.sg-page-addons .btn-primary,
body.sg-order-context.sg-page-configureproduct .btn-primary,
body.sg-order-context.sg-page-viewcart .btn-primary,
body.sg-order-context.sg-page-checkout .btn-primary {
    background: var(--sg-order-accent-solid, #087d71);
    border-color: var(--sg-order-accent-solid, #087d71);
    color: var(--sg-order-text-on-accent, #ffffff);
}

body.sg-order-context.sg-page-addons .btn-primary:hover,
body.sg-order-context.sg-page-addons .btn-primary:focus,
body.sg-order-context.sg-page-configureproduct .btn-primary:hover,
body.sg-order-context.sg-page-configureproduct .btn-primary:focus,
body.sg-order-context.sg-page-viewcart .btn-primary:hover,
body.sg-order-context.sg-page-viewcart .btn-primary:focus,
body.sg-order-context.sg-page-checkout .btn-primary:hover,
body.sg-order-context.sg-page-checkout .btn-primary:focus {
    background: var(--sg-order-accent-solid-hover, #06665d);
    border-color: var(--sg-order-accent-solid-hover, #06665d);
    color: var(--sg-order-text-on-accent, #ffffff);
}

body.sg-order-context.sg-page-addons .btn-warning,
body.sg-order-context.sg-page-configureproduct .btn-warning,
body.sg-order-context.sg-page-viewcart .btn-warning,
body.sg-order-context.sg-page-checkout .btn-warning {
    background: #96600a;
    border-color: #96600a;
    color: var(--sg-order-text-on-accent, #ffffff);
}

body.sg-order-context.sg-page-addons .btn-warning:hover,
body.sg-order-context.sg-page-addons .btn-warning:focus,
body.sg-order-context.sg-page-configureproduct .btn-warning:hover,
body.sg-order-context.sg-page-configureproduct .btn-warning:focus,
body.sg-order-context.sg-page-viewcart .btn-warning:hover,
body.sg-order-context.sg-page-viewcart .btn-warning:focus,
body.sg-order-context.sg-page-checkout .btn-warning:hover,
body.sg-order-context.sg-page-checkout .btn-warning:focus {
    background: #7b4c06;
    border-color: #7b4c06;
    color: var(--sg-order-text-on-accent, #ffffff);
}

body.sg-order-context.sg-page-addons .btn-primary.disabled,
body.sg-order-context.sg-page-addons .btn-primary[disabled],
body.sg-order-context.sg-page-addons .btn-success.disabled,
body.sg-order-context.sg-page-addons .btn-success[disabled],
body.sg-order-context.sg-page-configureproduct .btn-primary.disabled,
body.sg-order-context.sg-page-configureproduct .btn-primary[disabled],
body.sg-order-context.sg-page-configureproduct .btn-success.disabled,
body.sg-order-context.sg-page-configureproduct .btn-success[disabled],
body.sg-order-context.sg-page-viewcart .btn-primary.disabled,
body.sg-order-context.sg-page-viewcart .btn-primary[disabled],
body.sg-order-context.sg-page-viewcart .btn-success.disabled,
body.sg-order-context.sg-page-viewcart .btn-success[disabled],
body.sg-order-context.sg-page-checkout .btn-primary.disabled,
body.sg-order-context.sg-page-checkout .btn-primary[disabled],
body.sg-order-context.sg-page-checkout .btn-success.disabled,
body.sg-order-context.sg-page-checkout .btn-success[disabled] {
    background: var(--sg-order-surface-muted, #f1f5f5);
    border-color: var(--sg-order-border-strong, #c5d2d2);
    color: var(--sg-order-text-secondary, #536266);
    cursor: not-allowed;
    opacity: 1;
}

/* v1.3.4 Configure summary presentation: desktop, mobile, loading, totals,
 * and every line state.  The native fragment and submit ownership remain
 * unchanged; these rules only clarify the existing WHMCS-formatted values. */
body.sg-order-context .sidebar-sticky-summary {
    position: sticky;
    top: 24px;
}

@media (max-width: 991px) {
    body.sg-order-context .sidebar-sticky-summary {
        position: static;
    }
}

body.sg-order-context.sg-page-configureproduct #orderSummary,
body.sg-order-context.sg-page-configureproduct #orderSummaryMob,
body.sg-order-context.sg-page-viewcart #orderSummary,
body.sg-order-context.sg-page-viewcart .order-summary-mob,
body.sg-order-context.sg-page-checkout #orderSummary,
body.sg-order-context.sg-page-checkout .order-summary-mob {
    background: var(--sg-surface, #ffffff);
    border: 1px solid var(--sg-border, #dce5e5);
    border-radius: var(--sg-order-radius-surface);
    box-shadow: 0 10px 25px rgba(23, 35, 38, 0.07);
    color: var(--sg-text, #172326);
}

/* Configure Product owns the page shell; the Ajax fragment owns only these
 * data rows.  The wrapper keeps the Sungame hierarchy without changing any
 * WHMCS condition or formatted amount. */
body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary {
    padding: 0 18px 16px;
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__product {
    display: grid;
    gap: 3px;
    padding: 17px 0 13px;
    border-bottom: 1px solid var(--sg-border, #dce5e5);
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__product-name,
body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__product-group {
    display: block;
    min-width: 0;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__product-name {
    color: var(--sg-text, #172326);
    font-size: 1.03rem;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__product-group {
    color: var(--sg-text-muted, #5f6b70);
    font-size: .73rem;
    font-weight: 650;
    letter-spacing: .04em;
    line-height: 1.35;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__list + .sg-config-summary__list,
body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__totals {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--sg-border, #dce5e5);
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__row,
body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__renewal-row,
body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 7px 0;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__label {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--sg-text-secondary, #536266);
    line-height: 1.45;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__value {
    flex: 0 0 auto;
    max-width: 46%;
    color: var(--sg-text, #172326);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__option-name,
body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__option-value {
    display: block;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__option-name {
    color: var(--sg-text-muted, #5f6b70);
    font-size: .74rem;
    font-weight: 650;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__option-value {
    color: var(--sg-text, #172326);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__row--base .sg-config-summary__label,
body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__row--base .sg-config-summary__value {
    color: var(--sg-text, #172326);
    font-weight: 650;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__row--option .sg-config-summary__value,
body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__row--option .sg-price-display__currency,
body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__row--option .sg-price-display__trailing {
    color: var(--sg-text-muted, #5f6b70);
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__row--addon .sg-config-summary__label {
    color: var(--sg-text, #172326);
    font-weight: 650;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__renewal-row {
    border-bottom: 1px solid var(--sg-border, #dce5e5);
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__renewal-row a {
    margin-left: 8px;
    color: var(--sg-danger, #b13d3d);
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__detail-row {
    padding-top: 2px;
    padding-bottom: 2px;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin-top: 12px;
    padding-top: 15px;
    border-top: 2px solid var(--sg-border-strong, #c5d2d2);
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__total-label {
    align-self: end;
    color: var(--sg-text, #172326);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .03em;
}

body.sg-order-context.sg-page-configureproduct #producttotal .sg-config-summary__total-value {
    align-self: end;
    color: var(--sg-text, #172326);
    font-size: 1.34rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

body.sg-order-context.sg-page-configureproduct #orderSummary .sg-config-summary__actions {
    display: flex;
    align-items: center;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--sg-border, #dce5e5);
    background: var(--sg-surface-muted, #f1f5f5);
    border-radius: 0 0 var(--sg-order-radius-surface) var(--sg-order-radius-surface);
}

body.sg-order-context.sg-page-configureproduct #orderSummary .sg-config-summary__actions .btn-checkout {
    width: 100%;
    min-height: 46px;
}

body.sg-order-context.sg-page-configureproduct #producttotal [data-sg-price] .sg-price-display__amount {
    font: inherit;
    font-variant-numeric: tabular-nums;
}

body.sg-order-context.sg-page-configureproduct #producttotal [data-sg-price] .sg-price-display__currency {
    margin-left: .36em;
    color: var(--sg-text-secondary, #536266);
    font-size: .72em;
    font-weight: 650;
    letter-spacing: .01em;
}

body.sg-order-context.sg-page-configureproduct #producttotal [data-sg-price] .sg-price-display__trailing {
    margin-left: .12em;
    color: inherit;
    font: inherit;
}

body.sg-order-context.sg-page-configureproduct #orderSummary .panel-heading,
body.sg-order-context.sg-page-viewcart #orderSummary .panel-heading,
body.sg-order-context.sg-page-checkout #orderSummary .panel-heading {
    background: var(--sg-surface-emphasis, #edf7f5);
    border-bottom: 1px solid var(--sg-border, #dce5e5);
    border-radius: var(--sg-order-radius-surface) var(--sg-order-radius-surface) 0 0;
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-configureproduct #orderSummary .panel-title,
body.sg-order-context.sg-page-viewcart #orderSummary .panel-title,
body.sg-order-context.sg-page-checkout #orderSummary .panel-title {
    color: var(--sg-text, #172326);
    font-size: 1rem;
    font-weight: 600;
}

body.sg-order-context.sg-page-configureproduct #orderSummary .panel-body,
body.sg-order-context.sg-page-configureproduct #orderSummary .panel-footer,
body.sg-order-context.sg-page-viewcart #orderSummary .panel-body,
body.sg-order-context.sg-page-viewcart #orderSummary .panel-footer,
body.sg-order-context.sg-page-checkout #orderSummary .panel-body,
body.sg-order-context.sg-page-checkout #orderSummary .panel-footer {
    background: var(--sg-surface, #ffffff);
    border-color: var(--sg-border, #dce5e5);
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-configureproduct #orderSummary .summary-list,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-list,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list {
    border-bottom-color: var(--sg-border, #dce5e5);
    color: var(--sg-text-secondary, #536266);
}

body.sg-order-context.sg-page-configureproduct #orderSummary .summary-list .list-item,
body.sg-order-context.sg-page-configureproduct #orderSummary .summary-list .item-name,
body.sg-order-context.sg-page-configureproduct #orderSummary .summary-list .item-value,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .list-item,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .item-name,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .item-value,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .list-item,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .item-name,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .item-value {
    color: var(--sg-text-secondary, #536266);
}

body.sg-order-context.sg-page-configureproduct #orderSummary .summary-list .list-item-main,
body.sg-order-context.sg-page-configureproduct #orderSummary .summary-list .list-item-main .item-name,
body.sg-order-context.sg-page-configureproduct #orderSummary .summary-list .list-item-main .item-value,
body.sg-order-context.sg-page-configureproduct #orderSummary .summary-list .list-item-title,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .list-item-main,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .list-item-main .item-name,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .list-item-main .item-value,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .list-item-title,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .list-item-main,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .list-item-main .item-name,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .list-item-main .item-value,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .list-item-title {
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-configureproduct #orderSummary .summary-list .faded,
body.sg-order-context.sg-page-configureproduct #orderSummary .summary-list .text-faded,
body.sg-order-context.sg-page-configureproduct #orderSummary .summary-list .line-through,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .faded,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .text-faded,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-list .line-through,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .faded,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .text-faded,
body.sg-order-context.sg-page-checkout #orderSummary .summary-list .line-through {
    color: var(--sg-text-muted, #5f6b70);
}

body.sg-order-context.sg-page-configureproduct #orderSummary .price-total,
body.sg-order-context.sg-page-configureproduct #orderSummary .price-amount,
body.sg-order-context.sg-page-viewcart #orderSummary .price-total,
body.sg-order-context.sg-page-viewcart #orderSummary .price-amount,
body.sg-order-context.sg-page-checkout #orderSummary .price-total,
body.sg-order-context.sg-page-checkout #orderSummary .price-amount {
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-configureproduct #orderSummary .price-total,
body.sg-order-context.sg-page-viewcart #orderSummary .price-total,
body.sg-order-context.sg-page-checkout #orderSummary .price-total {
    font-weight: 600;
}

body.sg-order-context.sg-page-configureproduct #orderSummary .price-amount,
body.sg-order-context.sg-page-viewcart #orderSummary .price-amount,
body.sg-order-context.sg-page-checkout #orderSummary .price-amount {
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

body.sg-order-context.sg-page-configureproduct #orderSummary .summary-actions .btn-checkout,
body.sg-order-context.sg-page-configureproduct #orderSummaryMob .btn-checkout,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-actions .btn-checkout,
body.sg-order-context.sg-page-viewcart .order-summary-mob .btn-checkout,
body.sg-order-context.sg-page-checkout #orderSummary .summary-actions .btn-checkout,
body.sg-order-context.sg-page-checkout .order-summary-mob .btn-checkout {
    background: var(--sg-order-accent-solid, #087d71);
    border-color: var(--sg-order-accent-solid, #087d71);
    border-radius: var(--sg-order-radius-control);
    color: var(--sg-order-text-on-accent, #ffffff);
    font-weight: 600;
}

body.sg-order-context.sg-page-configureproduct #orderSummary .summary-actions .btn-checkout:hover,
body.sg-order-context.sg-page-configureproduct #orderSummary .summary-actions .btn-checkout:focus,
body.sg-order-context.sg-page-configureproduct #orderSummaryMob .btn-checkout:hover,
body.sg-order-context.sg-page-configureproduct #orderSummaryMob .btn-checkout:focus,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-actions .btn-checkout:hover,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-actions .btn-checkout:focus,
body.sg-order-context.sg-page-viewcart .order-summary-mob .btn-checkout:hover,
body.sg-order-context.sg-page-viewcart .order-summary-mob .btn-checkout:focus,
body.sg-order-context.sg-page-checkout #orderSummary .summary-actions .btn-checkout:hover,
body.sg-order-context.sg-page-checkout #orderSummary .summary-actions .btn-checkout:focus,
body.sg-order-context.sg-page-checkout .order-summary-mob .btn-checkout:hover,
body.sg-order-context.sg-page-checkout .order-summary-mob .btn-checkout:focus {
    background: var(--sg-order-accent-solid-hover, #06665d);
    border-color: var(--sg-order-accent-solid-hover, #06665d);
    color: var(--sg-order-text-on-accent, #ffffff);
}

body.sg-order-context.sg-page-configureproduct #orderSummary .summary-actions .btn-checkout.disabled,
body.sg-order-context.sg-page-configureproduct #orderSummary .summary-actions .btn-checkout[disabled],
body.sg-order-context.sg-page-viewcart #orderSummary .summary-actions .btn-checkout.disabled,
body.sg-order-context.sg-page-viewcart #orderSummary .summary-actions .btn-checkout[disabled],
body.sg-order-context.sg-page-checkout #orderSummary .summary-actions .btn-checkout.disabled,
body.sg-order-context.sg-page-checkout #orderSummary .summary-actions .btn-checkout[disabled] {
    background: var(--sg-order-surface-muted, #f1f5f5);
    border-color: var(--sg-order-border-strong, #c5d2d2);
    color: var(--sg-order-text-secondary, #536266);
    cursor: not-allowed;
    opacity: 1;
}

/* Cart rows, addon rows, promo code, and action controls. */
body.sg-order-context.sg-page-viewcart .panel-cart {
    overflow: hidden;
}

body.sg-order-context.sg-page-viewcart .panel-cart .cart-heading {
    background: var(--sg-surface-emphasis, #edf7f5);
    border-bottom: 1px solid var(--sg-border, #dce5e5);
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-viewcart .panel-cart .cart-item {
    background: var(--sg-surface, #ffffff);
    border-bottom: 1px solid var(--sg-border, #dce5e5);
    color: var(--sg-text-secondary, #536266);
}

body.sg-order-context.sg-page-viewcart .cart-item-title-main,
body.sg-order-context.sg-page-viewcart .cart-item-title-small,
body.sg-order-context.sg-page-viewcart .prod-name,
body.sg-order-context.sg-page-viewcart .prod-qty,
body.sg-order-context.sg-page-viewcart .prod-price,
body.sg-order-context.sg-page-viewcart .addon-name,
body.sg-order-context.sg-page-viewcart .addon-price,
body.sg-order-context.sg-page-viewcart .item-name,
body.sg-order-context.sg-page-viewcart .item-value,
body.sg-order-context.sg-page-viewcart .item-price {
    color: var(--sg-text-secondary, #536266);
}

body.sg-order-context.sg-page-viewcart .cart-item-title-main,
body.sg-order-context.sg-page-viewcart .cart-item-price,
body.sg-order-context.sg-page-viewcart .addon-name .item-value,
body.sg-order-context.sg-page-viewcart .item-price {
    color: var(--sg-text, #172326);
    font-weight: 600;
}

body.sg-order-context.sg-page-viewcart .cart-item-title-small {
    color: var(--sg-text-muted, #5f6b70);
}

body.sg-order-context.sg-page-viewcart .cart-item-pricing .btn-default,
body.sg-order-context.sg-page-viewcart .cart-item-actions .btn-icon {
    background: var(--sg-surface, #ffffff);
    border-color: var(--sg-border, #dce5e5);
    color: var(--sg-text-secondary, #536266);
}

body.sg-order-context.sg-page-viewcart .cart-item-pricing .btn-default:hover,
body.sg-order-context.sg-page-viewcart .cart-item-pricing .btn-default:focus,
body.sg-order-context.sg-page-viewcart .cart-item-actions .btn-icon:hover,
body.sg-order-context.sg-page-viewcart .cart-item-actions .btn-icon:focus {
    background: var(--sg-accent-soft, #e6f6f3);
    border-color: var(--sg-accent, #0b9d8d);
    color: var(--sg-accent-hover, #087d71);
}

body.sg-order-context.sg-page-viewcart .panel-cart > .panel-footer {
    background: var(--sg-surface-muted, #f1f5f5);
    border-top: 1px solid var(--sg-border, #dce5e5);
}

/* Payment selection and card-entry surfaces use the same readable contrast. */
body.sg-order-context.sg-page-viewcart #paymentGatewaysDetails,
body.sg-order-context.sg-page-checkout #paymentGatewaysDetails,
body.sg-order-context.sg-page-viewcart #creditCardInputFields,
body.sg-order-context.sg-page-checkout #creditCardInputFields {
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-viewcart #paymentGatewaysDetails .section-header,
body.sg-order-context.sg-page-checkout #paymentGatewaysDetails .section-header,
body.sg-order-context.sg-page-viewcart #creditCardInputFields .section-heading,
body.sg-order-context.sg-page-checkout #creditCardInputFields .section-heading {
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-viewcart #paymentGatewaysDetails #paymentGatewaysContainer,
body.sg-order-context.sg-page-checkout #paymentGatewaysDetails #paymentGatewaysContainer,
body.sg-order-context.sg-page-viewcart #creditCardInputFields .panel-form,
body.sg-order-context.sg-page-checkout #creditCardInputFields .panel-form {
    background: var(--sg-surface, #ffffff);
    border: 1px solid var(--sg-border, #dce5e5);
    border-radius: var(--sg-order-radius-surface);
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-viewcart #paymentGatewaysContainer .panel-check,
body.sg-order-context.sg-page-checkout #paymentGatewaysContainer .panel-check {
    background: var(--sg-surface, #ffffff);
    border-color: var(--sg-border, #dce5e5);
    color: var(--sg-text-secondary, #536266);
}

body.sg-order-context.sg-page-viewcart #paymentGatewaysContainer .panel-check.checked,
body.sg-order-context.sg-page-checkout #paymentGatewaysContainer .panel-check.checked {
    background: var(--sg-accent-soft, #e6f6f3);
    border-color: var(--sg-accent, #0b9d8d);
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-viewcart #creditCardInputFields .panel-heading,
body.sg-order-context.sg-page-viewcart #creditCardInputFields .panel-body,
body.sg-order-context.sg-page-viewcart #creditCardInputFields .panel-footer,
body.sg-order-context.sg-page-checkout #creditCardInputFields .panel-heading,
body.sg-order-context.sg-page-checkout #creditCardInputFields .panel-body,
body.sg-order-context.sg-page-checkout #creditCardInputFields .panel-footer {
    background: var(--sg-surface, #ffffff);
    border-color: var(--sg-border, #dce5e5);
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-viewcart #creditCardInputFields .panel-tabs,
body.sg-order-context.sg-page-checkout #creditCardInputFields .panel-tabs {
    border-bottom-color: var(--sg-border, #dce5e5);
}

body.sg-order-context.sg-page-viewcart #creditCardInputFields .panel-tabs > li > a,
body.sg-order-context.sg-page-checkout #creditCardInputFields .panel-tabs > li > a {
    color: var(--sg-text-secondary, #536266);
}

body.sg-order-context.sg-page-viewcart #creditCardInputFields .panel-tabs > li.active > a,
body.sg-order-context.sg-page-checkout #creditCardInputFields .panel-tabs > li.active > a {
    background: var(--sg-surface-emphasis, #edf7f5);
    border-color: var(--sg-border, #dce5e5);
    color: var(--sg-accent-hover, #087d71);
}

body.sg-order-context.sg-page-viewcart #paymentGatewaysDetails .gateway-errors,
body.sg-order-context.sg-page-checkout #paymentGatewaysDetails .gateway-errors {
    background: var(--sg-danger-soft, #fdebec);
    border: 1px solid #e7b6b9;
    border-radius: var(--sg-order-radius-control);
    color: #7f2f33;
}

body.sg-order-context.sg-page-viewcart .section .panel-primary,
body.sg-order-context.sg-page-viewcart .section .panel-primary .panel-heading,
body.sg-order-context.sg-page-viewcart .section .panel-primary .panel-body,
body.sg-order-context.sg-page-viewcart .section .panel-primary .panel-footer {
    background: var(--sg-surface, #ffffff);
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-viewcart #inputPromotionCode,
body.sg-order-context.sg-page-viewcart #frmCheckout .form-control {
    background: var(--sg-surface, #ffffff);
    color: var(--sg-text, #172326);
}

body.sg-order-context.sg-page-viewcart #tos-checkbox,
body.sg-order-context.sg-page-viewcart #tos-checkbox label,
body.sg-order-context.sg-page-viewcart #tos-checkbox span {
    color: var(--sg-text-secondary, #536266);
}

body.sg-order-context.sg-page-viewcart #tos-checkbox a {
    color: var(--sg-accent-hover, #087d71);
}

/* Alert states always pair a readable foreground with their light surface. */
body.sg-order-context.sg-page-configureproduct .alert,
body.sg-order-context.sg-page-addons .alert,
body.sg-order-context.sg-page-viewcart .alert,
body.sg-order-context.sg-page-checkout .alert {
    border-radius: var(--sg-order-radius-control);
    box-shadow: none;
}

body.sg-order-context.sg-page-configureproduct .alert-primary,
body.sg-order-context.sg-page-viewcart .alert-info,
body.sg-order-context.sg-page-checkout .alert-info {
    background: var(--sg-info-soft, #eaf4f9);
    border-color: #b8d6e5;
    color: #225570;
}

body.sg-order-context.sg-page-configureproduct .alert-danger,
body.sg-order-context.sg-page-viewcart .alert-danger,
body.sg-order-context.sg-page-checkout .alert-danger {
    background: var(--sg-danger-soft, #fdebec);
    border-color: #e7b6b9;
    color: #7f2f33;
}

body.sg-order-context.sg-page-viewcart .alert-success {
    background: var(--sg-success-soft, #e8f5ee);
    border-color: #b8dfcb;
    color: #175b43;
}

body.sg-order-context.sg-page-viewcart .alert-warning,
body.sg-order-context.sg-page-checkout .alert-warning {
    background: var(--sg-warning-soft, #fff4dc);
    border-color: #efd79e;
    color: #77510c;
}

body.sg-order-context.sg-page-configureproduct .alert-title,
body.sg-order-context.sg-page-configureproduct .alert-body,
body.sg-order-context.sg-page-viewcart .alert-title,
body.sg-order-context.sg-page-viewcart .alert-body,
body.sg-order-context.sg-page-checkout .alert-title,
body.sg-order-context.sg-page-checkout .alert-body {
    color: inherit;
}

/* v1.3.7 Addons fallback: direct Addons URLs keep the real WHMCS forms and
 * product relation, but no longer render the legacy sidebar/package shell. */
body.sg-order-context.sg-page-addons .sg-order-addons {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 0 34px;
}

body.sg-order-context.sg-page-addons .sg-order-addons__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

body.sg-order-context.sg-page-addons .sg-order-addons__eyebrow,
body.sg-order-context.sg-page-addons .sg-order-addon-card__eyebrow {
    margin: 0 0 8px;
    color: var(--sg-order-accent-hover);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

body.sg-order-context.sg-page-addons .sg-order-addons__title {
    margin: 0;
    color: var(--sg-order-text);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.1;
}

body.sg-order-context.sg-page-addons .sg-order-addons__subtitle {
    margin: 11px 0 0;
    color: var(--sg-order-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

body.sg-order-context.sg-page-addons .sg-order-addons__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 9px;
}

body.sg-order-context.sg-page-addons .sg-order-addons__actions .btn,
body.sg-order-context.sg-page-addons .sg-order-addon-card__footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: var(--sg-order-radius-control);
}

body.sg-order-context.sg-page-addons .sg-order-addon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body.sg-order-context.sg-page-addons .sg-order-addon-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--sg-order-border);
    border-radius: var(--sg-order-radius-surface);
    background: var(--sg-order-surface);
    box-shadow: 0 7px 22px rgba(23, 35, 38, .045);
    overflow: clip;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.sg-order-context.sg-page-addons .sg-order-addon-card:hover,
body.sg-order-context.sg-page-addons .sg-order-addon-card:focus-within {
    border-color: #b8d8d3;
    box-shadow: 0 13px 30px rgba(23, 35, 38, .09);
    transform: translateY(-2px);
}

body.sg-order-context.sg-page-addons .sg-order-addon-card__body {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    padding: 24px 23px 20px;
}

body.sg-order-context.sg-page-addons .sg-order-addon-card__eyebrow {
    margin-bottom: 0;
    color: var(--sg-order-text-muted);
    font-size: .65rem;
}

body.sg-order-context.sg-page-addons .sg-order-addon-card__title {
    margin: 0;
    color: var(--sg-order-text);
    font-size: 1.24rem;
    font-weight: 650;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

body.sg-order-context.sg-page-addons .sg-order-addon-card__description {
    color: var(--sg-order-text-secondary);
    line-height: 1.7;
}

body.sg-order-context.sg-page-addons .sg-order-addon-card__description p:last-child {
    margin-bottom: 0;
}

body.sg-order-context.sg-page-addons .sg-order-addon-card__relation {
    margin-top: auto;
    padding-top: 16px;
}

body.sg-order-context.sg-page-addons .sg-order-addon-card__relation label {
    display: block;
    margin-bottom: 7px;
    color: var(--sg-order-text-secondary);
    font-size: .78rem;
    font-weight: 700;
}

body.sg-order-context.sg-page-addons .sg-order-addon-card__relation .form-control {
    border-radius: var(--sg-order-radius-control);
}

body.sg-order-context.sg-page-addons .sg-order-addon-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 23px 18px;
    border-top: 1px solid var(--sg-order-border);
    background: var(--sg-order-surface-muted);
}

body.sg-order-context.sg-page-addons .sg-order-addon-card__price {
    min-width: 0;
    color: var(--sg-order-text);
    font-weight: 700;
}

body.sg-order-context.sg-page-addons .sg-order-addon-card__price .price-amount,
body.sg-order-context.sg-page-addons .sg-order-addon-card__price .price-total {
    color: var(--sg-order-text);
    font-weight: 750;
}

body.sg-order-context.sg-page-addons .sg-order-empty {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 760px;
    margin: 24px auto 0;
    padding: 30px;
    border: 1px dashed var(--sg-order-border-strong);
    border-radius: var(--sg-order-radius-surface);
    background: var(--sg-order-surface);
    color: var(--sg-order-text-secondary);
    text-align: left;
}

body.sg-order-context.sg-page-addons .sg-order-empty__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--sg-order-radius-compact);
    background: var(--sg-order-accent-soft);
    color: var(--sg-order-accent-hover);
}

body.sg-order-context.sg-page-addons .sg-order-empty__title {
    margin: 0;
    color: var(--sg-order-text);
    font-size: 1.25rem;
    font-weight: 700;
}

body.sg-order-context.sg-page-addons .sg-order-empty__description {
    margin: 6px 0 0;
    line-height: 1.6;
}

/* Success and error pages use the same surface language as the flow. */
body.sg-order-context.sg-page-complete .message,
body.sg-order-context.sg-page-error .message {
    background: var(--sg-surface, #ffffff);
    border: 1px solid var(--sg-border, #dce5e5);
    border-radius: var(--sg-order-radius-surface);
    box-shadow: 0 10px 28px rgba(23, 35, 38, 0.065);
    color: var(--sg-text, #172326);
    margin: 20px auto 0;
    max-width: 720px;
    padding: 34px;
}

body.sg-order-context.sg-page-complete .message-title,
body.sg-order-context.sg-page-error .message-title {
    color: var(--sg-text, #172326);
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    font-weight: 600;
}

body.sg-order-context.sg-page-complete .message-desc,
body.sg-order-context.sg-page-error .message-desc {
    color: var(--sg-text-secondary, #536266);
    line-height: 1.65;
}

body.sg-order-context.sg-page-complete .alert,
body.sg-order-context.sg-page-error .alert {
    color: inherit;
}

@media (max-width: 991px) {
    body.sg-order-context.sg-page-configureproduct .main-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.sg-order-context.sg-page-configureproduct .main-grid,
    body.sg-order-context.sg-page-viewcart .main-grid,
    body.sg-order-context.sg-page-checkout .main-grid {
        gap: 22px;
    }

    body.sg-order-context.sg-page-configureproduct .main-sidebar,
    body.sg-order-context.sg-page-viewcart .main-sidebar,
    body.sg-order-context.sg-page-checkout .main-sidebar {
        width: 100%;
    }
}

@media (max-width: 767px) {
    body.sg-order-context.sg-page-products .sg-order-form {
        padding-top: 12px;
    }

    body.sg-order-context.sg-page-products .sg-order-products__title {
        font-size: clamp(1.85rem, 8vw, 2.45rem);
    }

    body.sg-order-context.sg-page-products .sg-order-categories__list {
        border-radius: var(--sg-order-radius-surface);
    }

    body.sg-order-context.sg-page-products .sg-order-category.is-active {
        box-shadow: 0 2px 7px rgba(11, 157, 141, 0.16);
    }

    body.sg-order-context.sg-page-products .sg-order-product__body {
        padding: 21px 18px 18px;
    }

    body.sg-order-context.sg-page-products .sg-order-product__footer {
        padding: 15px 18px 18px;
    }

    body.sg-order-context.sg-page-configureproduct .main-grid,
    body.sg-order-context.sg-page-addons .main-grid,
    body.sg-order-context.sg-page-viewcart .main-grid,
    body.sg-order-context.sg-page-checkout .main-grid {
        display: block;
    }

    body.sg-order-context.sg-page-configureproduct .main-content,
    body.sg-order-context.sg-page-addons .main-content,
    body.sg-order-context.sg-page-viewcart .main-content,
    body.sg-order-context.sg-page-checkout .main-content,
    body.sg-order-context.sg-page-configureproduct .main-sidebar,
    body.sg-order-context.sg-page-addons .main-sidebar,
    body.sg-order-context.sg-page-viewcart .main-sidebar,
    body.sg-order-context.sg-page-checkout .main-sidebar {
        min-width: 0;
        width: 100%;
    }

    body.sg-order-context.sg-page-configureproduct .main-sidebar,
    body.sg-order-context.sg-page-addons .main-sidebar,
    body.sg-order-context.sg-page-viewcart .main-sidebar,
    body.sg-order-context.sg-page-checkout .main-sidebar {
        margin-top: 20px;
    }

    body.sg-order-context.sg-page-addons .products > .row-eq-height > [class*="col-"] {
        flex-basis: 100%;
        max-width: 100%;
    }

    body.sg-order-context.sg-page-configureproduct .panel-body,
    body.sg-order-context.sg-page-addons .panel-body,
    body.sg-order-context.sg-page-viewcart .panel-body,
    body.sg-order-context.sg-page-checkout .panel-body {
        padding: 17px;
    }

    body.sg-order-context.sg-page-configureproduct .panel-heading,
    body.sg-order-context.sg-page-addons .panel-heading,
    body.sg-order-context.sg-page-viewcart .panel-heading,
    body.sg-order-context.sg-page-checkout .panel-heading {
        padding-left: 17px;
        padding-right: 17px;
    }

    body.sg-order-context.sg-page-complete .message,
    body.sg-order-context.sg-page-error .message {
        margin-top: 12px;
        padding: 25px 20px;
    }
}

@media (max-width: 430px) {
    body.sg-order-context.sg-page-products .sg-order-product__price .price-amount {
        font-size: 1.7rem;
    }

    body.sg-order-context.sg-page-configureproduct .section,
    body.sg-order-context.sg-page-viewcart .section,
    body.sg-order-context.sg-page-checkout .section {
        margin-bottom: 24px;
    }

    body.sg-order-context.sg-page-configureproduct .section-title,
    body.sg-order-context.sg-page-viewcart .section-title,
    body.sg-order-context.sg-page-checkout .section-title {
        font-size: 1.1rem;
    }

    body.sg-order-context.sg-page-viewcart .panel-cart .cart-item,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.sg-order-context.sg-page-viewcart .panel-cart .cart-item > .row,
    body.sg-order-context.sg-page-checkout .sg-cart-card .cart-item > .row {
        margin-left: 0;
        margin-right: 0;
    }
}

/* v1.3.7 visible-surface audit.  The product intro and configurable-option
 * groups are ordinary Sungame cards, so their child white surfaces can follow
 * the same outer radius.  Configuration groups stay overflow-visible because
 * they can contain native selects, range controls, or provider output. */
body.sg-order-context.sg-page-configureproduct .product-config-info,
body.sg-order-context.sg-page-configureproduct #orderSummary .panel-summary {
    overflow: clip;
}

body.sg-order-context.sg-page-configureproduct .product-configurable-options > .section {
    margin: 0 0 18px;
    padding: 0 20px 20px;
    border: 1px solid var(--sg-order-border);
    border-radius: var(--sg-order-radius-surface);
    background: var(--sg-order-surface);
    box-shadow: 0 6px 18px rgba(23, 35, 38, .045);
}

body.sg-order-context.sg-page-configureproduct .product-configurable-options > .section > .section-header {
    margin: 0 -20px 14px;
    padding: 20px 20px 0;
}

body.sg-order-context.sg-page-configureproduct .product-configurable-options > .section > .section-body {
    padding: 0;
}

body.sg-order-context.sg-page-configureproduct .product-configurable-options > .section:last-child {
    margin-bottom: 0;
}

/* v1.3.6 scoped control/modal radius seal.  Only Sungame-owned form shells
 * and the modal shell are covered; payment-provider internals stay untouched. */
body.sg-order-context.sg-page-configureproduct .form-control,
body.sg-order-context.sg-page-addons .form-control,
body.sg-order-context.sg-page-viewcart #inputPromotionCode,
body.sg-order-context.sg-page-viewcart #frmCheckout .form-control,
body.sg-order-context.sg-page-checkout #frmCheckout .form-control,
body.sg-order-context.sg-page-viewcart #creditCardInputFields .form-control,
body.sg-order-context.sg-page-checkout #creditCardInputFields .form-control {
    border-radius: var(--sg-order-radius-control);
}

body.sg-order-context.sg-page-configureproduct .modal-content,
body.sg-order-context.sg-page-addons .modal-content,
body.sg-order-context.sg-page-viewcart .modal-content,
body.sg-order-context.sg-page-checkout .modal-content {
    border-radius: var(--sg-order-radius-surface);
}

/* Final cascade guards: these selectors intentionally sit after the legacy
 * shared Commerce skin so Cart / Checkout remains the owner of its two
 * presentation surfaces without changing any business DOM. */
body.sg-order-context.sg-page-viewcart #paymentGatewaysDetails #paymentGatewaysContainer,
body.sg-order-context.sg-page-checkout #paymentGatewaysDetails #paymentGatewaysContainer {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* v1.4.4 modal token bridge.  Viewcart and domain modal roots sit outside
 * .sg-order-form, so these presentation tokens must be scoped to the modal
 * family rather than relying on inheritance from a page-specific form root. */
body.sg-order-context .modal.modal-remove-item {
    --sg-order-accent: #2e8b63;
    --sg-order-accent-hover: #0e4935;
    --sg-order-accent-soft: #dcefe6;
    --sg-order-surface: #ffffff;
    --sg-order-surface-muted: #f1f5f5;
    --sg-order-text: #14201c;
    --sg-order-text-secondary: #40504a;
    --sg-order-text-muted: #5f6b70;
    --sg-order-border: #dce5e1;
    --sg-order-border-strong: #b9cbc2;
    --sg-order-danger: #b13d3d;
    --sg-order-modal-viewport-height: 100vh;
    --sg-order-modal-safe-top: 16px;
    --sg-order-modal-safe-bottom: 16px;
}

@supports (height: 100dvh) {
    body.sg-order-context .modal.modal-remove-item {
        --sg-order-modal-viewport-height: 100dvh;
    }
}

@supports (padding: max(0px)) {
    body.sg-order-context .modal.modal-remove-item {
        --sg-order-modal-safe-top: max(16px, env(safe-area-inset-top));
        --sg-order-modal-safe-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* The modal ids, forms, hidden inputs, loader hooks, data attributes, and
 * native actions remain owned by the existing cart contract; this block only
 * owns presentation. */
body.sg-order-context .modal.modal-remove-item .modal-dialog {
    max-width: 420px;
}

body.sg-order-context .modal.modal-remove-item .modal-content {
    overflow: hidden;
    border: 1px solid var(--sg-order-border);
    border-radius: var(--sg-order-radius-surface);
    background: var(--sg-order-surface);
    box-shadow: 0 18px 44px rgba(20, 32, 28, .16);
}

body.sg-order-context .modal.modal-remove-item .modal-header {
    position: relative;
    align-items: flex-start;
    min-height: 0;
    padding: 20px 52px 14px 22px;
    border-bottom: 1px solid var(--sg-order-border);
    background: var(--sg-order-surface);
}

body.sg-order-context .modal.modal-remove-item .modal-title {
    margin: 0;
    color: var(--sg-order-text);
    font-size: 1.1rem;
    font-weight: 750;
    line-height: 1.35;
}

body.sg-order-context .modal.modal-remove-item .modal-header .close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--sg-order-text-muted);
    font-size: 1rem;
    opacity: 1;
}

body.sg-order-context .modal.modal-remove-item .modal-header .close:hover,
body.sg-order-context .modal.modal-remove-item .modal-header .close:focus-visible {
    border-color: var(--sg-order-border-strong);
    background: var(--sg-order-surface-muted);
    color: var(--sg-order-text);
    outline: 0;
}

body.sg-order-context .modal.modal-remove-item .modal-body {
    padding: 18px 22px;
    color: var(--sg-order-text-secondary);
    font-size: .95rem;
    line-height: 1.6;
}

body.sg-order-context .modal.modal-remove-item .modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    padding: 14px 22px 20px;
    border-top: 1px solid var(--sg-order-border);
    background: var(--sg-order-surface-muted);
}

body.sg-order-context .modal.modal-remove-item .modal-footer .btn {
    min-width: 92px;
    min-height: 40px;
    margin: 0;
    border-radius: var(--sg-order-radius-control);
    font-weight: 700;
}

body.sg-order-context .modal.modal-remove-item .modal-footer .btn-primary {
    border-color: var(--sg-order-danger, #b13d3d);
    background: var(--sg-order-danger, #b13d3d);
    color: #ffffff;
}

body.sg-order-context .modal.modal-remove-item .modal-footer .btn-primary:hover,
body.sg-order-context .modal.modal-remove-item .modal-footer .btn-primary:focus-visible {
    border-color: #843535;
    background: #843535;
    color: #ffffff;
}

body.sg-order-context .modal.modal-remove-item .modal-footer .btn-default {
    border-color: var(--sg-order-border-strong);
    background: var(--sg-order-surface);
    color: var(--sg-order-text-secondary);
}

body.sg-order-context .modal.modal-remove-item .modal-footer .btn-default:hover,
body.sg-order-context .modal.modal-remove-item .modal-footer .btn-default:focus-visible {
    border-color: var(--sg-order-accent);
    background: var(--sg-order-accent-soft);
    color: var(--sg-order-accent-hover);
}

@media (max-width: 575px) {
    /* v1.4.5 mobile modal contract: center within the visible viewport,
     * respect safe areas, and let an over-height body scroll internally. */
    body.sg-order-context .modal.modal-remove-item.show {
        padding-top: var(--sg-order-modal-safe-top);
        padding-right: 16px;
        padding-bottom: var(--sg-order-modal-safe-bottom);
        padding-left: 16px;
        overflow-y: auto;
    }

    body.sg-order-context .modal.modal-remove-item .modal-dialog {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: calc(var(--sg-order-modal-viewport-height) - var(--sg-order-modal-safe-top) - var(--sg-order-modal-safe-bottom));
        margin: 0 auto;
    }

    body.sg-order-context .modal.modal-remove-item .modal-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: calc(var(--sg-order-modal-viewport-height) - var(--sg-order-modal-safe-top) - var(--sg-order-modal-safe-bottom));
    }

    body.sg-order-context .modal.modal-remove-item .modal-header {
        flex: 0 0 auto;
        padding: 18px 48px 13px 18px;
    }

    body.sg-order-context .modal.modal-remove-item .modal-body {
        min-height: 0;
        overflow-y: auto;
        padding: 16px 18px;
    }

    body.sg-order-context .modal.modal-remove-item .modal-footer {
        flex: 0 0 auto;
        align-items: stretch;
        flex-direction: column;
        padding: 13px 18px 18px;
    }

    body.sg-order-context .modal.modal-remove-item .modal-footer .btn {
        width: 100%;
    }
}

/* Gateway cards retain their radius without clipping an iframe or other
 * payment-provider surface. */
body.sg-order-context.sg-page-viewcart .sg-gateway-option,
body.sg-order-context.sg-page-checkout .sg-gateway-option {
    overflow: visible;
}

/* Low-cost order-form interaction polish.  These transitions do not alter
 * order.js state, form values, payment events, or layout dimensions. */
body.sg-order-context .btn,
body.sg-order-context .sg-order-category,
body.sg-order-context .form-control,
body.sg-order-context .custom-select {
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

body.sg-order-context .form-control:focus,
body.sg-order-context .custom-select:focus {
    border-color: var(--sg-order-accent, #0b9d8d);
    box-shadow: 0 0 0 3px rgba(11, 157, 141, .13);
}

body.sg-order-context .sg-cta-arrow {
    display: inline-block;
    transition: transform 160ms ease;
}

body.sg-order-context .btn:hover .sg-cta-arrow,
body.sg-order-context .btn:focus-visible .sg-cta-arrow {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    body.sg-order-context.sg-page-addons .sg-order-addons__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    body.sg-order-context.sg-page-addons .sg-order-addons__actions {
        width: 100%;
    }

    body.sg-order-context.sg-page-addons .sg-order-addons__actions .btn {
        flex: 1 1 auto;
    }

    body.sg-order-context.sg-page-addons .sg-order-addon-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.sg-order-context.sg-page-addons .sg-order-empty {
        align-items: flex-start;
        padding: 23px;
    }
}

@media (max-width: 991px) {
    body.sg-order-context.sg-page-viewcart .order-summary-mob,
    body.sg-order-context.sg-page-checkout .order-summary-mob {
        position: static !important;
        display: block !important;
        margin: 20px 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* v1.4.0 Client Experience Polish: restrained card lift and category-tab
 * feedback.  The active category keeps its existing selected surface. */
body.sg-order-context.sg-page-products .sg-order-product,
body.sg-order-context.sg-page-addons .sg-order-addon-card {
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

body.sg-order-context.sg-page-products .sg-order-product:hover,
body.sg-order-context.sg-page-products .sg-order-product:focus-within,
body.sg-order-context.sg-page-addons .sg-order-addon-card:hover,
body.sg-order-context.sg-page-addons .sg-order-addon-card:focus-within {
    box-shadow: 0 14px 32px rgba(23, 35, 38, .10);
    transform: translateY(-3px);
}

body.sg-order-context.sg-page-products .sg-order-category {
    transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease, transform 200ms ease;
}

body.sg-order-context.sg-page-products .sg-order-category:hover:not(.is-active),
body.sg-order-context.sg-page-products .sg-order-category:focus-visible:not(.is-active) {
    box-shadow: 0 4px 12px rgba(23, 35, 38, .08);
    transform: translateY(-1px);
}

body.sg-order-context .btn:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
    transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease, transform 200ms ease;
}

body.sg-order-context .btn:not(:disabled):not(.disabled):not([aria-disabled="true"]):hover,
body.sg-order-context .btn:not(:disabled):not(.disabled):not([aria-disabled="true"]):focus-visible {
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    body.sg-order-context.sg-page-products .sg-order-product,
    body.sg-order-context.sg-page-addons .sg-order-addon-card,
    body.sg-order-context.sg-page-products .sg-order-category,
    body.sg-order-context .btn {
        transition: none;
    }

    body.sg-order-context.sg-page-products .sg-order-product:hover,
    body.sg-order-context.sg-page-products .sg-order-product:focus-within,
    body.sg-order-context.sg-page-addons .sg-order-addon-card:hover,
    body.sg-order-context.sg-page-addons .sg-order-addon-card:focus-within,
    body.sg-order-context.sg-page-products .sg-order-category:hover:not(.is-active),
    body.sg-order-context.sg-page-products .sg-order-category:focus-visible:not(.is-active),
    body.sg-order-context .btn:hover,
    body.sg-order-context .btn:focus-visible {
        transform: none;
    }
}

/* v1.4.6 Products navigation and native-select contract.  The category
 * links remain the no-JS surface; the indicator is only visible after the
 * page enhancement has measured the current link. */
body.sg-order-context.sg-page-products .sg-order-products__dynamic {
    min-width: 0;
    transition: opacity 180ms ease, transform 180ms ease;
}

body.sg-order-context.sg-page-products .sg-order-categories__list {
    position: relative;
}

body.sg-order-context.sg-page-products .sg-order-categories__indicator {
    background: var(--sg-order-accent-solid, #087d71);
    border: 1px solid var(--sg-order-accent-solid, #087d71);
    border-radius: var(--sg-order-radius-control);
    box-shadow: 0 3px 8px rgba(11, 157, 141, .2);
    display: block;
    height: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translate3d(0, 0, 0);
    transition: height 200ms ease, opacity 160ms ease, transform 200ms ease, width 200ms ease;
    width: 0;
    z-index: 0;
}

body.sg-order-context.sg-page-products .sg-order-category {
    position: relative;
    z-index: 1;
}

body.sg-order-context.sg-page-products .sg-order-categories.is-enhanced .sg-order-categories__indicator {
    opacity: 1;
}

body.sg-order-context.sg-page-products .sg-order-categories.is-initializing .sg-order-categories__indicator {
    transition: none !important;
}

body.sg-order-context.sg-page-products .sg-order-categories.is-enhanced .sg-order-category.is-active {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: var(--sg-order-text-on-accent, #ffffff);
}

body.sg-order-context.sg-page-products .sg-order-products__dynamic.is-loading {
    opacity: .68;
    pointer-events: none;
}

body.sg-order-context.sg-page-products .sg-order-products__dynamic.is-entering {
    opacity: 0;
    transform: translateY(4px);
}

/* Standard single selects keep their actual native picker and arrow.  The
 * exclusions cover multiple controls and common Select2 replacement hooks. */
body.sg-order-context {
    --sg-order-radius-select: 12px;
}

body.sg-order-context select.form-control:not([multiple]):not(.custom-multiselect):not(.select2-hidden-accessible):not([class*="select2"]):not([data-select2-id]) {
    appearance: auto;
    background-color: var(--sg-order-surface, #ffffff);
    border: 1px solid var(--sg-order-border, #dce5e5);
    border-radius: var(--sg-order-radius-select, 12px);
    color: var(--sg-order-text, #172326);
    line-height: 1.4;
    min-height: 44px;
    padding: 10px 13px;
}

body.sg-order-context select.form-control:not([multiple]):not(.custom-multiselect):not(.select2-hidden-accessible):not([class*="select2"]):not([data-select2-id]):hover {
    border-color: var(--sg-order-accent, #0b9d8d);
}

body.sg-order-context select.form-control:not([multiple]):not(.custom-multiselect):not(.select2-hidden-accessible):not([class*="select2"]):not([data-select2-id]):focus {
    border-color: var(--sg-order-accent, #0b9d8d);
    box-shadow: 0 0 0 3px rgba(11, 157, 141, .13);
}

body.sg-order-context select.form-control:not([multiple]):not(.custom-multiselect):not(.select2-hidden-accessible):not([class*="select2"]):not([data-select2-id]):focus-visible {
    outline: 2px solid var(--sg-order-accent, #0b9d8d);
    outline-offset: 2px;
}

body.sg-order-context select.form-control:not([multiple]):not(.custom-multiselect):not(.select2-hidden-accessible):not([class*="select2"]):not([data-select2-id]):disabled {
    background-color: var(--sg-order-surface-muted, #f1f5f5);
    border-color: var(--sg-order-border, #dce5e5);
    color: var(--sg-order-text-muted, #748184);
    cursor: not-allowed;
    opacity: 1;
}

/* Only the configurable-option form panels are neutralized.  Product intro,
 * summary, cart, checkout, payment, and provider panels remain owners of
 * their own surfaces. */
body.sg-order-context.sg-page-configureproduct #productConfigurableOptions > .section > .section-body > .panel-form {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

body.sg-order-context.sg-page-configureproduct #productConfigurableOptions > .section > .section-body > .panel-form > .panel-body {
    background: transparent;
    border: 0;
    padding: 0;
}

/* v1.5.12 Marketing Opt-in Surface: the section is a structural wrapper;
 * the native switch panel owns the visible rounded surface. */
body.sg-order-context.sg-page-viewcart .sg-marketing-section,
body.sg-order-context.sg-page-checkout .sg-marketing-section {
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.sg-order-context.sg-page-viewcart .sg-marketing-section > .section-header,
body.sg-order-context.sg-page-checkout .sg-marketing-section > .section-header,
body.sg-order-context.sg-page-viewcart .sg-marketing-section > .section-body,
body.sg-order-context.sg-page-checkout .sg-marketing-section > .section-body {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body.sg-order-context.sg-page-viewcart .sg-marketing-section > .section-body,
body.sg-order-context.sg-page-checkout .sg-marketing-section > .section-body {
    padding: 0;
}

body.sg-order-context.sg-page-viewcart .sg-marketing-optin,
body.sg-order-context.sg-page-checkout .sg-marketing-optin {
    width: 100%;
    max-width: 560px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sg-order-border, #dce5e5);
    border-radius: var(--sg-order-radius-surface, 16px);
    background: var(--sg-order-surface, #ffffff);
    box-shadow: 0 6px 18px rgba(23, 35, 38, .045);
}

body.sg-order-context.sg-page-viewcart .sg-marketing-optin .panel-body,
body.sg-order-context.sg-page-checkout .sg-marketing-optin .panel-body {
    padding: 20px;
    border: 0;
    background: transparent;
}

@media (prefers-reduced-motion: reduce) {
    body.sg-order-context.sg-page-products .sg-order-products__dynamic,
    body.sg-order-context.sg-page-products .sg-order-categories__indicator {
        transition: none !important;
    }

    body.sg-order-context.sg-page-products .sg-order-products__dynamic.is-entering {
        opacity: 1;
        transform: none;
    }
}

/* v1.5.4 Products Toolbar Seal: keep the count adjacent to its heading
 * instead of pushing it to the far edge of the products column. */
body.sg-order-context.sg-page-products .sg-order-products__toolbar {
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}
