/* Notificari Web Push: fereastra de activare, ghidul iPhone, mesajul scurt si pagina „Notificarile mele”.
   Mobile first (80% din trafic), culorile si butoanele ca in restul site-ului. */

/* ---------- cardul de pe confirmarea comenzii (fara ecran intunecat) ---------- */
.push-order-card { background: #fff; border: 1px solid #216D6B; border-radius: 8px; padding: 14px; margin-bottom: 1rem; }
.push-card-row { display: flex; gap: 12px; align-items: flex-start; }
.push-card-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e3f0ef; display: flex; align-items: center; justify-content: center; }
.push-card-title { font-weight: 700; font-size: 15px; line-height: 1.4; margin-bottom: 4px; }
.push-card-btns { display: flex; gap: 10px; margin-top: 12px; }
.push-card-btn { flex: 1; font-size: 15px; min-height: 44px; }
.push-card-no { border-color: #dee2e6; color: #33426b; }

/* ---------- foaia de activare ---------- */
.push-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 2000; opacity: 0; transition: opacity .2s; }
.push-scrim.is-open { opacity: 1; }
.push-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2001; background: #fff; color: #000;
    border-radius: 16px 16px 0 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
    max-height: 92vh; overflow-y: auto; box-sizing: border-box; transform: translateY(100%); transition: transform .25s ease-out;
}
.push-sheet.is-open { transform: translateY(0); }
.push-grab { width: 40px; height: 4px; border-radius: 2px; background: #dee2e6; margin: 0 auto 16px; }
.push-ic { width: 56px; height: 56px; border-radius: 50%; background: #e3f0ef; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.push-ic.is-bad { background: #fdecee; }
.push-title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.push-text { margin: 0 0 16px; font-size: 15px; line-height: 1.55; }
.push-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #216D6B; margin-bottom: 8px; }
.push-btn {
    display: block; width: 100%; box-sizing: border-box; padding: .5rem 1rem; font-family: inherit; font-size: 1.25rem; line-height: 1.5;
    border-radius: .375rem; border: 1px solid #216D6B; background: #216D6B; color: #fff; text-align: center; min-height: 48px; cursor: pointer;
}
.push-btn:hover, .push-btn:focus { background: #1b5856; border-color: #1b5856; color: #fff; }
.push-btn[disabled] { opacity: .6; cursor: default; }
.push-btn-outline { background: #fff; color: #216D6B; font-size: 15px; min-height: 44px; }
.push-btn-outline:hover, .push-btn-outline:focus { background: #f1f6f6; color: #216D6B; }
.push-link { display: block; width: 100%; background: none; border: 0; font-family: inherit; text-align: center; padding: 14px; color: #33426b; font-size: 15px; text-decoration: underline; min-height: 44px; cursor: pointer; }
.push-step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
.push-step i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #216D6B; color: #fff; font-style: normal; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.push-dots { display: flex; gap: 6px; justify-content: center; margin: 0 0 12px; }
.push-dots span { width: 8px; height: 8px; border-radius: 4px; background: #cfd4d8; }
.push-dots span.is-on { width: 22px; background: #216D6B; }
.push-note { color: #5b636a; font-size: 13px; line-height: 1.5; margin-top: 10px; }
.push-hl { background: rgba(251, 51, 165, .14); box-shadow: inset 0 0 0 2px #fb33a5; border-radius: 8px; padding: 4px 8px; font-weight: 700; }
.push-ios-visual { border-radius: 12px; background: #e9ecef; border: 1px solid #d5dadd; margin-bottom: 14px; padding: 14px; font-size: 14px; line-height: 1.6; }
.push-ios-visual p { margin: 0 0 6px; }
/* ghidul iPhone: coboara de sus, ca instructiunile sa ramana vizibile deasupra butoanelor iPhone-ului din partea de jos */
.push-sheet.is-top {
    top: 0; bottom: auto; border-radius: 0 0 16px 16px; padding: calc(18px + env(safe-area-inset-top)) 20px 10px;
    max-height: 96vh; transform: translateY(-100%);
}
.push-sheet.is-top.is-open { transform: translateY(0); }
.push-grab-end { margin: 8px auto 0; }
/* ferestre scurte (ex. „Aproape gata”): pe mijlocul ecranului, fara sa se vada altceva din pagina */
.push-sheet.is-center {
    top: 50%; bottom: auto; left: 16px; right: 16px; margin: 0 auto; max-width: 420px; border-radius: 16px;
    padding: 24px 20px 20px; transform: translateY(-46%); opacity: 0; transition: transform .2s, opacity .2s;
}
.push-sheet.is-center.is-open { transform: translateY(-50%); opacity: 1; }
@media (min-width: 768px) {
    .push-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 440px; border-radius: 16px; transform: translate(-50%, -40%); opacity: 0; transition: transform .2s, opacity .2s; padding-bottom: 24px; }
    .push-sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
    .push-sheet.is-top, .push-sheet.is-center { left: 50%; right: auto; bottom: auto; top: 50%; width: 440px; max-width: none; margin: 0; border-radius: 16px; padding: 24px; transform: translate(-50%, -40%); opacity: 0; }
    .push-sheet.is-top.is-open, .push-sheet.is-center.is-open { transform: translate(-50%, -50%); opacity: 1; }
    .push-grab, .push-grab-end { display: none; }
}

/* ---------- machete de iPhone (ghidul de activare) ---------- */
.push-ios-visual { background: none; border: 0; padding: 0; margin-bottom: 14px; }
.ios-screen { background: #f2f2f7; color: #000; border: 1px solid #d5d5da; border-radius: 18px; padding: 12px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.3; overflow: hidden; }
.ios-ic { flex: none; display: block; }
.ios-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.ios-row-ic { flex: none; width: 24px; display: flex; justify-content: center; }
.ios-row-t { flex: 1; min-width: 0; }
.ios-row.is-hl, .ios-hl { background: rgba(251, 51, 165, .14); box-shadow: inset 0 0 0 2px #fb33a5; font-weight: 700; }
.ios-menu, .ios-list { background: #fff; border-radius: 14px; padding: 4px; }
.ios-list { margin-bottom: 8px; }
.ios-list .ios-row + .ios-row { border-top: 1px solid rgba(0, 0, 0, .08); border-radius: 0; }
.ios-list .ios-row.is-hl { border-radius: 10px; border-top-color: transparent; }
.ios-sep { height: 1px; background: rgba(0, 0, 0, .1); margin: 4px 10px; }
.ios-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; background: #fff; border-radius: 14px; padding: 8px 10px; }
.ios-bar-ic { width: 32px; display: flex; justify-content: center; opacity: .9; }
.ios-url { flex: 1; text-align: center; font-size: 15px; }
.ios-bar-dots { width: 40px; text-align: center; font-weight: 700; letter-spacing: 1px; border-radius: 10px; padding: 3px 0; }
.push-hl-dark { background: rgba(251, 51, 165, .14); box-shadow: inset 0 0 0 2px #fb33a5; }
.ios-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.ios-circle { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid rgba(0, 0, 0, .12); display: flex; align-items: center; justify-content: center; }
.ios-add { flex: none; background-color: #0a84ff; color: #fff; font-weight: 600; border-radius: 17px; padding: 7px 14px; font-size: 15px; }
.ios-name { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px 12px 0 0; padding: 10px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.ios-app { flex: none; width: 52px; height: 52px; border-radius: 12px; background: #fff; border: 1px solid #e5e5ea; box-sizing: border-box; object-fit: cover; }
.ios-name-t { font-size: 17px; font-weight: 600; }
.ios-name-u { font-size: 13px; color: #6c6c70; margin-top: 2px; }
.ios-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; background-color: #fff; border-radius: 0 0 12px 12px; padding: 10px; margin: 0 0 8px; }
.ios-sw { flex: none; width: 46px; height: 28px; border-radius: 14px; background: #30d158; position: relative; display: block; }
.ios-sw i { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: block; }
.ios-help { color: #6c6c70; font-size: 12.5px; line-height: 1.4; padding: 0 4px; }
.ios-home { background: linear-gradient(160deg, #cfe0ee, #e9e4f3); padding: 18px 12px; }
.ios-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.ios-cell { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; padding: 6px 0; border-radius: 14px; }
.ios-cell .ios-app, .ios-ph { width: 54px; height: 54px; border-radius: 13px; display: block; }
.ios-cell.is-hl { background: rgba(251, 51, 165, .16); box-shadow: inset 0 0 0 2px #fb33a5; font-weight: 700; }
.push-title .ios-ic { display: inline-block; vertical-align: -4px; margin-right: 6px; color: #216D6B; }
.push-key { display: inline-block; background: #e3f0ef; color: #216D6B; border-radius: 6px; padding: 0 7px; font-weight: 700; letter-spacing: 1px; }

/* ---------- mesaj scurt ---------- */
.push-toast {
    position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 2002; margin: 0 auto; max-width: 420px;
    background: #212529; color: #fff; border-radius: 8px; padding: 12px 16px; font-size: 14px; line-height: 1.4; display: flex; gap: 12px; align-items: center; justify-content: space-between;
}
.push-toast a { color: #fff; text-decoration: underline; white-space: nowrap; }

/* ---------- Notificarile mele ---------- */
.pn { max-width: 560px; }
.pn-guest { margin: 24px auto 48px; padding: 0 16px; }
.pn h1 { font-size: 24px; line-height: 1.25; font-weight: 700; margin: 0 0 14px; }
.pn h2 { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #216D6B; }
.pn-card { background: #fff; border-radius: 8px; border: 1px solid #dee2e6; padding: 6px 16px 8px; margin-bottom: 14px; }
.pn-card.is-pad { padding: 16px; }
.pn-dev { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid #dee2e6; border-radius: 8px; padding: 12px 16px; margin-bottom: 14px; }
.pn-dev b { font-size: 15px; }
.pn-pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 12px; padding: 3px 10px; white-space: nowrap; }
.pn-pill.is-on { background: #d1e7dd; color: #0f5132; }
.pn-pill.is-off { background: #e9ecef; color: #495057; }
.pn-pill.is-bad { background: #f8d7da; color: #842029; }
.pn-opt { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #eef0f2; }
.pn-opt:last-child { border-bottom: 0; }
.pn-opt b { display: block; font-size: 15px; margin-bottom: 2px; }
.pn-opt .pn-help { display: block; color: #5b636a; font-size: 13px; line-height: 1.5; }
.pn-opt-col { display: block; }
.pn-opt-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.pn-sw { -webkit-appearance: none; appearance: none; width: 46px; height: 26px; border-radius: 13px; background: #8a9399; position: relative; flex: none; margin: 2px 0 0; cursor: pointer; border: 0; }
.pn-sw:checked { background: #216D6B; }
.pn-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.pn-sw:checked::after { left: 23px; }
.pn-sw:focus-visible { outline: 2px solid #33426b; outline-offset: 2px; }
.pn-more { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px; background: #f6f4ee; border: 0; border-radius: 6px; padding: 0 12px; font-family: inherit; font-size: 14px; color: #000; margin: 10px 0 0; cursor: pointer; box-sizing: border-box; text-align: left; }
.pn-more svg { transition: transform .15s; }
.pn-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.pn-sub { padding: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pn-sub[hidden] { display: none; }
.pn-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; background: #f6f4ee; border-radius: 6px; padding: 8px 8px 8px 12px; min-height: 44px; box-sizing: border-box; }
.pn-x { background: none; border: 0; color: #b02a37; font-family: inherit; font-size: 13px; text-decoration: underline; min-height: 44px; min-width: 44px; cursor: pointer; }
.pn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pn-chip { position: relative; display: inline-flex; align-items: center; border: 1px solid #cfd4d8; border-radius: 18px; padding: 0 12px; min-height: 36px; font-size: 13px; background: #fff; cursor: pointer; }
.pn-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pn-chip.is-on { border-color: #216D6B; background: #216D6B; color: #fff; font-weight: 600; }
.pn-chip.is-on::before { content: "✓"; margin-right: 6px; }
.pn-check { display: flex; gap: 10px; align-items: center; font-size: 13px; min-height: 40px; }
.pn-check input { width: 18px; height: 18px; margin: 0; accent-color: #216D6B; flex: none; }
.pn-stop { display: block; margin: 4px auto 0; background: none; border: 0; color: #b02a37; font-family: inherit; font-size: 14px; text-decoration: underline; min-height: 44px; cursor: pointer; }
.pn-muted { color: #5b636a; font-size: 13px; line-height: 1.5; }
.pn-actions { margin: 8px 0 12px; }
/* starea dispozitivului decide ce se vede: on = push activ, altfel doar activarea si „Pe email” */
.pn [data-when] { display: none; }
.pn[data-state="on"] [data-when~="on"],
.pn[data-state="off"] [data-when~="off"],
.pn[data-state="blocked"] [data-when~="blocked"],
.pn[data-state="ios"] [data-when~="ios"],
.pn[data-state="unsupported"] [data-when~="unsupported"] { display: block; }
.pn[data-state="on"] .pn-dev[data-when~="on"], .pn[data-state="off"] .pn-dev[data-when~="off"],
.pn[data-state="blocked"] .pn-dev[data-when~="blocked"], .pn[data-state="ios"] .pn-dev[data-when~="ios"] { display: flex; }
.pn-field { width: 100%; box-sizing: border-box; padding: .375rem .75rem; border: 1px solid #dee2e6; border-radius: .375rem; font: inherit; font-size: 15px; min-height: 44px; background: #fff; }

/* ---------- Notificarile mele: varianta compacta (cardul dispozitivului + optiunile, incap pe un ecran de telefon) ---------- */
.pn-compact { padding: 0 16px; }
.pn-compact .pn-opt { padding: 9px 0; align-items: center; }
.pn-compact .pn-opt b { margin-bottom: 0; line-height: 1.3; }
.pn-compact .pn-opt .pn-help { font-size: 12.5px; line-height: 1.35; }
.pn-compact .pn-sw { margin: 0; }
.pn-compact .pn-opt-col { padding: 9px 0 4px; }
.pn-compact .pn-opt-row { align-items: center; }
.pn-compact .pn-more { background: none; min-height: 32px; padding: 0; margin: 2px 0 0; width: auto; justify-content: flex-start; gap: 4px; color: #216D6B; font-size: 13px; font-weight: 600; }
.pn-compact .pn-more svg { width: 16px; height: 16px; }
.pn-compact .pn-sub { padding-top: 6px; gap: 6px; }
.pn-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 0 8px; font-size: 13px; border-bottom: 1px solid #eef0f2; }
.pn-confirm[hidden] { display: none; }
.pn-confirm span { flex: 1 1 100%; }
.pn-confirm .pn-x { min-height: 36px; min-width: 0; padding: 0; }
.pn-x-neutral { color: #216D6B; }
.pn-card { margin-bottom: 10px; }
.pn-card:not(.is-pad):not(.pn-compact) { padding: 0 16px; }
.pn-card:not(.is-pad):not(.pn-compact) .pn-opt { padding: 9px 0; align-items: center; }
.pn-card:not(.is-pad):not(.pn-compact) .pn-sw { margin: 0; }
/* titlul paginii repeta tab-ul „Notificari” din cont: pe telefon ramane doar pentru cititoare de ecran */
@media (max-width: 767.98px) {
    .pn h1.acc-page-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
}
.pn-this { font-weight: 400; color: #5b636a; }
.pn-check-row { display: flex; align-items: flex-start; justify-content: flex-start; gap: 2px; }
.pn-info { flex: none; width: 15px; height: 15px; margin-top: 6px; border-radius: 50%; border: 1.2px solid #216D6B; background: #fff; color: #216D6B; font: italic 700 10px/1 Georgia, serif; padding: 0; cursor: pointer; position: relative; }
.pn-info::before { content: ""; position: absolute; inset: -14px; } /* zona de atingere de 44 px */
.pn-info[aria-expanded="true"] { background: #216D6B; color: #fff; }
.pn-info-text { background: #f6f4ee; border-radius: 6px; padding: 8px 12px; font-size: 13px; line-height: 1.45; color: #212529; }
.pn-info-text[hidden] { display: none; }
.pn-row .pn-x { flex: none; max-width: 84px; text-align: right; line-height: 1.25; }
.pn-info-sup { margin-top: 0; }
.pn h2.pn-group { margin: 4px 2px 6px; }
.pn-nl-box { padding: 4px 0 14px; }
.pn-nl-box[hidden] { display: none; }
.pn-nl-error { color: #b02a37; font-size: 13px; margin: 0 0 8px; }
.pn-nl-error[hidden] { display: none; }
