﻿/* ═══════════════════════════════════════════════════════════════════════
   stripe-payments.css — Global (non-scoped) styles for Stripe payment UIs
   Covers: AddOnPurchaseModal (WASM) + PackCheckoutPage stored-card view (SSR)
   NOT scoped to avoid Blazor CSS isolation breaking Stripe iframe elements.
   ═══════════════════════════════════════════════════════════════════════ */

/* ====================================================
   AddOnPurchaseModal
   ==================================================== */

.addon-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
}

.addon-modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
}

.addon-modal-card {
    pointer-events: auto;
    background: #FAFAFA;
    border: 1px solid #7B7B7B;
    border-radius: 8px;
    width: 100%;
    max-width: 358px;
    padding: 23px;
    box-shadow: 0 20px 20px -4px rgba(0, 0, 0, 0.08), 0 8px 8px -2px rgba(0, 0, 0, 0.04);
    font-family: 'Nunito Sans', sans-serif;
    color: #000000;
}

.addon-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.addon-modal-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
    color: #000000;
    max-width: 250px;
    text-transform: none;
}

.addon-modal-close {
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 20px;
    line-height: 1;
}

    .addon-modal-close:hover {
        opacity: 0.7;
    }

.addon-modal-summary {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    margin: 0;
    color: #000000;
    margin-bottom: 16px;
}

    .addon-modal-summary strong {
        font-weight: 700;
    }

.addon-modal-divider {
    width: 100%;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.addon-modal-card-select-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.addon-modal-card-select-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 12px;
}

.addon-modal-card-select-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #262626;
    line-height: 1.2;
}

.addon-modal-card-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #000;
    border-radius: 24px;
    padding: 4px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #000;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

    .addon-modal-card-add-btn:hover {
        background-color: #B7FBDC;
        color: #000;
        border-color: #000;
    }

.addon-modal-card-dropdown {
    position: relative;
}

.addon-modal-card-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    min-height: 40px;
    background: #fff;
    border: 1px solid #7B7B7B;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s;
    gap: 12px;
    box-sizing: border-box;
}

    .addon-modal-card-trigger:hover {
        border-color: #434343;
    }

    .addon-modal-card-trigger[aria-expanded="true"],
    .addon-modal-card-trigger[aria-expanded="True"] {
        outline: 2px solid #077574;
        outline-offset: 4px;
    }

.addon-modal-card-trigger-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.addon-modal-card-icon {
    display: flex;
    align-items: center;
    color: #262626;
}

.addon-modal-card-display {
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.addon-modal-card-chevron {
    color: #666;
    transition: transform 0.2s;
}

.addon-modal-card-chevron--open {
    transform: rotate(180deg);
}

.addon-modal-card-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 10;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.addon-modal-card-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    transition: background 0.15s;
    text-align: left;
}

    .addon-modal-card-option:last-child {
        border-bottom: none;
    }

    .addon-modal-card-option:hover {
        background: #EDFDF4;
    }

.addon-modal-card-option--selected {
    background: #E8FFF4;
    font-weight: 400;
}

.addon-modal-cvv-block {
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.addon-modal-cvv-label {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    margin: 0;
    color: #262626;
}

.addon-modal-cvv-wrapper {
    position: relative;
}

.addon-modal-cvv-input {
    width: 100%;
    border: 1px solid #7b7b7b;
    border-radius: 4px;
    padding: 8px 44px 8px 12px;
    min-height: 40px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    color: #000000;
    background: #FFFFFF;
    box-sizing: border-box;
}

    .addon-modal-cvv-input:focus {
        outline: none;
        border-color: #32E696;
        box-shadow: 0 0 0 2px rgba(50, 230, 150, 0.2);
    }

.addon-modal-cvv-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #262626;
    cursor: pointer;
}

    .addon-modal-cvv-toggle:hover {
        opacity: 0.72;
    }

.addon-modal-cvv-element-host {
    display: flex;
    align-items: center;
}

    .addon-modal-cvv-element-host iframe {
        height: 24px !important;
        width: 100% !important;
        min-width: 0;
    }

