:root {
    --spx-primary: #12A3A3;
    --spx-green: #07A843;
    --spx-orange: #F47B20;
    --spx-border: #E2E8EC;
    --spx-muted: #6A7282;
    --spx-dark: #0f172a;
    --spx-font: inherit;
}

.spx-checkout-wrapper {
    background-color: #F5F7F8;
    direction: ltr;
    text-align: left;
    font-family: var(--spx-font);
    color: var(--spx-dark);
}

.spx-stepper-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 15px;
}

.spx-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.spx-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    min-width: 70px;
}

.spx-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #F8FAFC;
    border: 2px solid var(--spx-border);
    color: var(--spx-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.spx-step.completed .spx-step-circle {
    background-color: var(--spx-primary);
    border-color: var(--spx-primary);
    color: #ffffff;
    font-size: 0.9rem;
}

.spx-step.active .spx-step-circle {
    background-color: var(--spx-primary);
    border-color: var(--spx-primary);
    color: #ffffff;
}

.spx-step-label {
    font-size: 0.85rem;
    color: var(--spx-muted);
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

.spx-step.completed .spx-step-label,
.spx-step.active .spx-step-label {
    color: var(--spx-dark);
    font-weight: 700;
}

.spx-step-connector {
    flex: 1;
    height: 2px;
    background-color: var(--spx-border);
    margin-top: 18px;
    margin-left: 8px;
    margin-right: 8px;
    transition: background-color 0.3s ease;
}

.spx-step-connector.completed {
    background-color: var(--spx-primary);
}

@media (max-width: 576px) {
    .spx-step-label {
        font-size: 0.75rem;
    }

    .spx-step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .spx-step-connector {
        margin-top: 15px;
        margin-left: 4px;
        margin-right: 4px;
    }
}


/* ===================================================
   Page Header (Back Button & Title)
=================================================== */
.spx-back-btn {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1px solid var(--spx-border);
    border-radius: 12px;
    color: var(--spx-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spx-back-btn:hover {
    border-color: var(--spx-primary);
    color: var(--spx-primary);
}

.spx-header-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--spx-dark);
}

.spx-header-sub {
    font-size: 0.85rem;
    color: var(--spx-muted);
}

/* ===================================================
   Cards & Inputs
=================================================== */
.spx-card {
    background: #FFFFFF;
    border: 1px solid var(--spx-border);
    border-radius: 18px;
}

.spx-card .g-3 {
    --bs-gutter-y: 1rem !important;
    --bs-gutter-x: 1rem !important;
}

.spx-card-icon {
    width: 38px;
    height: 38px;
    background-color: #E8F7F7;
    color: var(--spx-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.spx-card-icon.spx-icon-orange {
    background-color: #FFF3EB;
    color: var(--spx-orange);
}

.spx-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--spx-dark);
}

.spx-form-input,
.spx-form-select {
    width: 100%;
    height: 46px;
    background: #FAFCFD;
    border: 1px solid var(--spx-border);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 0.9rem;
    color: var(--spx-dark);
    outline: none;
    transition: all 0.2s ease;
}

.spx-form-input:focus,
.spx-form-select:focus {
    border-color: var(--spx-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(18, 163, 163, 0.12) !important;
}

/* ===================================================
   Quick Login Banner
=================================================== */
.spx-login-banner {
    background-color: #E8F7F7;
    border: 1px solid #c9eded;
    border-radius: 16px;
}

.spx-banner-icon {
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--spx-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.spx-btn-login-open {
    background: transparent;
    border: 1.5px solid var(--spx-primary);
    color: var(--spx-primary);
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spx-btn-login-open:hover {
    background: var(--spx-primary);
    color: #ffffff;
}

/* ===================================================
   Payment Options
=================================================== */
.spx-payment-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 2px solid var(--spx-border);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.spx-payment-box.active {
    border-color: var(--spx-primary);
    background: #E8F7F7;
}

.spx-radio-input {
    width: 18px;
    height: 18px;
    accent-color: var(--spx-primary);
    cursor: pointer;
}

.spx-payment-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--spx-dark);
}

.spx-payment-desc {
    font-size: 0.8rem;
    color: var(--spx-muted);
}

.spx-payment-badge-icon {
    width: 36px;
    height: 36px;
    background: #F1F5F9;
    color: var(--spx-muted);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.spx-payment-box.active .spx-payment-badge-icon {
    background: var(--spx-primary);
    color: #ffffff;
}

.spx-card-fields-wrapper {
    background: #F8FAFC;
    border: 1px solid var(--spx-border);
    border-radius: 14px;
    padding: 16px;
}

/* ===================================================
   Order Summary Column
=================================================== */
.spx-summary-sticky {
    position: sticky;
    top: 20px;
}

.spx-badge-pill {
    background: #F1F5F9;
    color: var(--spx-muted);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.spx-mini-thumb {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.spx-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spx-mini-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-bottom-right-radius: 6px;
}

.spx-mini-title {
    font-size: 0.85rem;
    color: var(--spx-dark);
}

.spx-mini-price {
    font-size: 0.9rem;
    color: var(--spx-dark);
}

.spx-divider {
    border-top: 1px solid var(--spx-border);
    opacity: 0.8;
}

.spx-divider-dotted {
    border-top: 1px dashed #E2E8EC;
    opacity: 0.4;
}

.spx-free-badge {
    color: var(--spx-green);
    font-weight: 700;
}

.spx-total-label {
    font-size: 1.2rem;
}

.spx-total-val {
    font-size: 1.3rem;
    color: var(--spx-dark);
}

.spx-vat-sub {
    font-size: 0.75rem;
}

.spx-confirm-btn {
    background: var(--spx-orange);
    color: #ffffff;
    border: none;
    height: 52px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(244, 123, 32, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.spx-confirm-btn:hover {
    background: #df6a14;
    transform: translateY(-1px);
}

.spx-terms-text {
    font-size: 0.75rem;
    line-height: 1.5;
}

/* ===================================================
   Auth Modal (Login / Sign Up)
=================================================== */
.spx-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.spx-modal-backdrop.show {
    display: flex;
}

.spx-auth-modal {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: spxModalPop 0.25s ease-out;
}

@keyframes spxModalPop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.spx-modal-header {
    background: #111827;
    position: relative;
    padding: 30px 20px 24px;
}

.spx-modal-logo {
    position: absolute;
    top: 15px;
    left: 20px;
}

.spx-logo-img {
    height: 70px;
    width: auto;
}

#authModalTitle {
    margin-top: 4.5rem;
}

.spx-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.spx-modal-subtitle {
    color: #94A3B8;
    font-size: 0.85rem;
    text-align: left;
}

.spx-forgot-link {
    color: var(--spx-primary);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
}

.spx-btn-teal {
    background: var(--spx-primary);
    color: #ffffff;
    border: none;
    height: 46px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
}

.spx-btn-teal:hover {
    background: #0f8989;
}

.spx-or-divider {
    position: relative;
    text-align: center;
}

.spx-or-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--spx-border);
}

.spx-or-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 10px;
    color: var(--spx-muted);
    font-size: 0.8rem;
}

.spx-btn-google {
    background: #ffffff;
    border: 1px solid var(--spx-border);
    height: 46px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--spx-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.spx-toggle-link {
    color: var(--spx-orange) !important;
    text-decoration: none;
    margin-left: 5px;
}
