/**
 * Custom Payment Error Notifications
 * Roblaw Natural Health - Live Production
 */

.snipcart-payment-error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #dc3545;
}

.snipcart-payment-error-notification .error-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.snipcart-payment-error-notification .error-icon {
    flex-shrink: 0;
    color: #dc3545;
    margin-top: 2px;
}

.snipcart-payment-error-notification .error-message {
    flex: 1;
}

.snipcart-payment-error-notification .error-message strong {
    display: block;
    color: #dc3545;
    font-size: 16px;
    margin-bottom: 4px;
}

.snipcart-payment-error-notification .error-message p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.snipcart-payment-error-notification .error-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.snipcart-payment-error-notification .error-close:hover {
    background: #f5f5f5;
    color: #333;
}

.snipcart-payment-error-notification.fade-out {
    animation: slideOut 0.3s ease-in forwards;
}

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

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

/* Mobile responsive */
@media (max-width: 480px) {
    .snipcart-payment-error-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Custom inline error styling */
.custom-payment-error {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-payment-error strong {
    font-weight: 600;
}
