/* ==========================================================================
   Physgun Checkout Overrides
   Loads AFTER orderform all.min.css (via common.tpl {assetExists}).
   Uses #order-standard_cart.checkout-page prefix for max specificity.
   ========================================================================== */

/* ── Hide native radio/checkbox visuals (keep in DOM for iCheck) ────── */
#order-standard_cart.checkout-page input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* iCheck plugin replacement divs — zero-size but still in DOM */
#order-standard_cart.checkout-page .iradio_square-blue,
#order-standard_cart.checkout-page .icheckbox_square-blue {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ── Base reset ──────────────────────────────────────────── */
#order-standard_cart.checkout-page {
    padding: 0 !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: #f4f4f5 !important;
    -webkit-font-smoothing: antialiased !important;
    background: transparent !important;
}

/* ── ALL labels (override #order-standard_cart label AND Bootstrap label) ── */
#order-standard_cart.checkout-page label {
    margin-right: 0 !important;
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    color: #a1a1aa !important;
    display: block !important;
    margin-bottom: 0 !important;
    max-width: none !important;
}
#order-standard_cart.checkout-page .form-label {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #a1a1aa !important;
}

/* Labels inside checkbox rows should be inline */
#order-standard_cart.checkout-page .checkbox-row label {
    display: inline !important;
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}
#order-standard_cart.checkout-page .checkbox-row label a {
    color: #2996ff !important;
    text-decoration: none !important;
}
#order-standard_cart.checkout-page .checkbox-row label a:hover {
    text-decoration: underline !important;
}

/* Labels inside selectable-card should inherit card styles */
#order-standard_cart.checkout-page label.selectable-card {
    display: flex !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: #a1a1aa !important;
    margin-bottom: 0 !important;
}
#order-standard_cart.checkout-page label.selectable-card.selected {
    color: #fff !important;
}

/* ── Headings ────────────────────────────────────────────── */
#order-standard_cart.checkout-page h1 {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 4px 0 0 !important;
    line-height: 1.3 !important;
}

/* ── Paragraphs ──────────────────────────────────────────── */
#order-standard_cart.checkout-page p {
    margin-bottom: 0 !important;
    color: inherit !important;
}

/* ── Links ───────────────────────────────────────────────── */
#order-standard_cart.checkout-page a {
    color: #2996ff !important;
    text-decoration: none !important;
}
#order-standard_cart.checkout-page a:hover {
    color: #52aaff !important;
}
/* Completed step tabs should use muted color */
#order-standard_cart.checkout-page a.step-tab.completed {
    color: #a1a1aa !important;
}
#order-standard_cart.checkout-page a.step-tab.completed:hover {
    color: #d4d4d8 !important;
}

/* ── Progress bar ────────────────────────────────────────── */
#order-standard_cart.checkout-page .progress-track {
    height: 2px !important;
    background: #27272a !important;
    width: 100% !important;
    overflow: visible !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}
#order-standard_cart.checkout-page .progress-fill {
    height: 100% !important;
    width: 100% !important;
    background: linear-gradient(to right, #2996ff, #0065c7) !important;
    transition: width 0.5s !important;
    border-radius: 0 !important;
}

/* ── Layout ──────────────────────────────────────────────── */
#order-standard_cart.checkout-page .checkout-wrap {
    max-width: 48rem !important;
    margin: 0 auto !important;
    padding: 32px 24px 48px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
}

/* ── Header ──────────────────────────────────────────────── */
#order-standard_cart.checkout-page .checkout-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
#order-standard_cart.checkout-page .step-label {
    font-size: 0.75rem !important;
    color: #71717a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin: 0 !important;
}

/* ── Step tabs ───────────────────────────────────────────── */
#order-standard_cart.checkout-page .step-tabs {
    display: flex !important;
    gap: 4px !important;
}
#order-standard_cart.checkout-page .step-tab {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    background: transparent !important;
}
#order-standard_cart.checkout-page .step-tab.active {
    background: rgba(0,130,255,0.15) !important;
    border-color: rgba(0,130,255,0.30) !important;
    color: #52aaff !important;
}

