/* Privacy & safety · 2026-12-06 — "Who can message me" choice (pages/account.php), the welcome card (pages/welcome.php),
   and the location / notification reminder (inc/nudge.php, assets/js/parts/safety.js). */

/* Account → Privacy & safety: two choices for who can message me */
.sf-dm{border:0;margin:0;padding:0;min-width:0}
.sf-dm legend{display:flex;align-items:center;gap:8px;font-weight:700;margin-bottom:8px;padding:0}
.sf-opt{position:relative;display:block;cursor:pointer;margin-bottom:8px}
.sf-opt input{position:absolute;opacity:0;width:1px;height:1px}
.sf-opt span{display:flex;flex-direction:column;gap:2px;padding:12px 14px 12px 44px;border:1.5px solid var(--line);border-radius:14px;background:#fff}
.sf-opt span::before{content:"";position:absolute;left:15px;top:15px;width:18px;height:18px;border-radius:50%;border:2px solid var(--line);background:#fff}
.sf-opt input:checked+span{border-color:var(--leaf-2);background:#F3FBF5}
.sf-opt input:checked+span::before{border-color:var(--leaf-2);box-shadow:inset 0 0 0 4px #fff;background:var(--leaf-2)}
.sf-opt input:focus-visible+span{outline:3px solid var(--lime);outline-offset:2px}
.sf-opt small{color:var(--muted);font-size:13px}

/* Welcome page: "Make ItsVegan work for you" */
.sf-card{margin:22px 0 6px;padding:16px;border:1px solid var(--line);border-radius:var(--r);background:var(--card);box-shadow:var(--sh-1)}
.sf-card h2{font-size:17px;margin:0 0 10px}
.sf-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line-2)}
.sf-row:first-of-type{border-top:0}
.sf-ic{flex:0 0 36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--mint);color:var(--leaf-2)}
.sf-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sf-t small{color:var(--muted);font-size:13px;line-height:1.35}
.sf-row .btn{flex:0 0 auto;white-space:nowrap}
.sf-row .sf-on{color:var(--leaf-2);font-weight:600;font-size:14px;white-space:nowrap}
.sf-row .wp-row{flex:0 0 auto;width:auto;padding:0;border:0;background:none}
.sf-row .wp-row .wp-row-ic{display:none}
.sf-row .wp-row small{display:none}
.sf-row .wp-row b{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;border:1.5px solid var(--line);font-size:14px;color:var(--ink)}
.sf-row .wp-row[data-state="on"] b{border-color:transparent;color:var(--leaf-2);padding:0}
.sf-row .wp-row[data-state="on"] > i{display:none}
@media (max-width:520px){.sf-row{flex-wrap:wrap}.sf-row .btn,.sf-row .sf-on,.sf-row .wp-row{margin-left:48px}}

/* The reminder: a small card at the bottom of the page, from the 3rd visit, back every few days after the X */
.sf-nudge{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:900;width:min(440px,calc(100% - 24px));
  display:flex;align-items:center;gap:12px;padding:12px 12px 12px 14px;border-radius:var(--r);background:var(--card);border:1px solid var(--line);box-shadow:var(--sh-3);
  animation:sfUp .25s ease-out}
.sf-nudge[hidden]{display:none}
.sf-nudge p{flex:1;margin:0;font-size:14px;line-height:1.4}
.sf-nudge .btn{flex:0 0 auto;white-space:nowrap}
.sf-nudge .sf-x{flex:0 0 32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;font-size:16px}
.sf-nudge .sf-x:hover{background:var(--paper-2)}
@media (max-width:760px){.sf-nudge{bottom:calc(84px + env(safe-area-inset-bottom,0px));flex-wrap:wrap}.sf-nudge p{flex-basis:calc(100% - 50px)}.sf-nudge .btn{margin-left:auto}}
@keyframes sfUp{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
@media (prefers-reduced-motion:reduce){.sf-nudge{animation:none}}
.sf-nudge [hidden],.sf-row[hidden],.sf-row [hidden]{display:none!important}