.addon-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    width: 100%;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.addon-modal-btn {
    width: 100%;
    border-radius: 4px;
    padding: 8px;
    min-height: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: opacity 0.15s ease-in-out, background-color 0.15s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.addon-modal-btn-primary {
    background: #32E696;
    color: #000000;
    border: 1px solid #32E696;
}

    .addon-modal-btn-primary:hover:not(:disabled) {
        background: #29CD83;
        border-color: #29CD83;
    }

    .addon-modal-btn-primary:disabled {
        background: #B7F2D5;
        border-color: #B7F2D5;
        color: #000000;
        cursor: not-allowed;
        opacity: 0.7;
    }

.addon-modal-btn-secondary {
    background: #FFFFFF;
    color: #000000;
    border: 1px solid #000000;
}

    .addon-modal-btn-secondary:hover:not(:disabled) {
        background: #FAFAFA;
    }

    .addon-modal-btn-secondary:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

.addon-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    gap: 12px;
}

.addon-modal-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #32E696;
    border-radius: 50%;
    animation: addon-modal-spin 0.8s linear infinite;
}

.addon-modal-spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000000;
    border-radius: 50%;
    animation: addon-modal-spin 0.8s linear infinite;
}

@keyframes addon-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

.addon-modal-loading-text {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    color: #7b7b7b;
}

.addon-modal-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
}

.addon-modal-no-card {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    background: #FEE2E2;
    color: #991B1B;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    text-align: center;
}

/* Quantity step */
.addon-modal-quantity-prompt {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: #262626;
}

.addon-modal-quantity-description {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 16px;
}

    .addon-modal-quantity-description strong {
        font-weight: 700;
    }

.addon-modal-quantity-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.addon-modal-quantity-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 120px;
    margin-top: 8px;
}

.addon-modal-quantity-input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #7B7B7B;
    border-radius: 4px;
    background: #FFFFFF;
    box-sizing: border-box;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #5F5F5F;
}

    .addon-modal-quantity-input:focus {
        outline: none;
        border-color: #32E696;
        box-shadow: 0 0 0 2px rgba(50, 230, 150, 0.2);
    }

    .addon-modal-quantity-input::-webkit-outer-spin-button,
    .addon-modal-quantity-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .addon-modal-quantity-input[type=number] {
        -moz-appearance: textfield;
        appearance: textfield;
    }

.addon-modal-quantity-helper {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #1952A6;
    margin-top: 8px;
    margin-bottom: 16px;
}

    .addon-modal-quantity-helper strong {
        font-weight: 700;
    }

.addon-modal-quantity-helper-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1952A6;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Add-card inline form */
.addon-modal-addcard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.addon-modal-addcard-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.addon-modal-addcard-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #262626;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    flex-shrink: 0;
}

    .addon-modal-addcard-back:hover {
        background: #f5f5f5;
    }

.addon-modal-addcard-title {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #262626;
}

.addon-modal-addcard-row2 {
    display: flex;
    gap: 12px;
}

    .addon-modal-addcard-row2 .addon-modal-form-field {
        flex: 1;
    }

.addon-modal-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.addon-modal-form-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #262626;
    margin: 0;
}

.addon-modal-form-input {
    border: 1px solid #7B7B7B;
    border-radius: 4px;
    padding: 8px 12px;
    min-height: 40px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    color: #262626;
    background: #FFFFFF;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

    .addon-modal-form-input:focus {
        border-color: #32E696;
        box-shadow: 0 0 0 2px rgba(50, 230, 150, 0.18);
    }

.addon-modal-stripe-card-host {
    border: 1px solid #7B7B7B;
    border-radius: 4px;
    padding: 10px 12px;
    min-height: 40px;
    background: #FFFFFF;
    width: 100%;
    box-sizing: border-box;
}

.addon-modal-stripe-element-host {
    border: 1px solid #7B7B7B;
    border-radius: 4px;
    padding: 8px 12px;
    min-height: 40px;
    background: #FFFFFF;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    color: #262626;
}

/* Hide Stripe Link "Usar Link" button inside card number element */
#addon-card-number-element iframe[name*="link"],
#addon-card-number-element [data-link-button],
#addon-card-number-element .LinkButton,
#addon-card-number-element .p-LinkButton {
    display: none !important;
    visibility: hidden !important;
}

