/* =========================================================
   Noghte Three Step Checkout - Frontend Optimized CSS
   Path: assets/css/frontend.css
   ========================================================= */

/* Base modal */
#ngtstc-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999999;
    direction: rtl;
    font-family: inherit;
    --ngtstc-primary-safe: var(--ngtstc-primary, #2563eb);
    --ngtstc-primary-text-safe: var(--ngtstc-primary-text, #ffffff);
    --ngtstc-success-safe: var(--ngtstc-success, #16a34a);
    --ngtstc-danger-safe: var(--ngtstc-danger, #dc2626);
    --ngtstc-overlay-safe: var(--ngtstc-overlay, #0f172a);
    --ngtstc-surface: #ffffff;
    --ngtstc-soft: #f8fafc;
    --ngtstc-soft-2: #f1f5f9;
    --ngtstc-border: #e2e8f0;
    --ngtstc-border-soft: #eef2f7;
    --ngtstc-text: #0f172a;
    --ngtstc-muted: #64748b;
    --ngtstc-shadow: 0 34px 110px rgba(15, 23, 42, 0.34);
}

body.ngtstc-modal-open {
    overflow: hidden;
}

#ngtstc-modal *,
#ngtstc-modal *::before,
#ngtstc-modal *::after {
    box-sizing: border-box;
}

#ngtstc-modal .ngtstc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
}

#ngtstc-modal .ngtstc-box,
#ngtstc-modal .ngtstc-fast-modal-card {
    position: relative;
    width: min(var(--ngtstc-modal-width, 520px), calc(100% - 28px));
    max-height: calc(100dvh - 44px);
    margin: 22px auto;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    border-radius: var(--ngtstc-modal-radius, 24px);
    background: var(--ngtstc-surface);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: var(--ngtstc-shadow);
    animation: ngtstc-pop 0.18s ease-out;
}

@keyframes ngtstc-pop {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
#ngtstc-modal .ngtstc-header,
#ngtstc-modal .ngtstc-fast-header {
    min-height: 56px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--ngtstc-surface);
    border-bottom: 1px solid var(--ngtstc-border-soft);
}

#ngtstc-modal .ngtstc-header span,
#ngtstc-modal .ngtstc-fast-title {
    color: var(--ngtstc-text);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.5;
}

#ngtstc-modal .ngtstc-close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--ngtstc-soft-2);
    color: #334155;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

#ngtstc-modal .ngtstc-close:hover {
    background: #e2e8f0;
    color: var(--ngtstc-text);
    transform: rotate(4deg);
}

/* Stepper */
#ngtstc-modal .ngtstc-fast-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 14px;
    background: var(--ngtstc-soft);
    border-bottom: 1px solid var(--ngtstc-border-soft);
}

#ngtstc-modal .ngtstc-fast-step {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 9px;
    border: 1px solid var(--ngtstc-border);
    border-radius: 16px;
    background: var(--ngtstc-surface);
    color: var(--ngtstc-muted);
    cursor: default;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

#ngtstc-modal .ngtstc-fast-step.is-active {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: var(--ngtstc-primary-safe);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.09);
}

#ngtstc-modal .ngtstc-fast-step.is-done {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: var(--ngtstc-success-safe);
}

#ngtstc-modal .ngtstc-fast-step-number {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--ngtstc-soft-2);
    color: currentColor;
    font-size: 11px;
    font-weight: 950;
}

#ngtstc-modal .ngtstc-fast-step.is-active .ngtstc-fast-step-number {
    background: var(--ngtstc-primary-safe);
    color: var(--ngtstc-primary-text-safe);
}

#ngtstc-modal .ngtstc-fast-step.is-done .ngtstc-fast-step-number {
    background: var(--ngtstc-success-safe);
    color: #ffffff;
}

#ngtstc-modal .ngtstc-fast-step-icon,
#ngtstc-modal .ngtstc-fast-step-icon svg {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

#ngtstc-modal .ngtstc-fast-step strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: currentColor;
    font-size: 12px;
    font-weight: 950;
}

/* Body and footer */
#ngtstc-modal .ngtstc-body,
#ngtstc-modal .ngtstc-fast-body {
    min-height: 260px;
    max-height: none;
    padding: 18px;
    overflow-y: auto;
    background: var(--ngtstc-surface);
}

#ngtstc-modal .ngtstc-body::-webkit-scrollbar {
    width: 8px;
}

