.eavocat-notice-source,
#eavocat-ajax-notices[hidden] {
    display: none !important;
}

.eavocat-toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2147483000;
    width: min(410px, calc(100vw - 28px));
    display: grid;
    gap: 10px;
    pointer-events: none;
}

body.admin-bar .eavocat-toast-stack {
    top: 50px;
}

.eavocat-toast {
    --eavocat-toast-accent: #2563eb;
    --eavocat-toast-soft: #eff6ff;
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: start;
    overflow: hidden;
    padding: 13px 13px 15px;
    border: 1px solid color-mix(in srgb, var(--eavocat-toast-accent) 30%, #d8dee9);
    border-left: 5px solid var(--eavocat-toast-accent);
    border-radius: 10px;
    background: #fff;
    color: #172033;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .20), 0 3px 9px rgba(15, 23, 42, .10);
    pointer-events: auto;
    transform-origin: top right;
    animation: eavocat-toast-enter .25s cubic-bezier(.2, .8, .2, 1) both;
}

.eavocat-toast-success {
    --eavocat-toast-accent: #15803d;
    --eavocat-toast-soft: #ecfdf3;
}

.eavocat-toast-error {
    --eavocat-toast-accent: #c81e1e;
    --eavocat-toast-soft: #fef2f2;
}

.eavocat-toast-warning {
    --eavocat-toast-accent: #b45309;
    --eavocat-toast-soft: #fff7ed;
}

.eavocat-toast-info {
    --eavocat-toast-accent: #1d4ed8;
    --eavocat-toast-soft: #eff6ff;
}

.eavocat-toast.is-leaving {
    animation: eavocat-toast-leave .20s ease both;
}

.eavocat-toast.is-pulsing {
    animation: eavocat-toast-pulse .24s ease;
}

.eavocat-toast-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--eavocat-toast-soft);
    color: var(--eavocat-toast-accent);
    font: 800 17px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eavocat-toast-content {
    min-width: 0;
}

.eavocat-toast-title {
    display: block;
    margin: 0 0 3px;
    color: var(--eavocat-toast-accent);
    font: 700 14px/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eavocat-toast-message {
    overflow-wrap: anywhere;
    white-space: pre-line;
    color: #273244;
    font: 500 13px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eavocat-toast-message p {
    margin: 0;
}

.eavocat-toast-message p + p {
    margin-top: 6px;
}

.eavocat-toast-message a {
    color: var(--eavocat-toast-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.eavocat-toast-repeat {
    align-self: center;
    min-width: 26px;
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--eavocat-toast-soft);
    color: var(--eavocat-toast-accent);
    font: 700 11px/1.2 system-ui, sans-serif;
    text-align: center;
}

.eavocat-toast-close {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    margin: -5px -5px 0 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #667085;
    font: 500 22px/1 system-ui, sans-serif;
    cursor: pointer;
}

.eavocat-toast-close:hover,
.eavocat-toast-close:focus-visible {
    background: #eef2f7;
    color: #111827;
    outline: none;
}

.eavocat-toast-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: color-mix(in srgb, var(--eavocat-toast-accent) 12%, transparent);
}

.eavocat-toast-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--eavocat-toast-accent);
    transform-origin: left center;
}

@keyframes eavocat-toast-enter {
    from { opacity: 0; transform: translate3d(32px, -4px, 0) scale(.97); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes eavocat-toast-leave {
    to { opacity: 0; transform: translate3d(28px, 0, 0) scale(.96); }
}

@keyframes eavocat-toast-pulse {
    50% { transform: scale(1.018); }
}

@keyframes eavocat-toast-countdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 782px) {
    .eavocat-toast-stack,
    body.admin-bar .eavocat-toast-stack {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .eavocat-toast {
        grid-template-columns: 30px minmax(0, 1fr) auto;
    }

    .eavocat-toast-repeat {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eavocat-toast,
    .eavocat-toast.is-leaving,
    .eavocat-toast.is-pulsing,
    .eavocat-toast-progress-bar {
        animation: none !important;
        transition: none !important;
    }
}
