﻿/* ew-toast.css — toast notifications (see ew-toast.js).
   Bottom-right stack, theme-aware via CSS tokens. */

.ew-toast-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none; /* let clicks pass except on the toasts themselves */
}

.ew-toast {
    pointer-events: auto;
    cursor: pointer;
    max-width: 420px;
    padding: 16px 22px;
    border-radius: 12px;
    background: var(--ew-gold, #DDB785);
    color: var(--ew-dark, #050505);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    /* enter/exit animation (scale/opacity — the wrap handles centering) */
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ew-toast-in {
    opacity: 1;
    transform: scale(1);
}

.ew-toast-out {
    opacity: 0;
    transform: scale(0.94);
}

@media (max-width: 480px) {
    .ew-toast-wrap {
        left: 50%;
        right: auto;
        width: calc(100% - 24px);
        max-width: 420px;
    }

    .ew-toast {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }
}
