/* ============================================
   SM TENIS - Checkout Extras
   ============================================ */

/* Metodo de pagamento */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.payment-method {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-input);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.payment-method:hover {
    border-color: var(--border-strong);
}

.payment-method.active {
    border-color: var(--primary-500);
    background: rgba(0, 128, 255, 0.05);
    box-shadow: 0 0 12px rgba(0, 128, 255, 0.15);
}

.payment-method__radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-full);
    flex-shrink: 0;
    position: relative;
    transition: all var(--duration-fast) var(--ease-out);
}

.payment-method.active .payment-method__radio {
    border-color: var(--primary-500);
}

.payment-method.active .payment-method__radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: var(--primary-500);
    border-radius: var(--radius-full);
    box-shadow: 0 0 6px rgba(0, 128, 255, 0.4);
}

.payment-method__info {
    flex: 1;
}

.payment-method__name {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
}

.payment-method__desc {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
}

.payment-method__badge {
    flex-shrink: 0;
}

/* Aviso de seguranca */
.checkout-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-4);
}

.checkout-security svg {
    width: 14px;
    height: 14px;
    color: var(--success-500);
    flex-shrink: 0;
}

/* ============================================
   REVIEW SECTION (Step 2)
   ============================================ */
.checkout-form__review {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

/* ============================================
   INPUT ERROR STATE
   ============================================ */
.form-input--error {
    border-color: var(--danger-500) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

/* ============================================
   ORDER SUCCESS PAGE
   ============================================ */
.order-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-8) 0;
    max-width: 600px;
    margin: 0 auto;
}

.order-success__icon {
    margin-bottom: var(--space-5);
    animation: order-bounce 0.6s var(--ease-spring);
}

@keyframes order-bounce {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.order-success__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-8) 0;
    color: var(--text-secondary);
}

.order-success__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.order-success__number {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--accent-400);
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}

.order-success__status-bar {
    width: 100%;
    margin-bottom: var(--space-6);
}

.order-success__info {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
}

.order-success__info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.order-success__info-row:last-child {
    border-bottom: none;
}

.order-success__info-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.order-success__info-value {
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: 500;
}

/* Items */
.order-success__items {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
}

.order-success__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ============================================
   ORDER TIMELINE
   ============================================ */
.order-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: var(--space-4) 0;
}

.order-timeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    min-width: 60px;
}

.order-timeline__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-default);
    transition: all var(--duration-normal);
}

.order-timeline__step--completed .order-timeline__dot {
    background: var(--success-500);
    border-color: var(--success-500);
}

.order-timeline__step--active .order-timeline__dot {
    background: var(--primary-500);
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(0, 128, 255, 0.2);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0, 128, 255, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(0, 128, 255, 0.1); }
}

.order-timeline__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.order-timeline__step--completed .order-timeline__label {
    color: var(--success-500);
}

.order-timeline__step--active .order-timeline__label {
    color: var(--primary-500);
    font-weight: 600;
}

.order-timeline__line {
    flex: 1;
    height: 2px;
    background: var(--border-default);
    margin-top: 7px;
    min-width: 20px;
}

.order-timeline__line--active {
    background: var(--success-500);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Status badges (shared with order page) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge--pending { color: var(--warning-500); background: rgba(245, 158, 11, 0.1); }
.status-badge--paid { color: var(--primary-400); background: rgba(0, 128, 255, 0.1); }
.status-badge--preparing { color: var(--accent-400); background: rgba(0, 212, 255, 0.1); }
.status-badge--shipped { color: #8b5cf6; background: rgba(139, 92, 246, 0.1); }
.status-badge--delivered { color: var(--success-500); background: rgba(34, 197, 94, 0.1); }
.status-badge--cancelled { color: var(--danger-500); background: rgba(239, 68, 68, 0.1); }
.status-badge--refunded { color: var(--text-muted); background: var(--bg-secondary); }
@media (max-width: 480px) {
    .order-success__title {
        font-size: var(--text-xl);
    }

    .order-timeline__label {
        font-size: 8px;
    }

    .order-timeline__step {
        min-width: 45px;
    }
}