/* Step dots */
#order-standard_cart.checkout-page .step-dot {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}
#order-standard_cart.checkout-page .step-dot.done {
    background: #22c55e !important;
    color: #fff !important;
}
#order-standard_cart.checkout-page .step-dot.current {
    background: #0082ff !important;
    color: #fff !important;
}

/* ── Card / Panel ────────────────────────────────────────── */
#order-standard_cart.checkout-page .card {
    background: rgba(39,39,42,0.60) !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 16px !important;
    overflow: visible !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}
#order-standard_cart.checkout-page .card-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(63,63,70,0.40) !important;
}
#order-standard_cart.checkout-page .card-row:last-child {
    border-bottom: none !important;
}
#order-standard_cart.checkout-page .card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    background: rgba(39,39,42,0.30) !important;
}

/* ── Section label ───────────────────────────────────────── */
#order-standard_cart.checkout-page .section-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #a1a1aa !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
}

/* ── Form grid ───────────────────────────────────────────── */
#order-standard_cart.checkout-page .form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}
#order-standard_cart.checkout-page .form-grid .full {
    grid-column: 1 / -1 !important;
}
@media (max-width: 640px) {
    #order-standard_cart.checkout-page .form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Form group ──────────────────────────────────────────── */
#order-standard_cart.checkout-page .form-group {
    display: flex;
    flex-direction: column !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* ── Input fields ────────────────────────────────────────── */
#order-standard_cart.checkout-page .input,
#order-standard_cart.checkout-page input.input,
#order-standard_cart.checkout-page textarea.input {
    width: 100% !important;
    background: rgba(39,39,42,0.60) !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-size: 0.875rem !important;
    color: #f4f4f5 !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    font-family: inherit !important;
    box-shadow: none !important;
    display: block;
    height: auto !important;
    line-height: 1.5 !important;
    -webkit-appearance: none !important;
    background-image: none !important;
}
#order-standard_cart.checkout-page .input::placeholder {
    color: #71717a !important;
}
#order-standard_cart.checkout-page .input:focus {
    border-color: rgba(0,130,255,0.60) !important;
    box-shadow: none !important;
    outline: none !important;
}
#order-standard_cart.checkout-page .input:disabled {
    opacity: 0.5 !important;
}

/* ── Select fields ───────────────────────────────────────── */
#order-standard_cart.checkout-page .select,
#order-standard_cart.checkout-page select.select {
    width: 100% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: rgba(39,39,42,0.60) !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 12px !important;
    padding: 10px 40px 10px 16px !important;
    font-size: 0.875rem !important;
    color: #f4f4f5 !important;
    outline: none !important;
    cursor: pointer !important;
    transition: border-color 0.2s !important;
    font-family: inherit !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    box-shadow: none !important;
    display: block;
    height: auto !important;
    line-height: 1.5 !important;
}
#order-standard_cart.checkout-page .select:focus {
    border-color: rgba(0,130,255,0.60) !important;
    box-shadow: none !important;
}
#order-standard_cart.checkout-page .select option {
    background: #18181b !important;
    color: #f4f4f5 !important;
}

/* ── Selectable card (payment gateways, account picker) ──── */
#order-standard_cart.checkout-page .selectable-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 12px 14px !important;
    background: rgba(39,39,42,0.40) !important;
    border: 1px solid rgba(63,63,70,0.40) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    color: #a1a1aa !important;
    text-align: left !important;
    font-family: inherit !important;
    font-size: 0.875rem !important;
}
#order-standard_cart.checkout-page .selectable-card:hover {
    border-color: #52525b !important;
    color: #d4d4d8 !important;
}
#order-standard_cart.checkout-page .selectable-card.selected {
    background: rgba(0,130,255,0.15) !important;
    border-color: rgba(0,130,255,0.50) !important;
    color: #fff !important;
}

/* Radio dot */
#order-standard_cart.checkout-page .radio-dot {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    border: 2px solid #52525b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.2s !important;
    background: transparent !important;
}
#order-standard_cart.checkout-page .selected .radio-dot {
    border-color: #2996ff !important;
    background: rgba(0,130,255,0.30) !important;
}
#order-standard_cart.checkout-page .selected .radio-dot::after {
    content: '' !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #2996ff !important;
}

