#ngr-pwa-notification-center {
    position: fixed;
    inset-inline-end: 1rem;
    inset-block-end: 12rem;
    z-index: 9997;
    font-family: inherit;
    direction: rtl;
    color: #0f172a;
}

@media (min-width: 768px) {
    #ngr-pwa-notification-center {
        inset-inline-end: 2rem;
        inset-block-end: 2rem;
    }
}

.ngr-pwa-notification-center__prompt {
    position: fixed;
    inset-inline-end: 1rem;
    inset-inline-start: 1rem;
    inset-block-end: 2.5rem;
    z-index: 9999;
    max-width: 460px;
    margin-inline: auto;
    background: #ffffff;
    border-radius: 1.75rem;
    padding: 1.5rem;
    box-shadow: 0 32px 80px -35px rgba(15, 23, 42, 0.8);
    opacity: 0;
    pointer-events: none;
    transform: translateY(32px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ngr-pwa-notification-center__prompt.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ngr-pwa-notification-center__prompt-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ngr-pwa-notification-center__prompt-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ngr-pwa-notification-center__prompt-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.ngr-pwa-notification-center__prompt-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
}

.ngr-pwa-notification-center__prompt-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ngr-pwa-notification-center__prompt-actions button {
    width: 100%;
}

.ngr-pwa-notification-center__prompt-manage {
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: #ffffff;
    color: #0f172a;
    border-radius: 0.9rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ngr-pwa-notification-center__prompt-manage:hover {
    background: rgba(15, 23, 42, 0.05);
}

.ngr-pwa-notification-center__prompt-secondary {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.ngr-pwa-notification-center__prompt-secondary button {
    border: 0;
    background: transparent;
    padding: 0.25rem 0;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
}

.ngr-pwa-notification-center__prompt-optout {
    color: #dc2626;
}

@media (min-width: 768px) {
    .ngr-pwa-notification-center__prompt {
        inset-inline-end: 2rem;
        inset-inline-start: auto;
        max-width: 520px;
    }

    .ngr-pwa-notification-center__prompt-actions {
        flex-direction: row;
        align-items: center;
    }

    .ngr-pwa-notification-center__prompt-actions button {
        width: auto;
        flex: 1;
    }
}

.ngr-pwa-notification-center__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: 0;
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 20px 35px -20px rgba(37, 99, 235, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ngr-pwa-notification-center__toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 45px -20px rgba(37, 99, 235, 0.85);
}

.ngr-pwa-notification-center__toggle-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    position: relative;
}

.ngr-pwa-notification-center__toggle-icon::before,
.ngr-pwa-notification-center__toggle-icon::after {
    content: "";
    position: absolute;
    inset: 0.35rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    animation: ngrPwaPulse 2.6s ease-in-out infinite;
}

.ngr-pwa-notification-center__toggle-icon::after {
    animation-delay: 1.3s;
}

@keyframes ngrPwaPulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.ngr-pwa-notification-center__panel {
    position: absolute;
    inset-inline-end: 0;
    inset-block-end: calc(100% + 0.75rem);
    width: min(92vw, 380px);
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 28px 60px -28px rgba(15, 23, 42, 0.45);
    padding: 1.75rem 1.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ngr-pwa-notification-center__panel.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ngr-pwa-notification-center__header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.ngr-pwa-notification-center__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.ngr-pwa-notification-center__description {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.7rem;
    color: #475569;
}

.ngr-pwa-notification-center__permission {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(37, 99, 235, 0.08);
    margin-bottom: 1.4rem;
}

.ngr-pwa-notification-center__permission-button {
    border: 0;
    border-radius: 0.9rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 20px 35px -25px rgba(34, 197, 94, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ngr-pwa-notification-center__permission-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px -24px rgba(34, 197, 94, 0.8);
}

.ngr-pwa-notification-center__permission-status {
    font-size: 0.8rem;
    color: #1d4ed8;
}

.ngr-pwa-notification-center__group {
    margin-bottom: 1.4rem;
}

.ngr-pwa-notification-center__group-title {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.ngr-pwa-notification-center__group-hint {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    color: #ef4444;
}

.ngr-pwa-notification-center__event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ngr-pwa-notification-center__event {
    background: rgba(248, 250, 252, 0.85);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    transition: background 0.2s ease;
}

.ngr-pwa-notification-center__event:hover {
    background: rgba(226, 232, 240, 0.4);
}

.ngr-pwa-notification-center__switch {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
}

.ngr-pwa-notification-center__checkbox {
    position: absolute;
    opacity: 0;
}

.ngr-pwa-notification-center__switch-indicator {
    position: relative;
    flex-shrink: 0;
    width: 2.6rem;
    height: 1.4rem;
    border-radius: 999px;
    background: #cbd5f5;
    transition: background 0.2s ease;
}

.ngr-pwa-notification-center__switch-indicator::before {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
    transition: transform 0.2s ease;
}

.ngr-pwa-notification-center__checkbox:checked + .ngr-pwa-notification-center__switch-indicator {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.ngr-pwa-notification-center__checkbox:checked + .ngr-pwa-notification-center__switch-indicator::before {
    transform: translateX(1.15rem);
}

.ngr-pwa-notification-center__checkbox:disabled + .ngr-pwa-notification-center__switch-indicator {
    background: #e2e8f0;
}

.ngr-pwa-notification-center__event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ngr-pwa-notification-center__event-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.ngr-pwa-notification-center__event-description {
    font-size: 0.78rem;
    line-height: 1.5rem;
    color: #475569;
}

.ngr-pwa-notification-center__event-note {
    font-size: 0.72rem;
    color: #1d4ed8;
}

.ngr-pwa-notification-center__login-hint {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    color: #475569;
    text-align: center;
}

.ngr-pwa-notification-center__close {
    display: inline-flex;
    margin-top: 1.25rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    border-radius: 0.9rem;
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    background: rgba(226, 232, 240, 0.65);
    cursor: pointer;
    transition: background 0.2s ease;
}

.ngr-pwa-notification-center__close:hover {
    background: rgba(203, 213, 225, 0.85);
}

@media (prefers-color-scheme: dark) {
    #ngr-pwa-notification-center {
        color: #e2e8f0;
    }

    .ngr-pwa-notification-center__panel {
        background: rgba(15, 23, 42, 0.96);
        box-shadow: 0 32px 60px -28px rgba(15, 23, 42, 0.6);
    }

    .ngr-pwa-notification-center__title {
        color: #f8fafc;
    }

    .ngr-pwa-notification-center__description {
        color: rgba(203, 213, 225, 0.75);
    }

    .ngr-pwa-notification-center__permission {
        background: rgba(37, 99, 235, 0.16);
    }

    .ngr-pwa-notification-center__permission-status {
        color: #60a5fa;
    }

    .ngr-pwa-notification-center__event {
        background: rgba(30, 41, 59, 0.65);
    }

    .ngr-pwa-notification-center__event:hover {
        background: rgba(51, 65, 85, 0.55);
    }

    .ngr-pwa-notification-center__event-title {
        color: #f8fafc;
    }

    .ngr-pwa-notification-center__event-description {
        color: rgba(203, 213, 225, 0.75);
    }

    .ngr-pwa-notification-center__event-note {
        color: #93c5fd;
    }

    .ngr-pwa-notification-center__close {
        color: rgba(226, 232, 240, 0.85);
        background: rgba(51, 65, 85, 0.6);
    }

    .ngr-pwa-notification-center__close:hover {
        background: rgba(71, 85, 105, 0.6);
    }
}