#ngtstc-modal .ngtstc-body::-webkit-scrollbar-track {
    background: var(--ngtstc-soft);
}

#ngtstc-modal .ngtstc-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

#ngtstc-modal .ngtstc-fast-footer {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    background: var(--ngtstc-surface);
    border-top: 1px solid var(--ngtstc-border-soft);
    box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.045);
}

#ngtstc-modal .ngtstc-fast-footer:empty {
    display: none;
}

/* Buttons */
#ngtstc-modal button {
    font-family: inherit;
}

#ngtstc-modal .ngtstc-actions {
    display: grid;
    gap: 10px;
}

#ngtstc-modal .ngtstc-actions button,
#ngtstc-modal .ngtstc-fast-footer button,
#ngtstc-modal .ngtstc-continue-shopping,
#ngtstc-modal .ngtstc-go-cart,
#ngtstc-modal .ngtstc-go-checkout,
#ngtstc-modal .ngtstc-back-cart,
#ngtstc-modal .ngtstc-place-order,
#ngtstc-modal .ngtstc-upload-receipt-btn {
    min-height: 46px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

#ngtstc-modal .ngtstc-go-cart,
#ngtstc-modal .ngtstc-go-checkout,
#ngtstc-modal .ngtstc-place-order,
#ngtstc-modal .ngtstc-upload-receipt-btn {
    background: var(--ngtstc-primary-safe);
    color: var(--ngtstc-primary-text-safe);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

#ngtstc-modal .ngtstc-continue-shopping,
#ngtstc-modal .ngtstc-back-cart {
    background: var(--ngtstc-soft-2);
    color: #334155;
    box-shadow: none;
}

#ngtstc-modal .ngtstc-fast-footer button:hover,
#ngtstc-modal .ngtstc-upload-receipt-btn:hover {
    transform: translateY(-1px);
}

#ngtstc-modal .ngtstc-fast-footer button:disabled,
#ngtstc-modal .ngtstc-upload-receipt-btn:disabled,
#ngtstc-modal .ngtstc-place-order.is-loading,
#ngtstc-modal .ngtstc-upload-receipt-btn.is-loading {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

/* Loading */
#ngtstc-modal .ngtstc-fast-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    place-items: center;
    align-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(8px);
}

#ngtstc-modal .ngtstc-fast-loading[style*="block"] {
    display: grid !important;
}

#ngtstc-modal .ngtstc-fast-spinner {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 3px solid var(--ngtstc-border);
    border-top-color: var(--ngtstc-primary-safe);
    animation: ngtstc-spin 0.75s linear infinite;
}

#ngtstc-modal .ngtstc-fast-loading-text {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

@keyframes ngtstc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Status and messages */
#ngtstc-modal .ngtstc-step,
#ngtstc-modal .ngtstc-step-added,
#ngtstc-modal .ngtstc-success-screen,
#ngtstc-modal .ngtstc-receipt-view,
#ngtstc-modal .ngtstc-receipt-success {
    text-align: center;
}

#ngtstc-modal .ngtstc-step-added {
    min-height: 240px;
    display: grid;
    justify-items: center;
    align-content: center;
}

#ngtstc-modal .ngtstc-success-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--ngtstc-success-safe);
    font-size: 28px;
    font-weight: 950;
}

#ngtstc-modal .ngtstc-step h3,
#ngtstc-modal .ngtstc-cart-view h3,
#ngtstc-modal .ngtstc-checkout-view h3,
#ngtstc-modal .ngtstc-receipt-view h3,
#ngtstc-modal .ngtstc-receipt-success h3,
#ngtstc-modal .ngtstc-success-screen h3 {
    margin: 0 0 8px;
    color: var(--ngtstc-text);
    font-size: 18px;
    font-weight: 950;
    line-height: 1.7;
}

#ngtstc-modal .ngtstc-step p,
#ngtstc-modal .ngtstc-receipt-subtitle,
#ngtstc-modal .ngtstc-receipt-success p,
#ngtstc-modal .ngtstc-success-screen p {
    margin: 0;
    color: var(--ngtstc-muted);
    font-size: 14px;
    line-height: 1.9;
}

#ngtstc-modal .ngtstc-loading,
#ngtstc-modal .ngtstc-empty-cart,
#ngtstc-modal .ngtstc-muted-box {
    padding: 18px;
    border-radius: 17px;
    background: var(--ngtstc-soft);
    border: 1px solid var(--ngtstc-border-soft);
    color: var(--ngtstc-muted);
    text-align: center;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.9;
}

