.site-flash-slot {
    position: fixed;
    top: calc(var(--site-header-height, 10rem) + 0.75rem);
    right: max(1rem, calc((100vw - 72rem) / 2 + 1rem));
    z-index: 90;
    width: min(24rem, calc(100vw - 2rem));
    padding: 0;
    pointer-events: none;
}

.site-flash-slot--panel {
    top: 4.75rem;
    right: 1.25rem;
    z-index: 120;
}

.site-flash-slot .panel-flash {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem 2.5rem 0.85rem 0.9rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(12px);
    pointer-events: auto;
    cursor: pointer;
    animation: site-flash-in 0.3s ease both;
}

.site-flash-slot .panel-flash::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.55;
    transform-origin: left;
    animation: site-flash-progress 4s linear forwards;
}

.site-flash-slot .panel-flash__icon {
    display: grid;
    place-items: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
}

.site-flash-slot .panel-flash__icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.site-flash-slot .panel-flash__body {
    min-width: 0;
}

.site-flash-slot .panel-flash__title {
    display: none;
}

.site-flash-slot .panel-flash__message {
    margin: 0;
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.4;
}

.site-flash-slot .panel-flash--success {
    color: #16a34a;
    border-color: #bbf7d0;
}

.site-flash-slot .panel-flash--success .panel-flash__icon {
    color: #15803d;
    background: #dcfce7;
}

.site-flash-slot .panel-flash--error {
    color: #dc2626;
    border-color: #fecaca;
}

.site-flash-slot .panel-flash--error .panel-flash__icon {
    color: #b91c1c;
    background: #fee2e2;
}

.site-flash-slot .panel-flash--info {
    color: #2563eb;
    border-color: #bfdbfe;
}

.site-flash-slot .panel-flash--info .panel-flash__icon {
    color: #1d4ed8;
    background: #dbeafe;
}

.site-flash-slot .panel-flash--warning {
    color: #d97706;
    border-color: #fde68a;
}

.site-flash-slot .panel-flash--warning .panel-flash__icon {
    color: #b45309;
    background: #fef3c7;
}

.site-flash-slot .panel-flash.is-leaving {
    animation: site-flash-out 0.22s ease forwards;
}

@keyframes site-flash-in {
    from { opacity: 0; transform: translateY(-0.6rem) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes site-flash-out {
    to { opacity: 0; transform: translateY(-0.5rem) scale(0.98); }
}

@keyframes site-flash-progress {
    to { transform: scaleX(0); }
}

@media (max-width: 639px) {
    .site-flash-slot {
        top: calc(var(--site-header-height, 7.7rem) + 0.5rem);
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
    }

    .site-flash-slot--panel {
        top: 4.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-flash-slot .panel-flash,
    .site-flash-slot .panel-flash::after {
        animation: none;
    }
}
