/* Alerts and messages on the Notifications screen, the explanation sheet
   and the message banner (app-src/push-optin.js). Plain app colours: ink,
   white, and Zuma red for the one thing that needs a tap. A state is always
   a word in a pill with an icon, never a colour on its own. */

.acct-group.zpo{margin-top:30px}
.zpo .zpo-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 4px 4px}
.zpo-label{font-weight:700}
.zpo-pill{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:6px 11px;font-size:.8rem;font-weight:800;
  background:#f4f3f3;color:#4a4a4f;white-space:nowrap}
.zpo-pill svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.zpo-pill.on{background:#ffe9ec;color:#b3001b}
.zpo-pill.warn{background:#fff4e0;color:#7a4b00}
.zpo-pill.bad{background:#ffe9ec;color:#9b0016}
.zpo-note{padding:0 4px}
.zpo-btn{margin:14px 4px 0;min-height:44px}
.zpo-count{display:inline-block;margin-left:6px;background:#ed1732;color:#fff;border-radius:99px;padding:2px 8px;
  font-size:.7rem;letter-spacing:.04em;vertical-align:1px}
.zpo-empty{color:#8a8a8f;font-size:.92rem;padding:10px 4px;margin:0}
.zpo-list{list-style:none;margin:6px 0 0;padding:0}
.zpo-item{padding:14px 4px 14px 16px;border-bottom:1px solid #f0f0f1;position:relative}
.zpo-item.unread:before{content:"";position:absolute;left:2px;top:21px;width:7px;height:7px;border-radius:50%;background:#ed1732}
.zpo-item-top{display:flex;align-items:center;gap:8px}
.zpo-item-top strong{font-size:.98rem}
.zpo-new{font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#b3001b;background:#ffe9ec;
  border-radius:6px;padding:2px 6px}
.zpo-item p{margin:5px 0 6px;color:#48484d;line-height:1.5;font-size:.92rem;white-space:pre-line;overflow-wrap:anywhere}
.zpo-item-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.zpo-item-foot small{color:#9a9aa0}

/* The explanation sheet: a bottom sheet on a phone, a card on a wide screen. */
.zpo-sheet{position:fixed;inset:0;z-index:70;display:flex;align-items:flex-end;justify-content:center}
.zpo-scrim{position:absolute;inset:0;border:0;background:rgb(10 10 12 / 45%);cursor:default}
.zpo-panel{position:relative;width:min(460px,100%);background:#fff;border-radius:24px 24px 0 0;
  padding:26px 22px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -18px 50px #0003;animation:zpoUp .28s ease both}
.zpo-panel h2{font-size:1.35rem;margin:12px 0 8px}
.zpo-panel p{color:#5c5c61;line-height:1.55;margin:0 0 18px}
.zpo-panel .primary,.zpo-panel .secondary{display:block;width:100%;min-height:48px;margin-top:10px}
.zpo-bell{width:48px;height:48px;border-radius:16px;background:#ffe9ec;color:#ed1732;display:grid;place-items:center}
.zpo-bell svg{width:24px;height:24px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:700px){.zpo-sheet{align-items:center}.zpo-panel{border-radius:24px}}
@keyframes zpoUp{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}

/* The message banner, on body so the app's re-renders leave it alone. */
.zpo-banner{position:fixed;z-index:60;left:50%;top:max(14px,env(safe-area-inset-top));transform:translateX(-50%);
  width:min(440px,calc(100% - 24px));display:flex;gap:12px;align-items:flex-start;background:#171717;color:#fff;
  border-radius:18px;padding:14px 12px 12px 14px;box-shadow:0 18px 50px #0005;animation:zpoDown .3s ease both}
.zpo-banner-ic{flex:none;width:36px;height:36px;border-radius:12px;background:#ed1732;display:grid;place-items:center}
.zpo-banner-ic svg,.zpo-banner-x svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.zpo-banner-t{flex:1;min-width:0}
.zpo-banner-t strong{display:block;font-size:.95rem}
.zpo-banner-t p{margin:3px 0 8px;color:#d6d6da;font-size:.87rem;line-height:1.45;overflow-wrap:anywhere;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.zpo-banner-act{display:flex;gap:8px}
.zpo-banner-act button{border:0;border-radius:10px;padding:8px 12px;font-weight:800;font-size:.82rem;min-height:36px}
.zpo-banner-go{background:#ed1732;color:#fff}
.zpo-banner-all{background:#2c2c2f;color:#fff}
.zpo-banner-x{flex:none;border:0;background:transparent;color:#bdbdc2;width:36px;height:36px;border-radius:10px;display:grid;place-items:center}
.zpo-banner-x:hover{background:#2c2c2f;color:#fff}
@keyframes zpoDown{from{transform:translate(-50%,-16px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
@media(prefers-reduced-motion:reduce){.zpo-panel,.zpo-banner{animation:none}}
