/**
 * Srikar checkout — brand layer over nest-checkout (functionality unchanged)
 */

body.checkout-page,
body.nest-one-page-checkout-body {
    --srikar-checkout-brand: #A81D22;
    --srikar-checkout-brand-dark: #7A1519;
    --srikar-checkout-cream: #FDFCF0;
    --srikar-checkout-paper: #FFFDF7;
    --srikar-checkout-gold: #C99A50;
    --srikar-checkout-text: #59473B;
    --srikar-checkout-heading: #1F1A17;
    --srikar-checkout-border: rgba(201, 154, 80, 0.38);
    --srikar-checkout-shadow: 0 12px 34px rgba(72, 42, 18, 0.08);
    background:
        radial-gradient(circle at 4% 8%, rgba(201, 154, 80, 0.08), transparent 18%),
        radial-gradient(circle at 96% 20%, rgba(168, 29, 34, 0.04), transparent 16%),
        var(--srikar-checkout-cream);
}

body.checkout-page .main.nest-checkout-main {
    padding: 28px 0 56px;
}

body.checkout-page .nest-checkout-container {
    max-width: 620px;
}

/* Header */
.srikar-checkout-head {
    margin: 0 auto 28px;
    max-width: 560px;
    text-align: center;
}

.srikar-checkout-head__ornament {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.srikar-checkout-head__ornament svg {
    display: block;
    height: 22px;
    width: 22px;
}

.srikar-checkout-head__kicker {
    color: #986725;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.srikar-checkout-head__title {
    color: var(--srikar-checkout-brand) !important;
    font-size: clamp(1.65rem, 3.4vw, 2.35rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 8px !important;
}

.srikar-checkout-head__subtitle {
    color: var(--srikar-checkout-text);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 460px;
}

/* Main card */
body.checkout-page .nest-checkout-page-card {
    background: rgba(255, 253, 247, 0.98);
    border: 1px solid var(--srikar-checkout-border);
    border-radius: 18px;
    box-shadow: var(--srikar-checkout-shadow);
    padding: 1.35rem 1.45rem 1.5rem;
}

body.checkout-page .nest-express-checkout-skin .express-section {
    border-bottom: 1px dashed rgba(201, 154, 80, 0.28);
    margin-bottom: 1.15rem;
    padding-bottom: 1.15rem;
}

body.checkout-page .nest-express-checkout-skin .express-section:last-of-type,
body.checkout-page .nest-express-checkout-skin .express-pay-action {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Step labels */
body.checkout-page .nest-express-checkout-skin .express-step-label,
body.checkout-page #expressCheckoutModal .express-step-label {
    color: var(--srikar-checkout-heading);
    font-size: 0.98rem;
    font-weight: 800;
    gap: 12px;
}

body.checkout-page .nest-express-checkout-skin .express-step-num,
body.checkout-page #expressCheckoutModal .express-step-num {
    background: linear-gradient(145deg, #C92821, var(--srikar-checkout-brand-dark));
    box-shadow: 0 4px 10px rgba(122, 21, 25, 0.22);
    font-size: 0.78rem;
    height: 28px;
    width: 28px;
}

/* Address */
body.checkout-page .nest-express-checkout-skin .express-address-card,
body.checkout-page #expressCheckoutModal .express-address-card {
    background: linear-gradient(135deg, rgba(255, 252, 243, 0.98), rgba(251, 236, 214, 0.45));
    border: 1px solid rgba(201, 154, 80, 0.42);
    border-radius: 14px;
    padding: 14px 16px;
}

body.checkout-page .nest-express-checkout-skin .express-address-card-clickable:hover,
body.checkout-page .nest-express-checkout-skin .express-address-card-clickable:focus,
body.checkout-page #expressCheckoutModal .express-address-card-clickable:hover,
body.checkout-page #expressCheckoutModal .express-address-card-clickable:focus {
    border-color: var(--srikar-checkout-brand);
    box-shadow: 0 0 0 3px rgba(168, 29, 34, 0.12);
}

body.checkout-page .nest-express-checkout-skin .express-address-name,
body.checkout-page #expressCheckoutModal .express-address-name {
    color: var(--srikar-checkout-heading);
}

body.checkout-page .nest-express-checkout-skin .express-address-badge,
body.checkout-page #expressCheckoutModal .express-address-badge {
    background: #fff;
    border-color: rgba(201, 154, 80, 0.45);
    color: var(--srikar-checkout-brand);
}

body.checkout-page .nest-express-checkout-skin .express-back-btn,
body.checkout-page #expressCheckoutModal .express-back-btn,
body.checkout-page .nest-express-checkout-skin .express-resend-link,
body.checkout-page #expressCheckoutModal .express-resend-link {
    color: var(--srikar-checkout-brand);
}

