/* LemonSqueezy Overlay Styles */

/* Animation for notifications */
@keyframes slideInRight {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOutRight {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* Payment success notification */
.payment-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #d4edda;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px;
    z-index: 10000;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.payment-success-notification.closing {
    animation: slideOutRight 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-text p {
    margin: 4px 0 0 0;
    color: #666;
    font-size: 14px;
}

/* LemonSqueezy iframe styling improvements */
iframe[src*="lemonsqueezy"] {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
    background: white !important;
}

/* Loading overlay for payment */
.payment-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999997;
}

.payment-loading-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .payment-success-notification {
        left: 10px;
        right: 10px;
        min-width: auto;
        top: 10px;
    }
    
    iframe[src*="lemonsqueezy"] {
        width: 95vw !important;
        height: 95vh !important;
        max-width: none !important;
        max-height: none !important;
    }
}

/* Custom backdrop styles */
.lemonsqueezy-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.75) !important;
    z-index: 999998 !important;
    pointer-events: none !important;
    backdrop-filter: blur(2px);
}