/* Checkout Progress UI Styles */
.glowply-checkout-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.checkout-progress-modal {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 480px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.checkout-progress-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(79, 70, 229, 0.08), transparent);
    animation: checkout-shimmer 3s infinite;
}

@keyframes checkout-shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.checkout-progress-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.checkout-progress-header h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.checkout-progress-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

.checkout-progress-steps {
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.checkout-progress-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    position: relative;
    transition: all 0.4s ease;
}

.checkout-progress-step:last-child {
    margin-bottom: 0;
}

.step-indicator {
    flex-shrink: 0;
    position: relative;
    margin-right: 18px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    z-index: 2;
}

.step-inner-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cbd5e0;
    transition: all 0.4s ease;
}

.step-connector {
    position: absolute;
    top: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 35px;
    background: #e2e8f0;
    transition: all 0.4s ease;
}

.step-content {
    flex: 1;
    padding-top: 3px;
}

.step-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    transition: all 0.4s ease;
}

.step-description {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    transition: all 0.4s ease;
}

/* Step States */
.checkout-progress-step.pending .step-circle {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.checkout-progress-step.pending .step-inner-circle {
    background: #e2e8f0;
}

.checkout-progress-step.pending .step-title {
    color: #94a3b8;
}

.checkout-progress-step.pending .step-description {
    color: #cbd5e0;
}

.checkout-progress-step.active .step-circle {
    background: #4f46e5;
    border-color: #4f46e5;
    animation: checkout-pulse 2s infinite;
}

.checkout-progress-step.active .step-inner-circle {
    background: #ffffff;
}

.checkout-progress-step.active .step-title {
    color: #1e293b;
    font-weight: 700;
}

.checkout-progress-step.active .step-description {
    color: #475569;
}

.checkout-progress-step.active .step-connector {
    background: linear-gradient(to bottom, #4f46e5, #e2e8f0);
}

.checkout-progress-step.completed .step-circle {
    background: #10b981;
    border-color: #10b981;
}

.checkout-progress-step.completed .step-inner-circle {
    background: #ffffff;
}

.checkout-progress-step.completed .step-connector {
    background: #10b981;
}

.checkout-progress-step.completed .step-title {
    color: #1e293b;
}

.checkout-progress-step.completed .step-description {
    color: #475569;
}

@keyframes checkout-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(79, 70, 229, 0);
    }
}

.checkout-progress-footer {
    position: relative;
    z-index: 2;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 3px;
    width: 0%;
    transition: width 0.6s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: checkout-loading-shine 1.8s infinite;
}

@keyframes checkout-loading-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    min-width: 32px;
    text-align: right;
}

/* Responsive Design for Checkout Progress UI */
@media (max-width: 768px) {
    .glowply-checkout-progress-overlay {
        padding: 15px;
    }
    
    .checkout-progress-modal {
        padding: 30px 25px;
        max-width: 100%;
        border-radius: 16px;
    }
    
    .checkout-progress-header h2 {
        font-size: 20px;
    }
    
    .checkout-progress-header p {
        font-size: 14px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
    }
    
    .step-inner-circle {
        width: 14px;
        height: 14px;
    }
    
    .step-connector {
        top: 32px;
        height: 30px;
    }
    
    .step-title {
        font-size: 15px;
    }
    
    .step-description {
        font-size: 12px;
    }
    
    .checkout-progress-steps {
        margin-bottom: 30px;
    }
    
    .checkout-progress-step {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .checkout-progress-modal {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .checkout-progress-header {
        margin-bottom: 30px;
    }
    
    .checkout-progress-header h2 {
        font-size: 18px;
    }
    
    .step-indicator {
        margin-right: 15px;
    }
    
    .step-circle {
        width: 28px;
        height: 28px;
    }
    
    .step-inner-circle {
        width: 12px;
        height: 12px;
    }
    
    .step-connector {
        top: 28px;
        height: 28px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .checkout-progress-step.active .step-circle {
        border-width: 4px;
    }
    
    .checkout-progress-step.completed .step-circle {
        border-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .checkout-progress-modal::before,
    .progress-bar-fill::after {
        animation: none;
    }
    
    .checkout-progress-step.active .step-circle {
        animation: none;
    }
    
    .checkout-progress-step,
    .step-circle,
    .step-inner-circle,
    .step-connector,
    .step-title,
    .step-description,
    .progress-bar-fill {
        transition: none;
    }
} 