/* push-ui.css — Bell widget + top bar for push subscribe */

/* ============================================================ BELL BUTTON */
.nb-push-bell {
    position: fixed;
    bottom: 70px;
    left: 16px;
    z-index: 99999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #337ab7;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
}
.nb-push-bell:hover {
    transform: scale(1.1);
    background: #2d6da3;
}
.nb-push-bell svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}
/* Small red dot when not subscribed */
.nb-push-bell[data-status="default"]::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border-radius: 50%;
    border: 2px solid #337ab7;
}
.nb-push-bell[data-status="subscribed"]::after {
    display: none;
}

/* ============================================================ BELL POPUP */
.nb-push-popup {
    position: fixed;
    bottom: 132px;
    left: 16px;
    z-index: 99999;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom left;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-image: linear-gradient(to left top, rgb(239 145 67), rgb(253 224 47));
    box-shadow: 10px 10px 21px rgba(0, 0, 0.35);
}
.nb-push-popup.open {
    transform: scale(1);
    opacity: 1;
}

.nb-push-popup__header {
    background: #337ab7;
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.nb-push-popup__body {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 14px;
}
.nb-push-popup__icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}
.nb-push-popup__icon img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
.nb-push-popup__text {
    font-size: 13px;
    line-height: 1.45;
    color: #444;
}

.nb-push-popup__actions {
    display: flex;
    gap: 10px;
    padding: 0 16px 16px;
    justify-content: flex-start;
}

.nb-push-popup__btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}
.nb-push-popup__btn:hover { opacity: 0.85; }
.nb-push-popup__btn:disabled { opacity: 0.5; cursor: default; }

.nb-push-popup__btn--yes {
    background: #27ae60;
    color: #fff;
}
.nb-push-popup__btn--no {
    background: #e8e8e8;
    color: #666;
}

/* Close X on the popup */
.nb-push-popup__close {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nb-push-popup__close svg {
    width: 12px;
    height: 12px;
    fill: #fff;
}

/* Subscribed state in popup */
.nb-push-popup__subscribed {
    text-align: center;
    padding: 20px 16px;
    color: #27ae60;
    font-weight: 600;
    font-size: 14px;
}

/* ============================================================= TOP BAR */
.nb-push-bar {
    margin: 0 auto;
    max-width: 420px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: linear-gradient(135deg, #e8a020 0%, #d4891a 100%);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    background-image: linear-gradient(to left top, rgb(239 145 67), rgb(253 224 47));
    box-shadow: 10px 10px 21px rgba(0, 0, 0.35);
}
.nb-push-bar.visible {
    transform: translateY(0);
}

.nb-push-bar__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.nb-push-bar__icon img {
    width: 100%;
    height: 100%;
}

.nb-push-bar__text {
    flex: 1;
    max-width: 500px;
}
.nb-push-bar__title {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 2px;
}
.nb-push-bar__subtitle {
    font-size: 12px;
    opacity: 0.85;
    margin: 0;
}

.nb-push-bar__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.nb-push-bar__btn {
    padding: 7px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.15);
    transition: opacity 0.15s;
}
.nb-push-bar__btn:hover { opacity: 0.85; }

.nb-push-bar__btn--allow {
    background: #2563c4;
    color: #fff;
    border-color: #1e54a8;
}
.nb-push-bar__btn--later {
    background: rgba(255,255,255,0.3);
    color: #333;
}

/* ============================================================ RESPONSIVE */
@media (max-width: 480px) {
    .nb-push-popup {
        left: 8px;
        right: 8px;
        width: auto;
        bottom: 74px;
    }
    .nb-push-bar {
        padding: 8px 12px;
        gap: 10px;
    }
    .nb-push-bar__title { font-size: 13px; }
    .nb-push-bar__subtitle { font-size: 11px; }
}

/* ============================================================== HIDDEN */
.nb-push-bell[hidden],
.nb-push-popup[hidden],
.nb-push-bar[hidden] {
    display: none !important;
}

p.nb-push-bar__title, p.nb-push-bar__subtitle {
    color: black;
}