/* ── Success / CTA Button (green gradient) ───────────────── */
#order-standard_cart.checkout-page .btn-success,
#order-standard_cart.checkout-page button.btn-success {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 14px 24px !important;
    background: linear-gradient(to right, #22c55e, #059669) !important;
    background-color: transparent !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 10px 15px -3px rgba(5,46,22,0.30) !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
#order-standard_cart.checkout-page .btn-success:hover {
    background: linear-gradient(to right, #4ade80, #22c55e) !important;
}
#order-standard_cart.checkout-page .btn-success:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}
#order-standard_cart.checkout-page .btn-success:focus {
    outline: none !important;
    box-shadow: 0 10px 15px -3px rgba(5,46,22,0.30) !important;
}

/* ── Link button ─────────────────────────────────────────── */
#order-standard_cart.checkout-page .btn-link,
#order-standard_cart.checkout-page button.btn-link {
    background: none !important;
    border: none !important;
    color: #2996ff !important;
    font-size: 0.8125rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    line-height: inherit !important;
}
#order-standard_cart.checkout-page .btn-link:hover {
    color: #52aaff !important;
    text-decoration: underline !important;
}

/* ── Alerts ──────────────────────────────────────────────── */
#order-standard_cart.checkout-page .alert-error {
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    background: rgba(239,68,68,0.10) !important;
    border: 1px solid rgba(239,68,68,0.20) !important;
    color: #fca5a5 !important;
    font-size: 0.75rem !important;
}
.checkout-error-feedback li {
    display: list-item !important;
    list-style: disc !important;
    margin-bottom: 2px !important;
}
#order-standard_cart.checkout-page .alert-success {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    background: rgba(34,197,94,0.10) !important;
    border: 1px solid rgba(34,197,94,0.30) !important;
    color: #86efac !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* ── Checkbox rows ───────────────────────────────────────── */
#order-standard_cart.checkout-page .checkbox-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}
#order-standard_cart.checkout-page .checkbox-row input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    border: 2px solid #52525b !important;
    border-radius: 4px !important;
    background: rgba(39,39,42,0.60) !important;
    cursor: pointer !important;
    margin: 1px 0 0 0 !important;
    padding: 0 !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
}
#order-standard_cart.checkout-page .checkbox-row input[type="checkbox"]:checked {
    background: #0082ff !important;
    border-color: #0082ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") !important;
    background-size: 12px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ── Coupon row ──────────────────────────────────────────── */
#order-standard_cart.checkout-page .coupon-row {
    display: flex !important;
    gap: 8px !important;
}
#order-standard_cart.checkout-page .coupon-row .input {
    flex: 1 !important;
}
#order-standard_cart.checkout-page .btn-apply {
    padding: 10px 16px !important;
    background: #3f3f46 !important;
    color: #fff !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    flex-shrink: 0 !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
}
#order-standard_cart.checkout-page .btn-apply:hover {
    background: #52525b !important;
}

/* ── Security badges ─────────────────────────────────────── */
#order-standard_cart.checkout-page .security-badges {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    padding: 8px 0 !important;
}
#order-standard_cart.checkout-page .security-badge {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #71717a !important;
    font-size: 0.75rem !important;
}

/* ── Divider ─────────────────────────────────────────────── */
#order-standard_cart.checkout-page .divider,
#order-standard_cart.checkout-page hr.divider {
    border: none !important;
    border-top: 1px solid #27272a !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* ── Gateway list: always visible regardless of credit state ── */
#order-standard_cart.checkout-page #paymentGatewaysContainer {
    display: flex !important;
}

/* ── CC input container (override all.min.css light theme) ── */
#order-standard_cart.checkout-page .cc-input-container {
    padding: 0 !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}
#order-standard_cart.checkout-page .cc-input-container .form-group {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ── Apply credit container (override all.min.css light bg) ── */
#order-standard_cart.checkout-page .apply-credit-container {
    background-color: rgba(39,39,42,0.60) !important;
    background: rgba(39,39,42,0.60) !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 12px !important;
    color: #a1a1aa !important;
    padding: 16px !important;
    margin: 12px 0 !important;
}
#order-standard_cart.checkout-page .apply-credit-container span {
    color: #f4f4f5 !important;
}
#order-standard_cart.checkout-page .apply-credit-container .radio {
    padding: 0 !important;
}

