/**
 * Go Troppo Notification Styles
 * Matches website design with orange/navy theme
 */

/* Success Messages */
.nbn-success-message,
.nbn-notification-success,
#nbn-inline-checkout .nbn-success-message {
    background: linear-gradient(135deg, rgba(255, 142, 83, 0.1) 0%, rgba(255, 217, 61, 0.1) 100%);
    color: #1e3c72;
    border: 2px solid #ff8e53;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-weight: 500;
    position: relative;
    box-shadow: 0 4px 12px rgba(255, 142, 83, 0.1);
    animation: notificationSlideIn 0.3s ease-out;
}

.nbn-success-message::before,
.nbn-notification-success::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff8e53 0%, #ffd93d 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: 700;
    margin-right: 0.75rem;
}

/* Error Messages */
.nbn-error-message,
.nbn-notification-error,
#nbn-inline-checkout .nbn-error-message,
.error-message {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(42, 82, 152, 0.1) 100%);
    color: #1e3c72;
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-weight: 500;
    position: relative;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
    animation: notificationSlideIn 0.3s ease-out;
}

.nbn-error-message::before,
.nbn-notification-error::before {
    content: '✕';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: 700;
    margin-right: 0.75rem;
}

/* Info Messages */
.nbn-info-message,
.nbn-notification-info {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(42, 82, 152, 0.1) 100%);
    color: #1e3c72;
    border: 2px solid #2a5298;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-weight: 500;
    position: relative;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.1);
    animation: notificationSlideIn 0.3s ease-out;
}

.nbn-info-message::before,
.nbn-notification-info::before {
    content: 'i';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: 700;
    margin-right: 0.75rem;
    font-style: normal;
}

/* Warning Messages */
.nbn-warning-message,
.nbn-notification-warning {
    background: linear-gradient(135deg, rgba(255, 142, 83, 0.1) 0%, rgba(255, 217, 61, 0.1) 100%);
    color: #1e3c72;
    border: 2px solid #ffd93d;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-weight: 500;
    position: relative;
    box-shadow: 0 4px 12px rgba(255, 217, 61, 0.1);
    animation: notificationSlideIn 0.3s ease-out;
}

.nbn-warning-message::before,
.nbn-notification-warning::before {
    content: '!';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ffd93d 0%, #ff8e53 100%);
    color: #1e3c72;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: 700;
    margin-right: 0.75rem;
}

/* Animation */
@keyframes notificationSlideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Notification Container */
.nbn-notifications-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: calc(100% - 40px);
}

/* Individual Notification */
.nbn-notification {
    margin-bottom: 1rem;
    animation: notificationSlideInRight 0.3s ease-out;
}

@keyframes notificationSlideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Close button for notifications */
.nbn-notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: currentcolor;
    opacity: 0.5;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem;
    transition: opacity 0.2s ease;
}

.nbn-notification-close:hover {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nbn-notifications-container {
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }

    .nbn-success-message,
    .nbn-error-message,
    .nbn-info-message,
    .nbn-warning-message {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}
