/* 
 * WCIGR & Swift Checkout Polish - Titanium OS
 * Glassmorphism 2.0 + Mobile Native Feel
 */

:root {
    --swift-accent: #075e54; /* WhatsApp Deep Green / Branded Accent */
    --swift-glass: rgba(255, 255, 255, 0.7);
    --swift-blur: 20px;
}

/* Swift Checkout Layout */
.swift-checkout-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 10px;
}

.swift-checkout-section {
    margin-bottom: 24px;
}

.swift-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.swift-step-badge {
    background: var(--titanium-accent);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 150, 255, 0.3);
}

.swift-section-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--titanium-text-main);
}

.glass-panel {
    background: var(--swift-glass);
    backdrop-filter: blur(var(--swift-blur));
    -webkit-backdrop-filter: blur(var(--swift-blur));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Field Polish */
.swift-checkout-form .form-row {
    margin-bottom: 15px;
}

.swift-checkout-form input[type="text"],
.swift-checkout-form input[type="tel"],
.swift-checkout-form input[type="email"],
.swift-checkout-form textarea {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    transition: all 0.3s ease;
}

.swift-checkout-form input:focus {
    border-color: var(--titanium-accent) !important;
    box-shadow: 0 0 0 4px rgba(0, 150, 255, 0.1) !important;
    outline: none;
}

/* Order Review Simplification */
.swift-order-review-table {
    padding: 5px 0;
}

.swift-review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.swift-item-name {
    font-weight: 600;
    color: var(--titanium-text-main);
}

.swift-review-totals {
    margin-top: 20px;
}

.swift-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.swift-grand-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--swift-accent);
    border-top: 2px solid rgba(0, 0, 0, 0.05);
    margin-top: 15px;
    padding-top: 15px;
}

/* WCIGR Auth Polish */
.wcigr-auth-modal__panel {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 30px !important;
}

.wcigr-auth-strip {
    background: var(--swift-glass) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 15px !important;
    margin-bottom: 20px !important;
}

.wcigr-auth-btn--google {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    color: #333 !important;
}

/* Real-time Tracking Progress Bar */
.wcigr-track-steps {
    display: flex;
    list-style: none;
    padding: 20px 0 !important;
    margin: 0 !important;
    justify-content: space-between;
    position: relative;
}

.wcigr-track-steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #eef2f6;
    z-index: 1;
}

.wcigr-track-steps li {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.wcigr-track-steps li::before {
    content: '';
    width: 14px;
    height: 14px;
    background: white;
    border: 3px solid #cbd5e1;
    border-radius: 50%;
    display: block;
    margin: 0 auto 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wcigr-track-steps li span {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Active State Colors */
[data-step="placed"] li:nth-child(1)::before,
[data-step="packed"] li:nth-child(-n+2)::before,
[data-step="in_transit"] li:nth-child(-n+3)::before,
[data-step="out_for_delivery"] li:nth-child(-n+4)::before,
[data-step="delivered"] li:nth-child(-n+5)::before {
    border-color: var(--swift-accent);
    background: var(--swift-accent);
    box-shadow: 0 0 0 4px rgba(7, 94, 84, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .swift-checkout-grid {
        display: block;
    }
    
    .swift-section-content {
        padding: 18px;
    }
    
    .swift-grand-total {
        font-size: 1.25rem;
    }
}