#ngtstc-modal .ngtstc-error {
    padding: 13px 14px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--ngtstc-danger-safe);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
}

/* Cart - new and legacy support */
#ngtstc-modal .ngtstc-cart-view,
#ngtstc-modal .ngtstc-fast-cart-view {
    display: grid;
    gap: 14px;
}

#ngtstc-modal .ngtstc-cart-view.is-updating {
    opacity: 0.62;
    pointer-events: none;
}

#ngtstc-modal .ngtstc-cart-items,
#ngtstc-modal .ngtstc-fast-cart-items {
    display: grid;
    gap: 12px;
    margin: 0;
}

#ngtstc-modal .ngtstc-cart-item,
#ngtstc-modal .ngtstc-fast-cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
    background: var(--ngtstc-surface);
    border: 1px solid var(--ngtstc-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

#ngtstc-modal .ngtstc-fast-item-image {
    width: 88px;
    height: 88px;
    overflow: hidden;
    border-radius: 17px;
    background: var(--ngtstc-soft);
    border: 1px solid var(--ngtstc-border-soft);
}

#ngtstc-modal .ngtstc-fast-item-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

#ngtstc-modal .ngtstc-fast-item-content,
#ngtstc-modal .ngtstc-cart-product {
    min-width: 0;
    display: grid;
    gap: 10px;
}

#ngtstc-modal .ngtstc-fast-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

#ngtstc-modal .ngtstc-fast-item-head h4,
#ngtstc-modal .ngtstc-cart-product strong {
    margin: 0;
    color: var(--ngtstc-text);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.75;
}

#ngtstc-modal .ngtstc-cart-product small,
#ngtstc-modal .ngtstc-fast-item-variation span {
    color: var(--ngtstc-muted);
    font-size: 11px;
    line-height: 1.7;
}

#ngtstc-modal .ngtstc-fast-item-variation {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#ngtstc-modal .ngtstc-fast-item-variation span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--ngtstc-soft);
    font-weight: 800;
}

#ngtstc-modal .ngtstc-fast-item-bottom,
#ngtstc-modal .ngtstc-cart-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#ngtstc-modal .ngtstc-cart-remove {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #fef2f2;
    color: var(--ngtstc-danger-safe);
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

#ngtstc-modal .ngtstc-qty-control {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: var(--ngtstc-soft);
    border: 1px solid var(--ngtstc-border);
}

#ngtstc-modal .ngtstc-qty-control button {
    width: 31px;
    height: 31px;
    border: 0;
    background: transparent;
    color: var(--ngtstc-text);
    font-size: 17px;
    font-weight: 950;
    cursor: pointer;
}

#ngtstc-modal .ngtstc-cart-qty {
    width: 38px;
    height: 31px;
    border: 0;
    background: transparent;
    text-align: center;
    color: var(--ngtstc-text);
    font-size: 13px;
    font-weight: 950;
    appearance: textfield;
    -moz-appearance: textfield;
}

#ngtstc-modal .ngtstc-cart-qty::-webkit-outer-spin-button,
#ngtstc-modal .ngtstc-cart-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#ngtstc-modal .ngtstc-fast-item-price,
#ngtstc-modal .ngtstc-cart-price {
    display: grid;
    justify-items: end;
    gap: 3px;
    white-space: nowrap;
    color: var(--ngtstc-text);
    font-size: 13px;
    font-weight: 950;
}

#ngtstc-modal .ngtstc-fast-sale-price {
    color: var(--ngtstc-text);
    font-size: 13px;
    font-weight: 950;
}

#ngtstc-modal .ngtstc-fast-regular-price {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    text-decoration: line-through;
}

/* Totals and summary */
#ngtstc-modal .ngtstc-cart-summary,
#ngtstc-modal .ngtstc-checkout-total,
#ngtstc-modal .ngtstc-fast-price-breakdown,
#ngtstc-modal .ngtstc-fast-order-summary {
    display: grid;
    gap: 8px;
    padding: 13px;
    border-radius: 18px;
    background: var(--ngtstc-soft);
    border: 1px solid var(--ngtstc-border-soft);
    margin: 0;
}

#ngtstc-modal .ngtstc-cart-summary div,
#ngtstc-modal .ngtstc-checkout-total,
#ngtstc-modal .ngtstc-fast-total-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #475569;
    font-size: 13px;
    font-weight: 850;
}