/* ── Existing CC grid ────────────────────────────────────── */
#order-standard_cart.checkout-page .existing-cc-grid {
    display: grid !important;
    grid-template-columns: auto auto 1fr auto auto !important;
    gap: 0 !important;
    font-weight: 400 !important;
    color: #d4d4d8 !important;
    font-size: 0.8125rem !important;
    align-items: center !important;
    background: rgba(39,39,42,0.40) !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
}
#order-standard_cart.checkout-page .existing-cc-grid .paymethod-info {
    padding: 12px 10px !important;
    margin: 0 !important;
    cursor: pointer !important;
    background: transparent !important;
}
/* Row separator: border on the first column of each row except the first */
#order-standard_cart.checkout-page .existing-cc-grid .paymethod-info.radio-inline ~ .paymethod-info.radio-inline,
#order-standard_cart.checkout-page .existing-cc-grid .paymethod-info.radio-inline ~ .paymethod-info.radio-inline ~ .paymethod-info {
    border-top: 1px solid rgba(63,63,70,0.30) !important;
}
/* Actually simpler: every 5th+1 element starts a new row, add top border */
#order-standard_cart.checkout-page .existing-cc-grid .paymethod-info:nth-child(n+6) {
    border-top: 1px solid rgba(63,63,70,0.30) !important;
}
#order-standard_cart.checkout-page .existing-cc-grid .paymethod-info.radio-inline {
    padding-left: 14px !important;
}
#order-standard_cart.checkout-page .existing-cc-grid .paymethod-info i {
    color: #71717a !important;
    font-size: 1.125rem !important;
}
/* Hide the iCheck wrapper inside existing cards — use custom radio-dot instead */
#order-standard_cart.checkout-page .existing-cc-grid .iradio_square-blue {
    position: relative !important;
    width: 18px !important;
    height: 18px !important;
    overflow: visible !important;
    opacity: 1 !important;
    border: 2px solid rgba(113,113,122,0.50) !important;
    border-radius: 50% !important;
    background: transparent !important;
    pointer-events: auto !important;
}
#order-standard_cart.checkout-page .existing-cc-grid .iradio_square-blue.checked {
    border-color: #3b82f6 !important;
    background: #3b82f6 !important;
    box-shadow: inset 0 0 0 3px #18181b !important;
}
/* Hide iCheck wrapper inside "enter new card" selectable-card (we use .radio-dot instead) */
#order-standard_cart.checkout-page #creditCardInputFields .selectable-card .iradio_square-blue {
    display: none !important;
}

/* ── Stripe cards wrapper (injected by stripe.js with Bootstrap grid) ── */
#order-standard_cart.checkout-page .stripe-cards-inputs {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
#order-standard_cart.checkout-page .stripe-cards-inputs > .row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin: 0 !important;
}
#order-standard_cart.checkout-page .stripe-cards-inputs > .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
}
#order-standard_cart.checkout-page .stripe-cards-inputs > .row > .col-md-6 {
    grid-column: 1 / -1 !important;
}

/* ── Stripe card elements ────────────────────────────────── */
#order-standard_cart.checkout-page #stripeCreditCard,
#order-standard_cart.checkout-page #stripeExpiryDate,
#order-standard_cart.checkout-page #stripeCvc {
    width: 100% !important;
    display: block !important;
    background: rgba(39,39,42,0.60) !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    color: #f4f4f5 !important;
}
/* Every div/iframe inside Stripe mount points must fill width */
#order-standard_cart.checkout-page .cc-input-container .form-group > div {
    width: 100% !important;
    display: block !important;
}
#order-standard_cart.checkout-page .cc-input-container .form-group > div > div {
    width: 100% !important;
}
#order-standard_cart.checkout-page .cc-input-container .form-group iframe {
    width: 100% !important;
}
/* form-groups in CC area must not shrink */
#order-standard_cart.checkout-page #newCardInfo .form-group {
    min-width: 0 !important;
}

