.cw-site-notifications {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: min(460px, calc(100vw - 24px));
    display: grid;
    justify-items: center;
    gap: 10px;
    z-index: 12000;
    pointer-events: none;
    direction: rtl;
}

.cw-site-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    min-height: 52px;
    padding: 12px 14px 12px 10px;
    box-sizing: border-box;
    background: #29242c;
    color: #fff;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 13px;
    box-shadow: 0 16px 40px rgba(20, 12, 26, .18);
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: auto;
}

.cw-site-notification.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.cw-site-notification.is-leaving { opacity: 0; transform: translateY(8px) scale(.985); }
.cw-site-notification__message { flex: 0 1 auto; min-width: 0; font-size: 11px; line-height: 1.9; font-weight: 600; overflow-wrap: anywhere; }
.cw-site-notification__close {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}
.cw-site-notification__close:hover { background: rgba(255,255,255,.12); }

@media (max-width: 560px) {
    .cw-site-notifications {
        bottom: calc(var(--bottom-nav-h) + 20px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100vw - 20px);
    }
    .cw-site-notification { min-height: 50px; padding-right: 12px; }
    .cw-site-notification__message { font-size: 10.5px; }
}