#ngtstc-modal .ngtstc-cart-summary strong,
#ngtstc-modal .ngtstc-checkout-total strong,
#ngtstc-modal .ngtstc-fast-total-line strong {
    color: var(--ngtstc-text);
    font-size: 13px;
    font-weight: 950;
    text-align: left;
}

#ngtstc-modal .ngtstc-fast-original-price strong {
    color: var(--ngtstc-muted);
    text-decoration: line-through;
}

#ngtstc-modal .ngtstc-fast-product-discount strong,
#ngtstc-modal .ngtstc-fast-coupon-discount strong {
    color: var(--ngtstc-success-safe);
}

#ngtstc-modal .ngtstc-fast-grand-total span {
    color: var(--ngtstc-text);
    font-size: 14px;
    font-weight: 950;
}

#ngtstc-modal .ngtstc-fast-grand-total strong {
    color: var(--ngtstc-primary-safe);
    font-size: 16px;
    font-weight: 950;
}

/* Coupon */
#ngtstc-modal .ngtstc-fast-coupon {
    flex: 1 1 auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

#ngtstc-modal .ngtstc-coupon-input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: var(--ngtstc-soft);
    color: var(--ngtstc-text);
    font-size: 13px;
    font-weight: 800;
    outline: none;
}

#ngtstc-modal .ngtstc-coupon-input:focus {
    border-color: var(--ngtstc-primary-safe);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#ngtstc-modal .ngtstc-apply-coupon {
    width: auto;
    min-width: 74px;
    min-height: 46px;
    padding: 11px 15px;
    border: 0;
    border-radius: 16px;
    background: var(--ngtstc-soft-2);
    color: #334155;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

#ngtstc-modal .ngtstc-apply-coupon.is-loading {
    opacity: 0.65;
    cursor: wait;
}

#ngtstc-modal .ngtstc-fast-coupons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 4px;
}

#ngtstc-modal .ngtstc-fast-coupon-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 5px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--ngtstc-primary-safe);
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 950;
    direction: ltr;
}

#ngtstc-modal .ngtstc-remove-coupon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--ngtstc-surface);
    color: var(--ngtstc-danger-safe);
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
}

/* Checkout */
#ngtstc-modal .ngtstc-checkout-view,
#ngtstc-modal .ngtstc-fast-checkout-view {
    display: grid;
    gap: 14px;
    padding-bottom: 0;
}

#ngtstc-modal .ngtstc-fast-section {
    display: grid;
    gap: 13px;
    padding: 14px;
    border-radius: 20px;
    background: var(--ngtstc-surface);
    border: 1px solid var(--ngtstc-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

#ngtstc-modal .ngtstc-fast-section-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#ngtstc-modal .ngtstc-fast-section-head > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--ngtstc-primary-safe);
    font-size: 12px;
    font-weight: 950;
}

#ngtstc-modal .ngtstc-fast-section-head h3 {
    margin: 0;
    color: var(--ngtstc-text);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.7;
}

#ngtstc-modal .ngtstc-fast-section-head p {
    margin: 2px 0 0;
    color: var(--ngtstc-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.8;
}

#ngtstc-modal .ngtstc-checkout-fields,
#ngtstc-modal .ngtstc-fast-checkout-fields {
    display: grid;
    gap: 11px;
}

#ngtstc-modal .ngtstc-field {
    display: grid;
    gap: 7px;
    margin: 0;
}

#ngtstc-modal .ngtstc-field label {
    color: #334155;
    font-size: 12px;
    font-weight: 950;
}

#ngtstc-modal .ngtstc-required {
    color: var(--ngtstc-danger-safe);
}

#ngtstc-modal .ngtstc-field input,
#ngtstc-modal .ngtstc-field textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #dbe3ef;
    border-radius: 15px;
    background: var(--ngtstc-surface);
    color: var(--ngtstc-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#ngtstc-modal .ngtstc-field textarea {
    min-height: 86px;
    resize: vertical;
}

#ngtstc-modal .ngtstc-field input:focus,
#ngtstc-modal .ngtstc-field textarea:focus {
    border-color: var(--ngtstc-primary-safe);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#ngtstc-modal .ngtstc-field-error {
    border-color: var(--ngtstc-danger-safe) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

#ngtstc-modal .ngtstc-section-divider {
    height: 1px;
    margin: 4px 0;
    background: var(--ngtstc-border-soft);
}