/* ── ECE container ───────────────────────────────────────── */
#order-standard_cart.checkout-page #stripeExpressCheckoutContainer {
    margin: 0 !important;
    background: transparent !important;
}
#order-standard_cart.checkout-page .stripe-ece-separator {
    color: rgba(255,255,255,0.35) !important;
    margin: 18px 0 4px !important;
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}
#order-standard_cart.checkout-page .stripe-ece-separator::before,
#order-standard_cart.checkout-page .stripe-ece-separator::after {
    border-bottom-color: rgba(255,255,255,0.12) !important;
}

/* ECE validation overlay */
#order-standard_cart.checkout-page .stripe-ece-validation-wrap {
    position: relative !important;
    min-height: 44px !important;
}
#order-standard_cart.checkout-page .stripe-ece-validation-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 10 !important;
    background: transparent !important;
    cursor: pointer !important;
}
#order-standard_cart.checkout-page .stripe-ece-validation-overlay .ece-toast {
    display: none;
    position: absolute !important;
    bottom: calc(100% + 8px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
    background: #18181b !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    font-size: 0.75rem !important;
    color: #fca5a5 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
    pointer-events: none !important;
}
#order-standard_cart.checkout-page .ece-toast.ece-toast-visible {
    display: block !important;
}
#order-standard_cart.checkout-page .stripe-ece-validation-overlay.ece-unlocked {
    pointer-events: none !important;
}
#order-standard_cart.checkout-page .stripe-ece-validation-overlay.ece-unlocked .ece-toast {
    display: none !important;
}
#order-standard_cart.checkout-page .ece-pw-error,
#order-standard_cart.checkout-page .ece-pw-error.input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* ── Password strength meter ─────────────────────────────── */
#order-standard_cart.checkout-page .password-strength-meter .progress,
#order-standard_cart.checkout-page .progress {
    height: 4px !important;
    background: #3f3f46 !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    margin: 0 !important;
    box-shadow: none !important;
}
#order-standard_cart.checkout-page .password-strength-meter .progress-bar,
#order-standard_cart.checkout-page .progress-bar {
    border-radius: 9999px !important;
    transition: width 0.3s !important;
}

/* ── Login modal ─────────────────────────────────────────── */
#order-standard_cart.checkout-page #loginModal.modal {
    background: rgba(0, 0, 0, 0.75) !important;
}
#order-standard_cart.checkout-page #loginModal.modal.in {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#order-standard_cart.checkout-page #loginModal .modal-dialog {
    margin: 0 !important;
    width: 420px !important;
    max-width: 90vw !important;
}
#order-standard_cart.checkout-page .checkout-login-modal {
    background: rgba(39,39,42,0.95) !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 16px !important;
}
#order-standard_cart.checkout-page .checkout-login-modal .modal-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(63,63,70,0.40) !important;
    padding: 16px 20px !important;
    border-radius: 16px 16px 0 0 !important;
    text-align: left !important;
}
#order-standard_cart.checkout-page .checkout-login-modal .modal-header .modal-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #fff !important;
}
#order-standard_cart.checkout-page .checkout-login-modal .modal-header .close {
    color: #71717a !important;
    text-shadow: none !important;
    opacity: 1 !important;
}
#order-standard_cart.checkout-page .checkout-login-modal .modal-body {
    padding: 20px !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
}
#order-standard_cart.checkout-page .checkout-login-modal .modal-footer {
    text-align: left !important;
    border: none !important;
}

/* Login modal inputs */
#order-standard_cart.checkout-page .checkout-login-modal .input,
#order-standard_cart.checkout-page .checkout-login-modal input.input {
    width: 100% !important;
    background: rgba(39,39,42,0.60) !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-size: 0.875rem !important;
    color: #f4f4f5 !important;
}

/* ── Utility ─────────────────────────────────────────────── */
#order-standard_cart.checkout-page .w-hidden {
    display: none !important;
}

/* ── Sub-heading (hide WHMCS default if it leaks through) ── */
#order-standard_cart.checkout-page .sub-heading {
    display: none !important;
}

