/* Sitewide, dependency-free, RTL toast notifications. */
[data-noubat-toast] { display: none !important; }

.noubat-toast-stack {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    width: min(390px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2147483000;
    pointer-events: none;
    direction: rtl;
}
.noubat-toast-stack, .noubat-toast-stack * { box-sizing: border-box; }
.noubat-toast {
    --noubat-toast-accent: #b7791f;
    --noubat-toast-soft: #fff8e5;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 12px 14px 14px;
    border: 1px solid #ebedf1;
    border-right: 5px solid var(--noubat-toast-accent);
    border-radius: 13px;
    background: #fff;
    color: #26334a;
    box-shadow: 0 12px 34px rgba(19, 40, 69, .16), 0 2px 6px rgba(19, 40, 69, .08);
    font: inherit;
    font-size: 13px;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
    pointer-events: auto;
    animation: noubat-toast-enter .2s ease-out both;
}
.noubat-toast--success { --noubat-toast-accent: #198754; --noubat-toast-soft: #e8f8ef; }
.noubat-toast--error { --noubat-toast-accent: #dc3545; --noubat-toast-soft: #fff0f1; }
.noubat-toast--warning { --noubat-toast-accent: #b7791f; --noubat-toast-soft: #fff8e5; }
.noubat-toast__symbol {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--noubat-toast-soft);
    color: var(--noubat-toast-accent);
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}
.noubat-toast__content { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.noubat-toast__title { display: block; color: var(--noubat-toast-accent); font-size: 13px; line-height: 1.5; margin: 0 0 3px; }
.noubat-toast__message { margin: 0; color: #26334a; white-space: pre-line; }
.noubat-toast__close {
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}
.noubat-toast__close:hover, .noubat-toast__close:focus-visible { background: #f1f5f9; color: #0f172a; }
.noubat-toast__close:focus-visible { outline: 2px solid #64748b; outline-offset: 2px; }
.noubat-toast--leaving { opacity: 0; transform: translateY(-7px); transition: opacity .18s ease, transform .18s ease; animation: none; }
@keyframes noubat-toast-enter {
    from { opacity: 0; transform: translateY(-9px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 520px) {
    .noubat-toast-stack { top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; width: calc(100vw - 20px); }
    .noubat-toast { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .noubat-toast { animation: none; }
    .noubat-toast--leaving { transition: none; }
}