body.checkout-page .nest-express-checkout-skin .express-back-btn:hover,
body.checkout-page #expressCheckoutModal .express-back-btn:hover,
body.checkout-page .nest-express-checkout-skin .express-change-phone-link:hover,
body.checkout-page #expressCheckoutModal .express-change-phone-link:hover {
    color: var(--srikar-checkout-brand-dark);
}

/* Product lines */
body.checkout-page .nest-express-checkout-skin .express-product-card,
body.checkout-page #expressCheckoutModal .express-product-card {
    border-bottom-color: rgba(201, 154, 80, 0.22);
    padding: 14px 0;
}

body.checkout-page .nest-express-checkout-skin .express-product-thumb,
body.checkout-page #expressCheckoutModal .express-product-thumb {
    border: 1px solid rgba(201, 154, 80, 0.28);
    border-radius: 10px;
}

body.checkout-page .nest-express-checkout-skin .express-product-name,
body.checkout-page #expressCheckoutModal .express-product-name {
    color: var(--srikar-checkout-heading);
}

body.checkout-page .nest-express-checkout-skin .express-product-price,
body.checkout-page #expressCheckoutModal .express-product-price {
    color: var(--srikar-checkout-brand);
    font-weight: 800;
}

body.checkout-page .nest-express-checkout-skin .express-qty-stepper,
body.checkout-page #expressCheckoutModal .express-qty-stepper {
    background: #fff;
    border-color: rgba(201, 154, 80, 0.35);
}

body.checkout-page .nest-express-checkout-skin .express-qty-btn:hover,
body.checkout-page #expressCheckoutModal .express-qty-btn:hover {
    background: var(--srikar-checkout-brand);
    color: #fff;
}

/* Totals */
body.checkout-page .nest-express-checkout-skin .express-cart-totals,
body.checkout-page #expressCheckoutModal .express-cart-totals {
    background: rgba(255, 253, 247, 0.96);
    border: 1px solid rgba(201, 154, 80, 0.24);
    border-radius: 12px;
    padding: 10px 12px;
}

body.checkout-page .nest-express-checkout-skin .express-cart-totals .total-text,
body.checkout-page #expressCheckoutModal .express-cart-totals .total-text,
body.checkout-page .nest-express-checkout-skin .express-total-row,
body.checkout-page #expressCheckoutModal .express-total-row {
    color: var(--srikar-checkout-heading);
    font-weight: 800;
}

body.checkout-page .nest-express-checkout-skin .express-amount-breakdown .express-total-row-inner,
body.checkout-page #expressCheckoutModal .express-amount-breakdown .express-total-row-inner {
    border-top-color: rgba(201, 154, 80, 0.28);
}

/* Shipping & payment */
body.checkout-page .nest-express-checkout-skin .list_payment_method .list-group-item,
body.checkout-page #expressCheckoutModal .list_payment_method .list-group-item {
    background: #fff;
    border: 1px solid rgba(201, 154, 80, 0.28) !important;
    border-radius: 12px !important;
}

body.checkout-page .nest-express-checkout-skin .express-payment-card,
body.checkout-page #expressCheckoutModal .express-payment-card {
    background: linear-gradient(135deg, rgba(255, 252, 243, 0.98), rgba(251, 236, 214, 0.35));
    border: 1px solid rgba(201, 154, 80, 0.35);
    border-radius: 14px;
}

body.checkout-page .nest-express-checkout-skin .express-payment-card-text strong,
body.checkout-page #expressCheckoutModal .express-payment-card-text strong {
    color: var(--srikar-checkout-heading);
}

/* Forms */
body.checkout-page .nest-express-checkout-skin .nest-express-form .form-control,
body.checkout-page .nest-express-checkout-skin .nest-express-form .form-select,
body.checkout-page #expressCheckoutModal .nest-express-form .form-control,
body.checkout-page #expressCheckoutModal .nest-express-form .form-select {
    background: #fff;
    border-color: rgba(201, 154, 80, 0.35);
    border-radius: 10px;
}

body.checkout-page .nest-express-checkout-skin .nest-express-form .form-control:focus,
body.checkout-page .nest-express-checkout-skin .nest-express-form .form-select:focus,
body.checkout-page #expressCheckoutModal .nest-express-form .form-control:focus,
body.checkout-page #expressCheckoutModal .nest-express-form .form-select:focus {
    border-color: var(--srikar-checkout-brand);
    box-shadow: 0 0 0 3px rgba(168, 29, 34, 0.1);
}

body.checkout-page .nest-express-checkout-skin .express-section-order-note .form-control,
body.checkout-page #expressCheckoutModal .express-section-order-note .form-control {
    background: #fff;
}

/* Pay button */
body.checkout-page .nest-express-checkout-skin .payment-checkout-btn,
body.checkout-page #expressCheckoutModal .payment-checkout-btn {
    background: linear-gradient(135deg, #C92821, var(--srikar-checkout-brand-dark)) !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 24px rgba(122, 21, 25, 0.24);
    font-size: 1.02rem;
    font-weight: 800;
    padding: 14px 18px !important;
}