/* ── Field container reset ───────────────────────────────── */
#order-standard_cart.checkout-page .field-container {
    margin: 0 !important;
}

/* ── Scrollbar ───────────────────────────────────────────── */
#order-standard_cart.checkout-page ::-webkit-scrollbar              { width: 6px; height: 6px; }
#order-standard_cart.checkout-page ::-webkit-scrollbar-track        { background: #18181b; }
#order-standard_cart.checkout-page ::-webkit-scrollbar-thumb        { background: #3f3f46; border-radius: 3px; }
#order-standard_cart.checkout-page ::-webkit-scrollbar-thumb:hover  { background: #52525b; }

/* ── Mobile responsive ───────────────────────────────────── */
@media (max-width: 767px) {
    #order-standard_cart.checkout-page .checkout-wrap {
        padding: 16px 12px 40px !important;
    }
    #order-standard_cart.checkout-page .step-tabs {
        overflow-x: auto !important;
    }
}

/* ── Color utility classes ───────────────────────────────── */
#order-standard_cart.checkout-page .icon-green { color: #22c55e !important; }
#order-standard_cart.checkout-page .icon-blue  { color: #60a5fa !important; }

/* ── Gateway errors ──────────────────────────────────────── */
#order-standard_cart.checkout-page .gateway-errors {
    margin-top: 12px !important;
}

/* ── CAPTCHA container ───────────────────────────────────── */
#order-standard_cart.checkout-page .captcha-container .form-control {
    background: rgba(39,39,42,0.60) !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 12px !important;
    color: #f4f4f5 !important;
}

/* ── intl-tel-input (phone country code dropdown) ────────── */
#order-standard_cart.checkout-page .intl-tel-input,
#order-standard_cart.checkout-page .iti {
    width: 100% !important;
    display: block !important;
    position: relative !important;
    /* No z-index here — lets .country-list sit in the page stacking context at z-index:9999 */
}
#order-standard_cart.checkout-page .intl-tel-input .input,
#order-standard_cart.checkout-page .intl-tel-input input,
#order-standard_cart.checkout-page .iti .input,
#order-standard_cart.checkout-page .iti input {
    width: 100% !important;
    padding-left: 5.2rem !important;
}
#order-standard_cart.checkout-page .intl-tel-input .selected-flag,
#order-standard_cart.checkout-page .iti .selected-flag {
    background: transparent !important;
    border: none !important;
    height: 100% !important;
    padding: 0 0 0 12px !important;
}
#order-standard_cart.checkout-page .intl-tel-input .flag-container,
#order-standard_cart.checkout-page .iti .flag-container {
    height: 100% !important;
}
#order-standard_cart.checkout-page .intl-tel-input .country-list,
#order-standard_cart.checkout-page .iti .country-list {
    background: #27272a !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 12px !important;
    color: #f4f4f5 !important;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.5) !important;
    max-height: 200px !important;
    z-index: 9999 !important;
    top: auto !important;
    bottom: 100% !important;
    margin-bottom: 4px !important;
}
#order-standard_cart.checkout-page .intl-tel-input .country-list .country,
#order-standard_cart.checkout-page .iti .country-list .country {
    padding: 8px 12px !important;
    color: #d4d4d8 !important;
}
#order-standard_cart.checkout-page .intl-tel-input .country-list .country:hover,
#order-standard_cart.checkout-page .intl-tel-input .country-list .country.highlight,
#order-standard_cart.checkout-page .iti .country-list .country:hover,
#order-standard_cart.checkout-page .iti .country-list .country.highlight {
    background: rgba(0,130,255,0.15) !important;
    color: #fff !important;
}
#order-standard_cart.checkout-page .intl-tel-input .country-list .divider,
#order-standard_cart.checkout-page .iti .country-list .divider {
    border-bottom-color: #3f3f46 !important;
}
#order-standard_cart.checkout-page .intl-tel-input .selected-dial-code,
#order-standard_cart.checkout-page .iti .selected-dial-code {
    color: #a1a1aa !important;
}
#order-standard_cart.checkout-page .intl-tel-input .iti-arrow,
#order-standard_cart.checkout-page .iti .iti-arrow {
    border-top-color: #71717a !important;
}

