.infy-alert-toasts {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 12000;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.infy-weather-toast-slot,
.infy-lightning-toast-stack {
    display: grid;
    gap: 10px;
}

.infy-alert-toast {
    pointer-events: auto;
    padding: 14px 16px;
    border-radius: 14px;
    border: 3px solid #000;
    background: #fff7ed;
    box-shadow: 6px 6px 0 #000;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.infy-alert-toast.is-extreme {
    background: #fee2e2;
    border-color: #991b1b;
}

.infy-alert-toast.is-severe {
    background: #fef3c7;
}

.infy-alert-toast.is-moderate {
    background: #dbeafe;
}

.infy-alert-toast.is-lightning {
    background: #fef9c3;
    border-color: #ca8a04;
}

.infy-alert-toast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.infy-alert-toast-pill {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.infy-alert-toast.is-lightning .infy-alert-toast-pill {
    background: #ca8a04;
}

.infy-alert-toast-close {
    width: 28px;
    height: 28px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.infy-alert-toast strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.infy-alert-toast p {
    margin: 0;
    color: #444;
    line-height: 1.45;
    font-weight: 600;
    font-size: 0.9rem;
}

.infy-alert-toast-action {
    margin-top: 10px;
    padding: 9px 12px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

[data-theme="dark"] .infy-alert-toast {
    background: #1f2937;
    border-color: #444;
    box-shadow: 6px 6px 0 #000;
    color: #f8fafc;
}

[data-theme="dark"] .infy-alert-toast.is-lightning {
    background: #422006;
    border-color: #ca8a04;
}

[data-theme="dark"] .infy-alert-toast p {
    color: #cbd5e1;
}

[data-theme="dark"] .infy-alert-toast-close {
    background: #111;
    color: #fff;
    border-color: #555;
}

/* Radar lab: under the top bar; leave room for the Alerts reopen chip. */
.radar-pro-body .infy-alert-toasts {
    top: calc(var(--rp-topbar-h, 64px) + 56px);
    right: 16px;
}

@media (max-width: 720px) {
    .infy-alert-toasts {
        top: auto;
        bottom: 150px;
        right: 12px;
        width: calc(100vw - 24px);
    }

    .radar-pro-body .infy-alert-toasts {
        top: auto;
        bottom: calc(var(--rp-timeline-h, 176px) + 12px);
    }
}
