/* ======================================================================
   HAZLNUT NOTIFICATION STYLES — Shared Toast & Notification System
   Brand Theme: sharp 0px edges, DM Mono typography, maroon/coral/cream
   ====================================================================== */

.custom-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    background-color: var(--cream, #ede6dc);
    color: var(--maroon, #561023);
    border: 1.5px solid var(--maroon, #561023);
    border-left: 4.5px solid var(--maroon, #561023);
    border-radius: 0px !important;
    box-shadow: 4px 4px 0 0 var(--maroon, #561023), 0 12px 32px rgba(0, 0, 0, 0.25);
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    /* Above every page modal (create wishlist 100060, explore add-to-wishlist 200000) and the support
       modal (300000); below the login modal (500000) */
    z-index: 400000 !important;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    max-width: 90%;
    width: auto;
    text-align: center;
    box-sizing: border-box;
}

.custom-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Success Variant — Forest green left accent border */
.custom-notification.success {
    background-color: #ede6dc;
    color: #084434;
    border-color: #561023;
    border-left: 4.5px solid #084434;
}

/* Error Variant — Coral red left accent border */
.custom-notification.error {
    background-color: #ede6dc;
    color: #561023;
    border-color: #561023;
    border-left: 4.5px solid #e45558;
}

/* Warning Variant — Amber left accent border */
.custom-notification.warning {
    background-color: #ede6dc;
    color: #78350f;
    border-color: #561023;
    border-left: 4.5px solid #d97706;
}

.notification-link {
    color: var(--coral, #e45558);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    cursor: pointer;
    margin-left: 4px;
    transition: opacity 0.15s ease;
}

.notification-link:hover {
    opacity: 0.8;
}

/* "Contact us" on an error toast that carries a server reference (KAN-331) */
.custom-notification.has-action {
    text-align: left;
}

.notification-action {
    flex-shrink: 0;
    padding: 6px 12px;
    background-color: var(--maroon, #561023);
    color: var(--cream, #ede6dc);
    border: none;
    border-radius: 0px !important;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.notification-action:hover,
.notification-action:focus-visible {
    background-color: var(--coral, #e45558);
}

@media (max-width: 768px) {
    .custom-notification {
        top: 16px;
        width: calc(100% - 32px);
        max-width: 440px;
        font-size: 0.76rem;
        padding: 10px 16px;
        box-shadow: 3px 3px 0 0 var(--maroon, #561023), 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    /* Narrow screens: the button drops under the message instead of squeezing it */
    .custom-notification.has-action {
        flex-wrap: wrap;
    }
}