body.checkout-page .nest-express-checkout-skin .payment-checkout-btn:hover:not(:disabled),
body.checkout-page #expressCheckoutModal .payment-checkout-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #B51F19, #6E1115) !important;
    box-shadow: 0 12px 28px rgba(122, 21, 25, 0.3);
}

body.checkout-page .nest-express-checkout-skin .payment-checkout-btn:disabled,
body.checkout-page #expressCheckoutModal .payment-checkout-btn:disabled {
    background: #C9B8B0 !important;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    body.checkout-page .nest-checkout-page .express-pay-action .payment-checkout-btn {
        box-shadow: 0 10px 24px rgba(122, 21, 25, 0.28);
    }
}

/* Coupon bar — crimson palette */
body.checkout-page .nest-checkout-coupon-bar,
body.checkout-page .nest-coupon-offers-panel {
    --nest-coupon-brand: var(--srikar-checkout-brand);
    --nest-coupon-brand-dark: var(--srikar-checkout-brand-dark);
    --nest-coupon-text: var(--srikar-checkout-heading);
    --nc-brand: var(--srikar-checkout-brand);
    --nc-brand-dark: var(--srikar-checkout-brand-dark);
    --nc-text: var(--srikar-checkout-heading);
}

body.checkout-page .nest-coupon-applied-card,
body.checkout-page .nest-checkout-coupon-bar .nest-coupon-applied {
    background: linear-gradient(135deg, #C92821 0%, var(--srikar-checkout-brand-dark) 58%, #6E1115 100%);
    box-shadow: 0 10px 24px rgba(122, 21, 25, 0.24);
}

body.checkout-page .nest-coupon-offers-panel,
body.checkout-page .nest-checkout-coupon-bar .nest-coupon-offers {
    background: linear-gradient(180deg, rgba(251, 236, 214, 0.35) 0%, #fff 42%);
    border-color: rgba(201, 154, 80, 0.28);
}

body.checkout-page .nest-coupon-offers-panel__header,
body.checkout-page .nest-checkout-coupon-bar .nest-coupon-offers__head {
    background: linear-gradient(90deg, rgba(168, 29, 34, 0.1), rgba(201, 154, 80, 0.14));
    border-bottom-color: rgba(201, 154, 80, 0.2);
}

body.checkout-page .nest-coupon-offer-card,
body.checkout-page .nest-checkout-coupon-bar .nest-coupon-ticket {
    border-color: rgba(201, 154, 80, 0.24);
}

body.checkout-page .nest-coupon-offer-card__save,
body.checkout-page .nest-coupon-offer-card__code,
body.checkout-page .nest-checkout-coupon-bar .nest-coupon-ticket__code {
    color: var(--srikar-checkout-brand-dark);
}

body.checkout-page .nest-coupon-manual,
body.checkout-page .nest-checkout-coupon-bar .nest-coupon-manual {
    background: rgba(255, 253, 247, 0.96);
    border-color: rgba(201, 154, 80, 0.3);
}

body.checkout-page .nest-coupon-manual__input:focus,
body.checkout-page .nest-checkout-coupon-bar .nest-coupon-manual__input:focus {
    border-color: var(--srikar-checkout-brand) !important;
    box-shadow: 0 0 0 3px rgba(168, 29, 34, 0.1) !important;
}

body.checkout-page .nest-coupon-apply-btn,
body.checkout-page .nest-coupon-manual__apply,
body.checkout-page .nest-checkout-coupon-bar .nest-coupon-apply-btn {
    background: linear-gradient(90deg, var(--srikar-checkout-brand), var(--srikar-checkout-brand-dark));
    box-shadow: 0 6px 14px rgba(122, 21, 25, 0.22);
}

body.checkout-page .nest-coupon-inline-message.is-success,
body.checkout-page .nest-checkout-coupon-bar .nest-coupon-inline-message.is-success {
    background: #FCEFEF;
    border-color: #E8B4B6;
    color: #7A1519;
}

/* Alerts & misc */
body.checkout-page .alert-warning {
    background: #FFF8E8;
    border-color: rgba(201, 154, 80, 0.45);
    color: #6B4E12;
}

body.checkout-page .spinner-border.text-brand {
    color: var(--srikar-checkout-brand) !important;
}

body.checkout-page .express-terms a {
    color: var(--srikar-checkout-brand);
}

@media (max-width: 575.98px) {
    body.checkout-page .main.nest-checkout-main {
        padding: 18px 0 42px;
    }

    body.checkout-page .nest-checkout-page-card {
        border-radius: 16px;
        padding: 1.1rem 1rem 1.2rem;
    }

    body.checkout-page .srikar-checkout-head__title {
        font-size: 1.55rem !important;
    }
}