/* Expiry selects row */
.addon-modal-expiry-row {
    display: flex;
    gap: 24px;
}

.addon-modal-select-wrapper {
    position: relative;
    flex: 1;
}

.addon-modal-form-select {
    width: 100%;
    border: 1px solid #7B7B7B;
    border-radius: 4px;
    padding: 8px 36px 8px 12px;
    min-height: 40px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    color: #262626;
    background: #FFFFFF;
    outline: none;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

    .addon-modal-form-select:focus {
        border-color: #32E696;
        box-shadow: 0 0 0 2px rgba(50, 230, 150, 0.18);
    }

.addon-modal-select-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #262626;
    display: flex;
    align-items: center;
}

/* CVC wrapper with toggle icon */
.addon-modal-cvc-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.addon-modal-form-input--with-icon {
    padding-right: 44px;
}

.addon-modal-cvc-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .addon-modal-cvc-toggle:hover {
        opacity: 0.7;
    }

.addon-modal-addcard-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #F5F5F5;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.addon-modal-addcard-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.addon-modal-addcard-check-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #000000;
}

.addon-modal-addcard-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.addon-modal-addcard-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #262626;
}

.addon-modal-addcard-input {
    border: 1px solid #7B7B7B;
    border-radius: 4px;
    padding: 8px 12px;
    min-height: 40px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    color: #262626;
    background: #FFFFFF;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

    .addon-modal-addcard-input:focus {
        border-color: #32E696;
        box-shadow: 0 0 0 2px rgba(50, 230, 150, 0.18);
    }

/* PCI Vault PCD form inside addon modal */
#addon-pcd-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#addon-pcd-form .card-form__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#addon-pcd-form .card-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#addon-pcd-form .card-input__label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #262626;
    display: block;
}

#addon-pcd-form .card-input__input {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #000000;
    background: #FFFFFF;
    border: 1px solid #7B7B7B;
    border-radius: 4px;
    padding: 8px 12px;
    min-height: 40px;
    box-sizing: border-box;
    width: 100%;
    outline: none;
    transition: border-color 0.15s;
}

#addon-pcd-form .card-input__input::placeholder {
    color: #000000;
}

#addon-pcd-form .card-input__input:focus {
    border-color: #32E696;
    box-shadow: 0 0 0 2px rgba(50, 230, 150, 0.18);
}

#addon-pcd-form select.card-input__input {
    appearance: auto;
    cursor: pointer;
}

#addon-pcd-form .card-form__group {
    display: flex;
    gap: 24px;
}

/* Checkbox inside PCD form */
.addon-modal-pcd-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F5F5F5;
    border-radius: 4px;
    padding: 8px;
}

.addon-modal-pcd-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #000000;
    cursor: pointer;
    flex-shrink: 0;
}

.addon-modal-pcd-checkbox label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

/* Button group inside PCD form */
.addon-modal-pcd-button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

/* Hide the original PCD form submit button (we create a styled clone) */
#addon-pcd-form > .card-form__inner > button[type="submit"],
#addon-pcd-form > .card-form__inner > .card-form__button {
    display: none;
}


/* ====================================================
   PackCheckoutPage — Stored Card View (SSR)
   ==================================================== */

/* Toast Notifications */
.checkout-toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 440px;
    padding: 0 16px;
    pointer-events: none;
}

.checkout-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-16px);
    animation: checkout-toast-in 0.3s ease forwards;
}

.checkout-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.checkout-toast--exiting {
    animation: checkout-toast-out 0.25s ease forwards;
}

.checkout-toast--error {
    border-left: 4px solid #DC2626;
}

.checkout-toast--success {
    border-left: 4px solid #08CC8B;
}

.checkout-toast-icon {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    margin-top: 1px;
}

.checkout-toast-icon--error {
    color: #DC2626;
}

.checkout-toast-icon--success {
    color: #08CC8B;
}

.checkout-toast-content {
    flex: 1;
    min-width: 0;
}

.checkout-toast-title {
    font-family: var(--font-family-Nunito-Sans, 'Nunito Sans'), sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #262626;
    margin: 0 0 2px;
    line-height: 1.3;
}

