/* ============ Контейнер виджета ============ */

/*.b24-widget-button-inner-item {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    border-radius: 50%;*/
/*    -webkit-transition: opacity .6s ease-out;*/
/*    transition: opacity .6s ease-out;*/
/*    -webkit-animation: socialRotateBack .4s;*/
/*    animation: socialRotateBack .4s;*/
/*    opacity: 0;*/
/*    overflow: hidden;*/
/*    box-sizing: border-box;*/
/*}*/
.swNotificationPopUp-root {
    position: fixed;
    right: 50px;
    bottom: 120px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    transition: transform .35s ease, opacity .35s ease;

}

.swNotificationPopUp-root.is-hidden {
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
}

/* ============ Обёртка кнопки ============ */
.swNotificationPopUp-btnwrap {
    position: relative;
    width: 60px;
    height: 60px;
    display: block;
    overflow: visible;
    isolation: isolate;
}

/* ============ ЗОЛОТАЯ ВНЕШНЯЯ ПУЛЬСАЦИЯ ============ */
/* z-index: 0 — ПОД кнопкой, поэтому центр не закрашивается,
   видно только то, что выступает за её края.
   Градиент уходит в прозрачность к центру и к краям — мягкое свечение */
.swNotificationPopUp-btnwrap::before,
.swNotificationPopUp-btnwrap::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    /* Кольцо: центр прозрачный, середина золотая, край растворяется */
    background: radial-gradient(circle,
    rgba(255, 233, 168, 0)    35%,
    rgba(255, 220, 130, 0.85) 55%,
    rgba(255, 200, 90, 0.55)  72%,
    rgba(230, 170, 55, 0.25)  86%,
    rgba(200, 150, 40, 0)     100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: swNotificationPopUpPulse 2.8s cubic-bezier(.25,.55,.4,1) infinite;
    will-change: transform, opacity;
}
.swNotificationPopUp-btnwrap::after {
    animation-delay: 1.4s;
}

@keyframes swNotificationPopUpPulse {
    0%   { transform: scale(1);   opacity: 0; }
    15%  { transform: scale(1.1); opacity: 1; }
    70%  { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ============ Кнопка ============ */
.swNotificationPopUp-btn {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #d4af37;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.35);
    display: grid;
    place-items: center;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.swNotificationPopUp-btn:hover {
    transform: scale(1.05);
    background: #c9a230;
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.5);
}

.swNotificationPopUp-btn:active {
    transform: scale(0.95);
}

.swNotificationPopUp-btn svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

/* ============ Панель (поп-ап) ============ */
.swNotificationPopUp-panel {
    display: none;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
    transform-origin: bottom right;
    transform: scale(0.85) translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s cubic-bezier(0.2, 0.8, 0.3, 1.2), opacity .2s ease;
    position: relative;
}

.swNotificationPopUp-panel.is-open {
    display: block;
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.swNotificationPopUp-panel h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #8b6f1e;
}

.swNotificationPopUp-panel p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280;
}

.swNotificationPopUp-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.swNotificationPopUp-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    transition: opacity .15s ease;
}

.swNotificationPopUp-link:hover {
    opacity: 0.9;
}

.swNotificationPopUp-link--max { background: #7c3aed; }
.swNotificationPopUp-link--tg  { background: #229ED9; }
.swNotificationPopUp-link--vk  { background: #0077FF; }

.swNotificationPopUp-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.swNotificationPopUp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #faf6e6;
    color: #8b6f1e;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s ease;
}

.swNotificationPopUp-close:hover {
    background: #f3ecd0;
}

/* ============ Мобильная версия ============ */
@media (max-width: 480px) {
    .swNotificationPopUp-root {
        right: 50px;
        bottom:55px;
    }

    .swNotificationPopUp-btnwrap,
    .swNotificationPopUp-btn {
        width: 54px;
        height: 54px;
    }

    .swNotificationPopUp-btnwrap::before,
    .swNotificationPopUp-btnwrap::after {
        width: 54px;
        height: 54px;
        margin: -27px 0 0 -27px;
    }

    .swNotificationPopUp-btn svg { width: 24px; height: 24px; }

    .swNotificationPopUp-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 78px;
        width: auto;
        max-width: none;
        transform-origin: bottom center;
    }
}