#order-standard_cart .order-summary {
    background: rgba(18, 18, 22, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px;
    overflow: hidden;
}

#order-standard_cart .order-summary h2 {
    padding: 16px 18px 10px;
    color: #ffffff;
    text-align: left;
    font-weight: 800;
}

#order-standard_cart .summary-container,
#order-standard_cart #producttotal {
    background: rgba(8, 11, 18, 0.98) !important;
    color: #e8ecf5 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

#order-standard_cart .summary-container *,
#order-standard_cart #producttotal * {
    color: inherit;
}

#order-standard_cart .order-summary .subtotal,
#order-standard_cart .order-summary .summary-totals,
#order-standard_cart .order-summary .bordered-totals,
#order-standard_cart .order-summary .recurring-totals {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

#order-standard_cart .order-summary .product-name,
#order-standard_cart .order-summary .pull-right,
#order-standard_cart .order-summary .float-right,
#order-standard_cart .order-summary .cost,
#order-standard_cart .order-summary .total-due-today .amt {
    color: #ffffff !important;
    font-weight: 800;
}

#order-standard_cart .order-summary .product-group,
#order-standard_cart .order-summary .recurring-charges,
#order-standard_cart .order-summary .btn-continue-shopping {
    color: #9ca3af !important;
}

#order-standard_cart .order-summary .btn-checkout,
#order-standard_cart #btnCompleteProductConfig {
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, #684dff, #5438f2) !important;
    color: #ffffff !important;
    font-weight: 800;
}

/* BEGIN Chapter22 streamlined checkout */
/* Layout inspired by the clean, full-width structure used by premium game-hosting checkouts. */

#order-standard_cart {
    --c22-checkout-panel: rgba(13, 17, 27, 0.96);
    --c22-checkout-panel-raised: rgba(18, 23, 35, 0.98);
    --c22-checkout-border: rgba(255, 255, 255, 0.11);
    --c22-checkout-border-strong: rgba(104, 77, 255, 0.72);
    --c22-checkout-text: #f4f6fb;
    --c22-checkout-muted: #a8b0c0;
    --c22-checkout-accent: #684dff;
    --c22-checkout-accent-2: #5438f2;
}

body.primary-bg-color #order-standard_cart {
    width: 100% !important;
    max-width: 1235px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Remove the legacy category/action rail and give checkout the full content width. */
body.primary-bg-color #order-standard_cart .cart-sidebar,
body.primary-bg-color #order-standard_cart .sidebar-collapsed,
body #order-standard_cart .cart-sidebar,
body #order-standard_cart .sidebar-collapsed {
    display: none !important;
}

body.primary-bg-color #order-standard_cart .cart-body,
body #order-standard_cart .cart-body {
    float: none !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

#order-standard_cart .cart-body .header-lined {
    margin-bottom: 24px;
}

/* Product configuration: wide form with a compact sticky summary. */
#order-standard_cart #frmConfigureProduct > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    gap: 24px;
    align-items: start;
    margin: 0 !important;
}

#order-standard_cart #frmConfigureProduct .secondary-cart-body,
#order-standard_cart #frmConfigureProduct .secondary-cart-sidebar {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
}

#order-standard_cart #scrollingPanelContainer {
    position: sticky !important;
    top: 24px !important;
    align-self: start;
}

/* Strong opening panel, closer to the clear product introduction on the reference. */
#order-standard_cart .product-info {
    position: relative;
    overflow: hidden;
    margin: 0 0 22px !important;
    padding: 24px 26px !important;
    color: var(--c22-checkout-text) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(104, 77, 255, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(20, 26, 40, 0.99), rgba(10, 14, 23, 0.99)) !important;
    border: 1px solid var(--c22-checkout-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

#order-standard_cart .product-info .product-title {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-size: clamp(1.45rem, 2vw, 2rem) !important;
    font-weight: 800 !important;
    line-height: 1.2;
}

#order-standard_cart .product-info p:last-child {
    margin-bottom: 0 !important;
    color: var(--c22-checkout-muted) !important;
}

#order-standard_cart .secondary-cart-body > p:first-child {
    margin: 0 0 16px;
    color: var(--c22-checkout-muted);
    font-size: 0.98rem;
}

/* Replace thin legacy section dividers with clear card headers. */
#order-standard_cart .sub-heading {
    display: flex !important;
    align-items: center;
    min-height: 50px;
    margin: 24px 0 14px !important;
    padding: 12px 16px !important;
    background: linear-gradient(145deg, rgba(25, 31, 47, 0.98), rgba(16, 21, 33, 0.98)) !important;
    border: 1px solid var(--c22-checkout-border) !important;
    border-radius: 11px !important;
}

