/* دعوة اشتراك إشعارات العملاء (2D) — مستقلّة وتستخدم --brand إن وُجد */
.push-prompt {
    position: fixed;
    inset-inline: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    max-width: 430px;
    margin-inline: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(15, 12, 20, .26);
    padding: 16px 16px 14px;
    transform: translateY(18px);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

.push-prompt.is-on { transform: translateY(0); opacity: 1; }

.push-prompt__x {
    position: absolute;
    inset-inline-start: 12px;
    top: 12px;
    border: 0;
    background: rgba(0, 0, 0, .05);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    color: #6b6472;
    line-height: 1;
}

.push-prompt__head { display: flex; gap: 10px; align-items: flex-start; padding-inline-end: 30px; }
.push-prompt__head strong { display: block; font-size: .98rem; color: #241f2b; }
.push-prompt__head small { display: block; margin-top: 3px; color: #7a7280; font-size: .8rem; line-height: 1.5; }
.push-prompt__ico {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: var(--brand, #3b1f3a);
    color: #fff;
    font-size: 1.05rem;
}

.push-prompt__topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.push-topic { position: relative; cursor: pointer; }
.push-topic input { position: absolute; opacity: 0; pointer-events: none; }
.push-topic span {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid #e6dff0;
    background: #faf8fc;
    font-size: .78rem;
    font-weight: 700;
    color: #5d5566;
    transition: .15s ease;
}
.push-topic input:checked + span {
    background: var(--brand, #3b1f3a);
    border-color: var(--brand, #3b1f3a);
    color: #fff;
}
.push-topic input:focus-visible + span { outline: 2px solid rgba(0, 0, 0, .25); outline-offset: 2px; }

.push-prompt__acts { display: flex; gap: 8px; }
.push-go, .push-later {
    flex: 1 1 auto;
    border: 0;
    border-radius: 14px;
    padding: 11px 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.push-go { background: var(--brand, #3b1f3a); color: #fff; }
.push-go:disabled { opacity: .6; cursor: default; }
.push-later { background: #f3eff7; color: #5d5566; flex: 0 0 34%; }

.push-prompt__note { margin: 9px 2px 0; font-size: .78rem; font-weight: 700; color: #1f6f5b; }
.push-prompt__note.is-bad { color: #b3261e; }

/* زر إلغاء الاشتراك — يظهر فقط للمشتركين */
.push-off {
    position: fixed;
    inset-inline-start: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    border: 1px solid #e6dff0;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px);
    color: #5d5566;
    border-radius: 999px;
    padding: 8px 13px;
    font: inherit;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 12, 20, .12);
}

@media (max-width: 420px) {
    .push-prompt { inset-inline: 8px; }
}