/* ── State dropdown (generated by StatesDropdown.js) ─────── */
/* The JS creates select#stateselect with the original input's classes */
#order-standard_cart.checkout-page select#stateselect,
#order-standard_cart.checkout-page select.input {
    width: 100% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: rgba(39,39,42,0.60) !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 12px !important;
    padding: 10px 40px 10px 16px !important;
    font-size: 0.875rem !important;
    color: #f4f4f5 !important;
    outline: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    box-shadow: none !important;
    display: block;
    height: auto !important;
    line-height: 1.5 !important;
}
#order-standard_cart.checkout-page select#stateselect:focus,
#order-standard_cart.checkout-page select.input:focus {
    border-color: rgba(0,130,255,0.60) !important;
}
#order-standard_cart.checkout-page select#stateselect option,
#order-standard_cart.checkout-page select.input option {
    background: #18181b !important;
    color: #f4f4f5 !important;
}

/* ── CC input container: consistent card padding ─────────── */
#order-standard_cart.checkout-page .cc-input-container .card {
    padding: 16px !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#order-standard_cart.checkout-page .cc-input-container .card .form-grid {
    gap: 12px !important;
}
/* Ensure new card info section spacing */
#order-standard_cart.checkout-page #newCardInfo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#order-standard_cart.checkout-page #newCardSaveSettings {
    margin-top: 4px !important;
}
/* Existing card info spacing */
#order-standard_cart.checkout-page #existingCardInfo {
    padding: 0 !important;
}
/* field-error-msg hidden by default, shown by JS */
#order-standard_cart.checkout-page .field-error-msg {
    display: none;
}
#order-standard_cart.checkout-page .field-error-msg.show,
#order-standard_cart.checkout-page .has-error .field-error-msg {
    display: block !important;
}

/* ── PayPal / Remote Gateway Input ────────────────────────────────── */
#paymentGatewayInput {
    margin-top: 12px;
}
#paymentGatewayInput .btn {
    width: 100%;
    background: rgba(39,39,42,0.60);
    border: 1px solid rgba(63,63,70,0.50);
    border-radius: 6px;
    color: #f4f4f5;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}
#paymentGatewayInput .btn:hover {
    border-color: rgba(0,130,255,0.50);
    background: rgba(0,130,255,0.15);
    color: #ffffff;
}
#paymentGatewayInput .panel,
#paymentGatewayInput .card {
    background: rgba(39,39,42,0.60) !important;
    border: 1px solid rgba(63,63,70,0.50) !important;
    border-radius: 6px !important;
    color: #f4f4f5 !important;
}
#paymentGatewayInput label {
    color: #a1a1aa;
}
#paymentGatewayInput .text-muted {
    color: #71717a !important;
}

/* ── Fix PayPal payment form light backgrounds ───────────────────── */
#frmCheckout.paypal_ppcpv-payment-form #creditCardInputFields ul,
#frmPayment.paypal_ppcpv-payment-form .paymethod-info:not([data-paymethod-id]) {
    border: none !important;
    width: 100% !important;
}
.paypal_ppcpv-payment-form .selected {
    background-color: transparent !important;
}
#frmCheckout.paypal_ppcpv-payment-form #creditCardInputFields .paymethod-info,
#frmPayment.paypal_ppcpv-payment-form .paymethod-info[data-paymethod-id],
#frmCheckout.paypal_ppcpv-payment-form #creditCardInputFields .paymethod-info:nth-child(5n+1),
#frmPayment.paypal_ppcpv-payment-form .paymethod-info[data-paymethod-id]:nth-child(5n+1),
#frmCheckout.paypal_ppcpv-payment-form #creditCardInputFields .paymethod-info:nth-child(5n+4),
#frmPayment.paypal_ppcpv-payment-form .paymethod-info[data-paymethod-id]:nth-child(5n+4) {
    border: none !important;
}
#frmCheckout.paypal_ppcpv-payment-form #creditCardInputFields .existing-cc-grid,
#frmPayment.paypal_ppcpv-payment-form .three-column-grid {
    width: 100% !important;
}
