.global-alert-container {
    position: fixed;
    z-index: 10000;
    top: 18px;
    right: 18px;
    display: grid;
    width: min(390px, calc(100vw - 36px));
    gap: 12px;
    pointer-events: none;
}

.global-alert {
    --alert-accent: #2456a6;
    --alert-soft: #eef5ff;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 15px 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .10);
    border-left: 5px solid var(--alert-accent);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .20);
    color: #172033;
    opacity: 0;
    pointer-events: auto;
    transform: translateX(26px) scale(.98);
    transition: opacity .20s ease, transform .20s ease;
}

.global-alert.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.global-alert.is-hiding {
    opacity: 0;
    transform: translateX(22px) scale(.98);
}

.global-alert--success {
    --alert-accent: #21824a;
    --alert-soft: #ebf9f0;
}

.global-alert--error {
    --alert-accent: #a90008;
    --alert-soft: #fff0f1;
}

.global-alert--warning {
    --alert-accent: #a96400;
    --alert-soft: #fff7e7;
}

.global-alert--info {
    --alert-accent: #2456a6;
    --alert-soft: #eef5ff;
}

.global-alert__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--alert-soft);
    color: var(--alert-accent);
    font-size: 1.1rem;
}

.global-alert__content {
    min-width: 0;
    padding-top: 1px;
}

.global-alert__title,
.global-alert__message {
    display: block;
}

.global-alert__title {
    margin-bottom: 2px;
    color: var(--alert-accent);
    font-size: .94rem;
    font-weight: 900;
}

.global-alert__message {
    overflow-wrap: anywhere;
    color: #445064;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.55;
}

.global-alert__close {
    display: grid;
    width: 30px;
    height: 30px;
    margin: -4px -4px 0 0;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7b8798;
    cursor: pointer;
}

.global-alert__close:hover,
.global-alert__close:focus-visible {
    background: #f1f4f7;
    color: #172033;
    outline: 0;
}

@media (max-width: 575.98px) {
    .global-alert-container {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .global-alert {
        transition: none;
    }
}