.checkout-toast-description {
    font-family: var(--font-family-Nunito-Sans, 'Nunito Sans'), sans-serif;
    font-size: 13px;
    color: #5F5F5F;
    margin: 0;
    line-height: 1.4;
}

.checkout-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #9D9D9D;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

    .checkout-toast-close:hover {
        color: #5F5F5F;
    }

@keyframes checkout-toast-in {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes checkout-toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-16px);
    }
}

/* Page layout */
.checkout-page {
    display: flex;
    justify-content: center;
    padding: 80px 24px;
    background: #fafafa;
}

.checkout-content {
    display: flex;
    gap: 32px;
    width: 720px;
    align-items: flex-start;
}

.checkout-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.checkout-error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    gap: 16px;
    padding: 24px;
}

.checkout-back-link {
    color: #32E696;
    text-decoration: none;
    font-weight: 600;
}

/* Summary */
.checkout-summary {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 24px 0;
}

.checkout-summary-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.checkout-summary-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #000;
    margin: 0;
}

.checkout-pack-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-pack-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-pack-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    margin: 0;
}

.checkout-brand-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #000;
    margin: 0;
}

    .checkout-brand-name strong {
        font-weight: 700;
    }

.checkout-price-block {
    display: flex;
    gap: 8px;
    align-items: center;
}

.checkout-price-amount {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    letter-spacing: -0.5px;
}

.checkout-price-period {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
}

.checkout-disclaimers {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #555;
    margin-top: 40px;
}

    .checkout-disclaimers p {
        margin: 0 0 8px 0;
    }

/* Card form */
.checkout-card-form {
    width: 360px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #000;
    margin: 0;
}

.checkout-card-form--hidden {
    display: none !important;
}

/* Save card checkbox */
.checkout-save-card-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin: 0;
    border-radius: 4px;
    background: #F5F5F5;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.checkout-save-card-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.checkout-save-card-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

    .checkout-save-card-check svg {
        width: 24px;
        height: 24px;
    }

.checkout-save-card-text {
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
}

/* Processing spinner */
.checkout-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
}

.processing-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #32E696;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.processing-text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Stored card view */
.checkout-stored-card-view {
    background: var(--color-surface-app, #FAFAFA);
    border-color: var(--border-inputs, #7B7B7B);
    gap: 16px;
    box-shadow: 0px 8px 8px -2px rgba(0, 0, 0, 0.04), 0px 20px 20px -4px rgba(0, 0, 0, 0.08);
}

.stored-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stored-card-title {
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.stored-card-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

    .stored-card-close:hover {
        background: #f5f5f5;
    }

.stored-card-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
    margin: 0;
}

    .stored-card-subtitle strong {
        font-weight: 700;
    }

.stored-card-divider {
    border: none;
    border-top: 1px solid var(--border-containers, #e5e7eb);
    margin: 0;
}

.stored-card-select-section {
    display: flex;
    flex-direction: column;
}

.stored-card-select-header {
    display: flex;
    align-items: end;
    margin-bottom: 1rem;
    justify-content: space-between;
}

.stored-card-select-label {
    font-size: 16px;
    font-weight: 700;
    color: #262626;
    line-height: 1.2;
}

.stored-card-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #000;
    border-radius: 24px;
    padding: 4px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #000;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

    .stored-card-add-btn:hover {
        background-color: #B7FBDC;
        color: #000;
        border-color: #000;
    }

    .stored-card-add-btn:active {
        background-color: #7FF6C1;
        color: #000;
        border-color: #000;
    }

/* Card dropdown */
.stored-card-dropdown {
    position: relative;
}

.stored-card-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    min-height: 40px;
    background: #fff;
    border: 1px solid var(--border-inputs, #7B7B7B);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s;
    gap: 12px;
    box-sizing: border-box;
}

    .stored-card-trigger:hover {
        border-color: #434343;
    }

    .stored-card-trigger[aria-expanded="true"] {
        border-color: #077574;
        outline: 2px solid #077574;
        outline-offset: 3px;
    }

        .stored-card-trigger[aria-expanded="true"] .stored-card-chevron {
            transform: rotate(180deg);
        }

.stored-card-trigger-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stored-card-icon {
    display: flex;
    align-items: center;
    color: #262626;
}

.stored-card-display {
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.stored-card-chevron {
    color: #666;
    transition: transform 0.2s;
}

.stored-card-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
    z-index: 10;
    overflow: hidden;
}

.stored-card-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    transition: background 0.15s;
    text-align: left;
}

    .stored-card-option:last-child {
        border-bottom: none;
    }

    .stored-card-option:hover {
        background: #EDFDF4;
    }

.stored-card-option--selected {
    background: #E8FFF4;
    font-weight: 400;
}

.stored-card-option-icon {
    display: flex;
    align-items: center;
    color: #262626;
}

/* CVV block */
.stored-card-cvv-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 120px;
    max-width: 120px;
    flex-shrink: 0;
    align-self: flex-start;
}

.stored-card-cvv-label {
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #262626;
}

.stored-card-cvv-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border-inputs, #7B7B7B);
    border-radius: 4px;
    min-height: 40px;
    padding: 8px 12px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

    .stored-card-cvv-wrapper:focus-within {
        border-color: #32E696;
        box-shadow: 0 0 0 1px #32E696;
    }

.stored-card-cvv-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0;
    min-height: unset;
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    line-height: 1.2;
    color: #000;
    background: transparent;
    width: 100%;
    min-width: 0;
}