#ngtstc-modal .ngtstc-shipping-methods,
#ngtstc-modal .ngtstc-payment-methods,
#ngtstc-modal .ngtstc-fast-choice-list {
    display: grid;
    gap: 9px;
}

#ngtstc-modal .ngtstc-choice,
#ngtstc-modal .ngtstc-fast-choice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px;
    border-radius: 17px;
    background: var(--ngtstc-surface);
    border: 1px solid var(--ngtstc-border);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#ngtstc-modal .ngtstc-choice:has(input:checked),
#ngtstc-modal .ngtstc-fast-choice:has(input:checked) {
    border-color: var(--ngtstc-primary-safe);
    background: #eff6ff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
}

#ngtstc-modal .ngtstc-choice input {
    margin-top: 5px;
    accent-color: var(--ngtstc-primary-safe);
}

#ngtstc-modal .ngtstc-choice span {
    display: grid;
    gap: 4px;
    color: var(--ngtstc-text);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.65;
}

#ngtstc-modal .ngtstc-choice small {
    color: var(--ngtstc-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
}

#ngtstc-modal .ngtstc-card-preview,
#ngtstc-modal .ngtstc-fast-card-preview {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 12px;
    border-radius: 16px;
    background: var(--ngtstc-soft);
    border: 1px dashed #cbd5e1;
}

#ngtstc-modal .ngtstc-card-preview p {
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.8;
}

#ngtstc-modal .ngtstc-card-preview code {
    direction: ltr;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--ngtstc-surface);
    border: 1px solid var(--ngtstc-border);
    color: var(--ngtstc-text);
}

/* Receipt */
#ngtstc-modal .ngtstc-receipt-view,
#ngtstc-modal .ngtstc-receipt-success,
#ngtstc-modal .ngtstc-success-screen {
    display: grid;
    justify-items: center;
    gap: 12px;
}

#ngtstc-modal .ngtstc-receipt-total {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    margin: 0;
    border-radius: 17px;
    background: var(--ngtstc-soft);
    border: 1px solid var(--ngtstc-border-soft);
    color: #475569;
    font-size: 13px;
}

#ngtstc-modal .ngtstc-receipt-total strong {
    color: var(--ngtstc-text);
    font-size: 15px;
    font-weight: 950;
}

#ngtstc-modal .ngtstc-receipt-note {
    width: 100%;
    padding: 14px;
    margin: 0;
    border-radius: 17px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.9;
    text-align: right;
}

#ngtstc-modal .ngtstc-receipt-form {
    width: 100%;
    display: grid;
    gap: 12px;
    margin-top: 2px;
}

#ngtstc-modal .ngtstc-file-field {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 17px;
    background: var(--ngtstc-soft);
    cursor: pointer;
    text-align: center;
}

#ngtstc-modal .ngtstc-file-field span {
    color: #334155;
    font-size: 13px;
    font-weight: 950;
}

#ngtstc-modal .ngtstc-file-field input {
    width: 100%;
    padding: 10px;
    border-radius: 13px;
    background: var(--ngtstc-surface);
    border: 1px solid var(--ngtstc-border);
}

