.toast-container {
    position: fixed;
    top: calc(var(--site-header-height, 4rem) + 0.75rem);
    right: 1rem;
    z-index: 10000;
    display: flex;
    width: min(24rem, calc(100vw - 2rem));
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.625rem;
    background: #0f8f83;
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(18, 38, 63, 0.2);
    font-weight: 700;
    line-height: 1.4;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(1.5rem);
    transition:
        opacity 250ms ease,
        transform 250ms ease;
}

.toast-notification.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.is-leaving {
    opacity: 0;
    transform: translateX(1.5rem);
}

.toast-notification--info {
    background: #1769aa;
}

.toast-notification--warning {
    background: #a85d00;
}

.toast-notification--error {
    background: #b42318;
}

.toast-notification__icon {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.0625rem;
}

.toast-notification__message {
    flex: 1 1 auto;
    min-width: 0;
}

.toast-notification__close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: -0.25rem -0.375rem -0.25rem 0;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
}

.toast-notification__close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.toast-notification__close:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 40rem) {
    .toast-container {
        top: calc(var(--site-header-height, 4rem) + 0.5rem);
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast-notification {
        transition: none;
        transform: none;
    }
}