.stored-card-cvv-element-host {
    display: flex;
    align-items: center;
}

    .stored-card-cvv-element-host iframe {
        height: 24px !important;
    }

/* Actions */
.stored-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-containers, #e5e7eb);
    padding-top: 16px;
}

.stored-card-pay-btn {
    width: 100%;
    background-color: var(--color-primary, #32E696);
    color: var(--color-base-black, #000);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, filter 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

    .stored-card-pay-btn:hover {
        background: #0DAC66;
    }

    .stored-card-pay-btn:active {
        box-shadow: none;
        color: #000;
        background: #0E8752;
        outline: none;
    }

    .stored-card-pay-btn:focus {
        box-shadow: none;
        background: #32E696;
        border-color: #077574;
        border-radius: 8px;
        outline: 2px solid #0E8752;
        outline-offset: 2px;
    }

    .stored-card-pay-btn:disabled {
        opacity: 0.5;
        background-color: var(--color-primary, #32E696);
        color: var(--color-base-black, #000);
        cursor: not-allowed;
    }

.stored-card-cancel-btn {
    width: 100%;
    background-color: transparent;
    color: var(--color-base-black, #000);
    border: 1px solid var(--color-base-black, #000);
    border-radius: 4px;
    padding: 8px 16px;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

    .stored-card-cancel-btn:hover {
        background-color: #B7FBDC;
        color: var(--color-base-black, #000);
        border-color: var(--color-base-black, #000);
    }

    .stored-card-cancel-btn:active {
        background-color: #7FF6C1;
        color: var(--color-base-black, #000);
        border-color: var(--color-base-black, #000);
        outline: none;
    }

    .stored-card-cancel-btn:focus {
        background-color: transparent;
        color: var(--color-base-black, #000);
        border-color: var(--color-base-black, #000);
        box-shadow: none;
        outline: 2px solid var(--color-brand-primary-700, #0E8752);
        outline-offset: 4px;
    }

/* ══════════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 1400px) {
    .checkout-page {
        padding: 64px 24px;
    }

    .checkout-content {
        max-width: 720px;
    }
}

@media (max-width: 1024px) {
    .checkout-page {
        padding: 48px 24px;
    }

    .checkout-content {
        max-width: 100%;
        gap: 24px;
    }

    .checkout-summary {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .checkout-page {
        padding: 64px 16px;
    }

    .checkout-content {
        flex-direction: column;
        width: 342px;
        gap: 24px;
    }

    .checkout-card-form {
        width: 100%;
    }

    .checkout-summary {
        min-height: auto;
        padding-top: 0;
        padding-bottom: 0;
    }

    .checkout-price-amount {
        font-size: 36px;
    }

    .checkout-disclaimers {
        margin-top: 24px;
    }
}