#ngtstc-modal .ngtstc-order-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 10px 14px;
    border-radius: 13px;
    background: var(--ngtstc-soft-2);
    color: var(--ngtstc-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

/* Responsive */
@media (max-width: 560px) {
    #ngtstc-modal .ngtstc-box,
    #ngtstc-modal .ngtstc-fast-modal-card {
        width: calc(100% - 18px);
        max-height: calc(100dvh - 18px);
        margin: 9px auto;
        border-radius: 20px;
    }

    #ngtstc-modal .ngtstc-header,
    #ngtstc-modal .ngtstc-fast-header {
        min-height: 52px;
        padding: 12px 14px;
    }

    #ngtstc-modal .ngtstc-fast-steps {
        padding: 10px;
        gap: 7px;
    }

    #ngtstc-modal .ngtstc-fast-step {
        gap: 5px;
        padding: 9px 6px;
    }

    #ngtstc-modal .ngtstc-fast-step-icon {
        display: none;
    }

    #ngtstc-modal .ngtstc-fast-step strong {
        font-size: 11px;
    }

    #ngtstc-modal .ngtstc-body,
    #ngtstc-modal .ngtstc-fast-body {
        padding: 14px;
        min-height: 230px;
    }

    #ngtstc-modal .ngtstc-fast-footer {
        padding: 12px;
        flex-direction: column;
    }

    #ngtstc-modal .ngtstc-fast-coupon {
        grid-template-columns: 1fr;
    }

    #ngtstc-modal .ngtstc-apply-coupon {
        width: 100%;
    }

    #ngtstc-modal .ngtstc-cart-item,
    #ngtstc-modal .ngtstc-fast-cart-item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
    }

    #ngtstc-modal .ngtstc-fast-item-image {
        width: 72px;
        height: 72px;
        border-radius: 15px;
    }

    #ngtstc-modal .ngtstc-fast-item-bottom,
    #ngtstc-modal .ngtstc-cart-side {
        align-items: flex-start;
        flex-direction: column;
    }

    #ngtstc-modal .ngtstc-fast-item-price,
    #ngtstc-modal .ngtstc-cart-price {
        justify-items: start;
    }

    #ngtstc-modal .ngtstc-fast-section {
        padding: 12px;
        border-radius: 18px;
    }

    #ngtstc-modal .ngtstc-fast-section-head > span {
        width: 26px;
        height: 26px;
    }

    #ngtstc-modal .ngtstc-fast-section-head h3 {
        font-size: 14px;
    }
}
/* =========================================================
   Release 2.0 - Theme inheritance and material controls
   ========================================================= */
#ngtstc-modal {
    font-family: var(--ngtstc-font-family, inherit);
    --ngtstc-soft: var(--ngtstc-background, #f8fafc);
    --ngtstc-soft-2: color-mix(in srgb, var(--ngtstc-background, #f8fafc) 86%, var(--ngtstc-text, #0f172a));
    --ngtstc-border-soft: color-mix(in srgb, var(--ngtstc-border, #e2e8f0) 68%, transparent);
    --ngtstc-shadow: 0 34px 110px rgba(15, 23, 42, var(--ngtstc-shadow-alpha, .22));
}

#ngtstc-modal .ngtstc-overlay {
    background: color-mix(in srgb, var(--ngtstc-overlay-safe, var(--ngtstc-overlay, #0f172a)) 62%, transparent);
}

#ngtstc-modal .ngtstc-box,
#ngtstc-modal .ngtstc-fast-modal-card,
#ngtstc-modal .ngtstc-header,
#ngtstc-modal .ngtstc-fast-header,
#ngtstc-modal .ngtstc-body,
#ngtstc-modal .ngtstc-fast-body,
#ngtstc-modal .ngtstc-fast-footer {
    background: var(--ngtstc-surface, #fff);
    color: var(--ngtstc-text, #0f172a);
}

#ngtstc-modal .ngtstc-body,
#ngtstc-modal .ngtstc-fast-body {
    padding: var(--ngtstc-content-spacing, 20px);
}

#ngtstc-modal button,
#ngtstc-modal input,
#ngtstc-modal textarea,
#ngtstc-modal select {
    font: inherit;
}

#ngtstc-modal .ngtstc-go-cart,
#ngtstc-modal .ngtstc-go-checkout,
#ngtstc-modal .ngtstc-place-order,
#ngtstc-modal .ngtstc-upload-receipt-btn,
#ngtstc-modal .ngtstc-apply-coupon {
    min-height: var(--ngtstc-button-height, 48px);
    background: var(--ngtstc-primary-safe, #2563eb);
    color: var(--ngtstc-primary-text-safe, #fff);
}

#ngtstc-modal .ngtstc-fast-cart-item,
#ngtstc-modal .ngtstc-fast-section,
#ngtstc-modal .ngtstc-fast-price-breakdown,
#ngtstc-modal .ngtstc-fast-order-summary,
#ngtstc-modal .ngtstc-choice,
#ngtstc-modal .ngtstc-field input,
#ngtstc-modal .ngtstc-field textarea,
#ngtstc-modal .ngtstc-coupon-input {
    border-color: var(--ngtstc-border, #e2e8f0);
}

#ngtstc-modal h1,
#ngtstc-modal h2,
#ngtstc-modal h3,
#ngtstc-modal h4,
#ngtstc-modal strong {
    color: var(--ngtstc-text, #0f172a);
}

#ngtstc-modal p,
#ngtstc-modal small,
#ngtstc-modal label,
#ngtstc-modal .ngtstc-muted-box {
    color: var(--ngtstc-muted, #64748b);
}
