.mos-bell,
.mos-bell * {
    box-sizing: border-box;
}

.mos-bell {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font: inherit;
}

.mos-bell[hidden] {
    display: none !important;
}

.mos-bell__button {
    position: relative;
    display: inline-flex;
    flex: 0 0 var(--ctl-size, 48px);
    align-items: center;
    justify-content: center;
    width: var(--ctl-size, 48px);
    height: var(--ctl-size, 48px);
    min-width: var(--ctl-size, 48px);
    min-height: var(--ctl-size, 48px);
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: var(--ctl-radius, 16px);
    background: var(--ctl-bg, #fff);
    color: var(--ctl-icon, #3c4043);
    box-shadow: var(--ctl-shadow,
            0 1px 2px rgba(16, 24, 40, 0.10), 0 4px 10px -2px rgba(16, 24, 40, 0.12));
    font: inherit;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        box-shadow 200ms var(--ctl-ease, cubic-bezier(0.2, 0, 0, 1)),
        transform 200ms var(--ctl-ease, cubic-bezier(0.2, 0, 0, 1)),
        color 200ms var(--ctl-ease, cubic-bezier(0.2, 0, 0, 1)),
        background-color 200ms var(--ctl-ease, cubic-bezier(0.2, 0, 0, 1));
}

.mos-bell__button:hover {
    color: var(--ctl-icon-hover, #111418);
    box-shadow: var(--ctl-shadow-hover,
            0 2px 4px rgba(16, 24, 40, 0.12), 0 10px 22px -6px rgba(16, 24, 40, 0.22));
    transform: translateY(-1px);
}

.mos-bell__button:active {
    box-shadow: var(--ctl-shadow-active, 0 1px 2px rgba(16, 24, 40, 0.18));
    transform: translateY(0) scale(0.94);
}

.mos-bell__button:focus-visible {
    outline: 3px solid rgba(26, 115, 232, 0.45);
    outline-offset: 3px;
}

.mos-bell__button:disabled {
    cursor: wait;
}

.mos-bell__button.is-subscribed {
    background: #e8f5ec;
    color: #167344;
}

.mos-bell__button.is-subscribed:hover {
    background: #d9f0e1;
    color: #105d36;
}

.mos-bell__button.is-loading {
    opacity: 0.72;
}

.mos-bell__icon {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: transform 200ms var(--ctl-ease, cubic-bezier(0.2, 0, 0, 1));
}

.mos-bell__button:hover .mos-bell__icon {
    transform: scale(1.06);
}

.mos-bell__button.is-subscribed .mos-bell__icon path:first-child {
    fill: currentColor;
}

.mos-bell__button.is-subscribed .mos-bell__clapper {
    stroke-width: 2.2;
}

.mos-bell__check {
    position: absolute;
    right: -3px;
    bottom: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    opacity: 0;
    transform: scale(0.65);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.mos-bell__check svg {
    display: block;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mos-bell__button.is-subscribed .mos-bell__check {
    opacity: 1;
    transform: scale(1);
}

.mos-bell__notice {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: max-content;
    max-width: min(300px, calc(100vw - 32px));
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    color: #374151;
    box-shadow:
        0 8px 26px rgba(16, 24, 40, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    animation: mos-bell-notice-in 160ms ease-out both;
}

body:has(.iran) .mos-bell__notice {
	right: auto;
	left: 0;
}

.mos-bell__notice-text {
    display: block;
}

.mos-bell__login-link {
    display: inline-block;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mos-bell__login-link:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}

@keyframes mos-bell-notice-in {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .mos-bell__notice {
        max-width: min(280px, calc(100vw - 24px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .mos-bell__button,
    .mos-bell__icon,
    .mos-bell__check,
    .mos-bell__notice {
        transition: none;
        animation: none;
    }
}