:root {
    --tb-layer-toast: 1000;
}

.admin-floating-notices {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: var(--tb-layer-toast);
    display: grid;
    gap: 10px;
    width: min(390px, calc(100vw - 44px));
    pointer-events: none;
}

.admin-floating-notice {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(36, 51, 77, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    color: #24334d;
    box-shadow: 0 24px 70px rgba(19, 29, 45, 0.22);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-floating-notice.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.admin-floating-notice__icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
}

.admin-floating-notice__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.admin-floating-notice.is-success .admin-floating-notice__icon {
    background: #e4f7ed;
    color: #2f8a58;
}

.admin-floating-notice.is-info .admin-floating-notice__icon {
    background: #e6f4f5;
    color: #2f8589;
}

.admin-floating-notice.is-warning .admin-floating-notice__icon {
    background: #fff4cf;
    color: #8c6416;
}

.admin-floating-notice.is-error .admin-floating-notice__icon {
    background: #fff0ee;
    color: #b74747;
}

.admin-floating-notice__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-floating-notice__copy strong {
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-floating-notice__copy small {
    color: #667690;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
}

.admin-floating-notice button {
    display: inline-grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: rgba(240, 244, 252, 0.9);
    color: #667690;
    cursor: pointer;
}

.admin-floating-notice button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

@media (max-width: 600px) {
    .admin-floating-notices {
        right: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-floating-notice {
        transition: opacity 0.01ms linear;
        transform: none;
    }
}
