.vet-toast-region {
    position: fixed;
    top: calc(var(--global-header-height, 60px) + 14px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20000;
    width: min(390px, calc(100vw - 28px));
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.vet-toast {
    --toast-accent: #3974c6;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 12px 12px 12px 14px;
    border: 1px solid color-mix(in srgb, var(--toast-accent) 35%, #dce4f2);
    border-left: 5px solid var(--toast-accent);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    color: #1f2d49;
    box-shadow: 0 16px 38px rgba(20, 38, 72, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
}

.vet-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.vet-toast.is-leaving {
    opacity: 0;
    transform: translateY(-5px);
}

.vet-toast--success { --toast-accent: #198754; }
.vet-toast--error { --toast-accent: #c73535; }
.vet-toast--warning { --toast-accent: #c27b00; }
.vet-toast--info { --toast-accent: #3974c6; }

.vet-toast__icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--toast-accent) 13%, white);
    color: var(--toast-accent);
    font-size: 0.92rem;
    font-weight: 700;
}

.vet-toast__message {
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.vet-toast__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #63708a;
    font: inherit;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.vet-toast__close:hover,
.vet-toast__close:focus-visible {
    background: #edf2fa;
    color: #25324a;
}

@media (max-width: 600px) {
    .vet-toast-region {
        top: calc(var(--global-header-height, 60px) + 9px);
        left: 50%;
        width: calc(100vw - 18px);
    }
}

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