/*
 * Storefront (theme/ + furniture_theme/) skin for the shared toast engine in
 * assets/js/notification.js. Same structure/behavior as the admin panel's
 * assets/css/notification.css, just unscoped (storefront <body> carries no
 * "admin-shell" class) and using this theme's own established status colors
 * (assets/theme/assets/css/style.css .alert-success/.alert-danger/etc and
 * the #c96 brand accent) instead of admin-ui.css's --adm-* variables, so the
 * toast matches the storefront's own look rather than the admin panel's.
 */
.ntf-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 360px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
    font-family: "Poppins", sans-serif;
}

.ntf-toast {
    box-sizing: border-box;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-left: 4px solid #999;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 200ms ease, transform 200ms ease;
}
.ntf-toast--in { opacity: 1; transform: translateX(0); }
.ntf-toast--out { opacity: 0; transform: translateX(24px); }

.ntf-toast--pulse { animation: ntf-toast-pulse-storefront 260ms ease; }
@keyframes ntf-toast-pulse-storefront {
    0%   { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04); }
    40%  { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(153, 153, 153, 0.2); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04); }
}

.ntf-toast--success { border-left-color: #20cb55; }
.ntf-toast--error   { border-left-color: #da2828; }
.ntf-toast--warning { border-left-color: #ea8745; }
.ntf-toast--info    { border-left-color: #32b1d6; }
.ntf-toast--loading { border-left-color: #999; }

.ntf-toast-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 17px;
}
.ntf-toast--success .ntf-toast-icon { color: #20cb55; background: rgba(32, 203, 85, 0.1); }
.ntf-toast--error   .ntf-toast-icon { color: #da2828; background: rgba(218, 40, 40, 0.08); }
.ntf-toast--warning .ntf-toast-icon { color: #ea8745; background: rgba(234, 135, 69, 0.1); }
.ntf-toast--info    .ntf-toast-icon { color: #32b1d6; background: rgba(50, 177, 214, 0.1); }
.ntf-toast--loading .ntf-toast-icon { color: #999; background: #f2f2f2; }

.ntf-toast-body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
}
.ntf-toast-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #333;
    word-wrap: break-word;
}
.ntf-toast-message {
    font-size: 13px;
    line-height: 1.45;
    color: #777;
    word-wrap: break-word;
}
.ntf-toast-title + .ntf-toast-message { margin-top: 2px; }

.ntf-toast-action {
    display: block;
    margin-top: 8px;
    margin-left: auto;
    padding: 0;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #cc9966;
    cursor: pointer;
}
.ntf-toast-action:hover { color: #c96; text-decoration: underline; }

.ntf-toast-close {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: -2px -4px 0 0;
    padding: 0;
    border: none;
    background: none;
    border-radius: 6px;
    font-size: 12px;
    color: #999;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 150ms ease, background-color 150ms ease, color 150ms ease;
}
.ntf-toast-close:hover {
    opacity: 1;
    color: #333;
    background: #f2f2f2;
}

@media (max-width: 640px) {
    .ntf-toast-container {
        top: 12px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
    }
}
