/* Stripe Integration Styles */

/* Loading overlay */
.stripe-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.stripe-loading-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.stripe-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: stripe-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes stripe-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stripe-loading-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.stripe-loading-subtext {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Order button enhanced styles */
.order-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.order-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.order-btn .fa-spinner {
    margin-right: 8px;
}

/* Success animation */
.order-success {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
}

.order-success::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: stripe-success-ripple 0.6s ease-out;
}

@keyframes stripe-success-ripple {
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Error styles */
.order-error {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
    color: white !important;
    animation: stripe-shake 0.5s ease-in-out;
}

@keyframes stripe-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Payment methods enhancement */
.accept-col {
    transition: all 0.3s ease;
}

.accept-col:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-icon {
    transition: all 0.3s ease;
}

.payment-icon:hover {
    transform: scale(1.2);
    color: #667eea !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .stripe-loading-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .stripe-loading-text {
        font-size: 16px;
    }
    
    .stripe-loading-subtext {
        font-size: 13px;
    }
}

/* Toast notifications */
.stripe-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.stripe-toast.show {
    transform: translateX(0);
}

.stripe-toast.success {
    border-left: 4px solid #4CAF50;
}

.stripe-toast.error {
    border-left: 4px solid #f44336;
}

.stripe-toast.warning {
    border-left: 4px solid #ff9800;
}

.toast-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.toast-icon {
    margin-right: 10px;
    font-size: 18px;
}

.toast-title {
    font-weight: 600;
    color: #333;
}

.toast-message {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Pulse effect for order button */
.order-btn-pulse {
    animation: stripe-pulse 2s infinite;
}

@keyframes stripe-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}
