/* Checkout overlay - shown during order placement */
#cap-overlay{
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #333;
    padding: 20px;
}
.cap-spinner{
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 6px solid #f1f1f1;
    border-top-color: #3498db;
    animation: capspin 1s linear infinite;
    margin-bottom: 14px;
}
@keyframes capspin{
    from{ transform: rotate(0deg); }
    to{ transform: rotate(360deg); }
}

/* Payment status polling overlay - shown on order received page */
#leuton-payment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    padding: 20px;
}

.leuton-spinner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 6px solid #f1f1f1;
    border-top-color: #3498db;
    animation: leutonspin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes leutonspin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.leuton-message {
    max-width: 500px;
    padding: 20px;
}

.leuton-message h3 {
    font-size: 24px;
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-weight: 600;
}

.leuton-message p {
    font-size: 16px;
    line-height: 1.6;
    margin: 12px 0;
    color: #555;
}

.leuton-message .status-text {
    font-weight: 500;
    color: #3498db;
}

.leuton-message .instruction-text {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 20px;
}

/* Success state */
.leuton-success {
    animation: fadeIn 0.3s ease-in;
}

.leuton-success .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #27ae60;
    margin-bottom: 16px;
}

.leuton-success h3 {
    color: #27ae60;
}

.leuton-success p {
    color: #2c3e50;
}

/* Error state */
.leuton-error {
    animation: fadeIn 0.3s ease-in;
}

.leuton-error .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #e74c3c;
    margin-bottom: 16px;
}

.leuton-error h3 {
    color: #e74c3c;
}

.leuton-error p {
    color: #2c3e50;
}

.reload-notice {
    font-size: 14px;
    color: #95a5a6;
    margin-top: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .leuton-message {
        padding: 15px;
    }
    
    .leuton-message h3 {
        font-size: 20px;
    }
    
    .leuton-message p {
        font-size: 14px;
    }
    
    .leuton-spinner {
        width: 48px;
        height: 48px;
        border-width: 5px;
    }
}