.blnotify-pwa-fab {
    /* Тот же отступ от края экрана (22px), что и у плавающей иконки настроек
       GDPR (--blgdpr-floating-offset-x/y), для единого визуального языка. */
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99998;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: var(--blnotify-accent, #2271b1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    cursor: pointer;
    padding: 0;
    transition: transform .16s ease;
}

.blnotify-pwa-fab:hover {
    transform: translateY(-2px) scale(1.04);
}

.blnotify-pwa-fab svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    position: relative;
    z-index: 1;
    transform-origin: 50% 15%;
    animation: blnotify-bell-ring 4.5s ease-in-out infinite;
}

.blnotify-pwa-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 0 0 2px #fff;
}

/* Расходящаяся волна вокруг значка, чтобы привлечь внимание, пока
   пользователь ни разу не открывал панель. */
.blnotify-pwa-fab::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--blnotify-accent, #2271b1);
    z-index: 0;
    animation: blnotify-pulse 2.4s ease-out infinite;
}

.blnotify-pwa-fab.blnotify-fab-quiet svg,
.blnotify-pwa-fab.blnotify-fab-quiet::after {
    animation: none;
}

@keyframes blnotify-bell-ring {
    0%, 65%, 100% {
        transform: rotate(0deg);
    }
    68% {
        transform: rotate(-14deg);
    }
    72% {
        transform: rotate(12deg);
    }
    76% {
        transform: rotate(-9deg);
    }
    80% {
        transform: rotate(6deg);
    }
    84%, 100% {
        transform: rotate(0deg);
    }
}

@keyframes blnotify-pulse {
    0% {
        transform: scale(1);
        opacity: .55;
    }
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blnotify-pwa-fab svg,
    .blnotify-pwa-fab::after {
        animation: none;
    }
}

.blnotify-pwa-panel {
    position: fixed;
    right: 22px;
    bottom: 84px;
    z-index: 99998;
    min-width: 240px;
    max-width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
}

.blnotify-pwa-panel.blnotify-open {
    display: flex;
}

.blnotify-pwa-panel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    background: none;
    text-align: left;
    font-size: 14px;
    font-family: inherit;
    color: #1f2937;
    cursor: pointer;
    width: 100%;
}

.blnotify-pwa-panel-item:hover {
    background: #f3f4f6;
}

.blnotify-pwa-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blnotify-pwa-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--blnotify-accent, #2271b1);
}

.blnotify-pwa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.blnotify-pwa-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 360px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.blnotify-pwa-modal h3 {
    margin: 0 0 16px;
    font-size: 17px;
    color: #111827;
    padding-right: 24px;
}

.blnotify-pwa-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #6b7280;
}

.blnotify-pwa-modal-text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.blnotify-pwa-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.blnotify-pwa-modal-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.blnotify-pwa-modal-btn--ghost {
    background: none;
    color: #6b7280;
}

.blnotify-pwa-modal-btn--ghost:hover {
    background: #f3f4f6;
}

.blnotify-pwa-modal-btn--primary {
    background: var(--blnotify-accent, #2271b1);
    color: #fff;
}

.blnotify-pwa-modal-btn--primary:hover {
    opacity: .92;
}

.blnotify-pwa-modal-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.blnotify-pwa-modal-step:last-child {
    margin-bottom: 0;
}

.blnotify-pwa-modal-step .blnotify-pwa-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.blnotify-pwa-modal-step .blnotify-pwa-icon svg {
    width: 22px;
    height: 22px;
}

.blnotify-pwa-modal-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    padding-top: 8px;
}

@media (max-width: 480px) {
    .blnotify-pwa-panel {
        right: 12px;
        left: 12px;
        min-width: 0;
        max-width: none;
    }
}
