.myasar-system-alert-region {
    position: fixed;
    top: 112px;
    left: 50%;
    z-index: 2100;
    display: flex;
    width: min(620px, calc(100vw - 32px));
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    transform: translateX(-50%);
}

.myasar-system-alert {
    --system-alert-color: #087f5b;
    --system-alert-shadow: rgba(8, 127, 91, 0.25);
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid color-mix(in srgb, var(--system-alert-color) 82%, #000 18%) !important;
    border-radius: 16px !important;
    background: var(--system-alert-color) !important;
    color: #fff !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24), 0 5px 14px var(--system-alert-shadow) !important;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.75;
    opacity: 0 !important;
    pointer-events: auto;
    transform: translateY(-18px) scale(0.985);
    transition: opacity 0.38s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.myasar-system-alert.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1);
}

.myasar-system-alert.alert-danger {
    --system-alert-color: #b42318;
    --system-alert-shadow: rgba(180, 35, 24, 0.25);
}

.myasar-system-alert.alert-warning {
    --system-alert-color: #b76e00;
    --system-alert-shadow: rgba(183, 110, 0, 0.25);
}

.myasar-system-alert.alert-info {
    --system-alert-color: #116a8b;
    --system-alert-shadow: rgba(17, 106, 139, 0.25);
}

.myasar-system-alert__icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--system-alert-color);
    font-size: 1.1rem;
    font-weight: 900;
}

.myasar-system-alert__content {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}

.myasar-system-alert__close {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.myasar-system-alert__close:hover,
.myasar-system-alert__close:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.06);
}

.myasar-system-alert.is-hiding {
    opacity: 0 !important;
    transform: translateY(-12px) scale(0.985);
}

@media (max-width: 767.98px) {
    .myasar-system-alert-region {
        top: 76px;
        width: calc(100vw - 24px);
    }

    .myasar-system-alert {
        min-height: 62px;
        gap: 10px;
        padding: 12px !important;
        border-radius: 14px !important;
        font-size: 0.94rem;
    }

    .myasar-system-alert__icon,
    .myasar-system-alert__close {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .myasar-system-alert,
    .myasar-system-alert__close {
        transition: none;
    }

    .myasar-system-alert,
    .myasar-system-alert.is-visible {
        opacity: 1 !important;
        transform: none;
    }
}