#order-standard_cart .sub-heading span,
#order-standard_cart .sub-heading .primary-bg-color {
    padding: 0 !important;
    color: #fff !important;
    background: transparent !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
}

/* Configurable fields become distinct selectable cards. */
#order-standard_cart .field-container,
#order-standard_cart .product-configurable-options .form-group,
#order-standard_cart .secondary-cart-body > .row .form-group {
    height: 100%;
    margin-bottom: 14px !important;
    padding: 16px !important;
    color: var(--c22-checkout-text) !important;
    background: var(--c22-checkout-panel) !important;
    border: 1px solid var(--c22-checkout-border) !important;
    border-radius: 11px !important;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#order-standard_cart .field-container:focus-within,
#order-standard_cart .product-configurable-options .form-group:focus-within,
#order-standard_cart .secondary-cart-body > .row .form-group:focus-within {
    border-color: var(--c22-checkout-border-strong) !important;
    box-shadow: 0 0 0 3px rgba(104, 77, 255, 0.14);
}

#order-standard_cart .secondary-cart-body .row {
    margin-right: -7px !important;
    margin-left: -7px !important;
}

#order-standard_cart .secondary-cart-body .row > [class*="col-"] {
    padding-right: 7px !important;
    padding-left: 7px !important;
}

#order-standard_cart label,
#order-standard_cart .field-container label {
    margin-bottom: 8px !important;
    color: #e9edf7 !important;
    font-weight: 700 !important;
}

#order-standard_cart .form-control,
#order-standard_cart select.form-control,
#order-standard_cart input.form-control,
#order-standard_cart textarea.form-control {
    min-height: 46px;
    color: #f8fafc !important;
    background-color: rgba(5, 8, 15, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

#order-standard_cart select.form-control option {
    color: #f8fafc;
    background: #0b0f18;
}

#order-standard_cart .form-control:focus {
    border-color: var(--c22-checkout-accent) !important;
    box-shadow: 0 0 0 3px rgba(104, 77, 255, 0.17) !important;
}

#order-standard_cart .form-control::placeholder {
    color: #7f889a !important;
}

/* Add-ons and option selectors: clean cards with an obvious selected state. */
#order-standard_cart .panel-addon,
#order-standard_cart .product-addon,
#order-standard_cart .addon,
#order-standard_cart .addon-products .panel,
#order-standard_cart .product-configurable-options .radio-inline,
#order-standard_cart .product-configurable-options .checkbox-inline {
    color: var(--c22-checkout-text) !important;
    background: var(--c22-checkout-panel-raised) !important;
    border-color: var(--c22-checkout-border) !important;
    border-radius: 11px !important;
}

#order-standard_cart input[type="radio"],
#order-standard_cart input[type="checkbox"] {
    accent-color: var(--c22-checkout-accent);
}

/* Keep the summary readable and make the checkout action feel deliberate. */
#order-standard_cart .order-summary {
    border-radius: 13px !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

#order-standard_cart .order-summary h2 {
    margin: 0 !important;
    padding: 19px 20px 12px !important;
    font-size: 1.4rem !important;
}

#order-standard_cart .summary-container,
#order-standard_cart #producttotal {
    padding: 18px !important;
    border-radius: 9px !important;
}

#order-standard_cart .btn {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px !important;
    font-weight: 750 !important;
    transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

#order-standard_cart .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

#order-standard_cart .btn-primary,
#order-standard_cart .order-summary .btn-checkout,
#order-standard_cart #btnCompleteProductConfig {
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--c22-checkout-accent), var(--c22-checkout-accent-2)) !important;
    box-shadow: 0 10px 24px rgba(84, 56, 242, 0.28);
}

#order-standard_cart #btnCompleteProductConfig {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    min-height: 54px;
    margin-top: 14px;
    font-size: 1.03rem !important;
}

#order-standard_cart .btn-default,
#order-standard_cart .btn-secondary {
    color: #eef1f8 !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

@media (max-width: 991.98px) {
    #order-standard_cart #frmConfigureProduct > .row {
        grid-template-columns: minmax(0, 1fr);
    }

    #order-standard_cart #scrollingPanelContainer {
        position: static !important;
    }
}

@media (max-width: 575.98px) {
    #order-standard_cart .cart-body {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    #order-standard_cart .product-info {
        padding: 20px !important;
    }

    #order-standard_cart .secondary-cart-body .row > [class*="col-"] {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #order-standard_cart *,
    #order-standard_cart *::before,
    #order-standard_cart *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* END Chapter22 streamlined checkout */
