/* ===== S111 additions (27-nov copy) ===== */

/* nav0: 8 columns  (5 icons + SignIn/SignUp box spanning 2 + video) */
.nav0 .row7.r8{grid-template-columns:repeat(8,var(--col))}
/* nav1: 6 flags (SignUp moved up to nav0) */
#flags.row7{grid-template-columns:repeat(6,var(--col))}

/* ---- shared orange box (same shape as the ADDRESS box) ---- */
.obox{
  grid-column:span 2;
  width:calc(var(--col)*2 + var(--gap));
  height:var(--col);
  box-sizing:border-box;
  border:2.27px solid #22c55e;
  border-radius:12px;
  background:#f97316;
  display:flex;align-items:center;justify-content:space-evenly;
  padding:0 2px;
}
.nav0 .obox{list-style:none}
/* small circles inside the orange boxes */
.obox .emo,.obox .xbtn{width:34px;height:34px;display:grid;place-items:center}
.nav0 .obox .emo span{
  width:30px;height:30px;border-radius:50%;
  display:grid;place-items:center;
  font-size:16px;line-height:1;
  background:#fff;
  box-shadow:0 0 0 2px #fff;
}
.nav0 .obox .emo.active span{box-shadow:0 0 0 2px #fff,0 0 0 4.5px rgba(255,255,255,.45)}
.obox .xbtn{border:0;padding:0;cursor:pointer}
.nav2 .obox #btnFree{width:32px;height:32px;font-size:15px;box-shadow:0 0 0 2px #fff}
.nav2 .obox #btnFree small{font-size:8px;margin-top:2px}
.nav2 .obox #btnCoffee{width:32px;height:32px;box-shadow:0 0 0 2px #fff}
.nav2 .obox #btnCoffee svg{width:20px;height:20px}
/* nav2 (row 4): $0 + coffee box sits in columns 6-7 */
.nav2 .obox{grid-column:6 / 8}

/* ---- video circle ---- */
#btnVideo{border:0;padding:0;background:none;cursor:pointer;width:44px;height:44px;display:grid;place-items:center}
#btnVideo span{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:22px;line-height:1;background:#fff}
#btnVideo:hover span{transform:scale(1.06)}

/* ---- video overlay ---- */
#vidOverlay{position:fixed;inset:0;z-index:200;background:rgba(2,6,23,.82);display:none;align-items:center;justify-content:center;padding:12px}
#vidOverlay.open{display:flex}
#vidOverlay .vbox{position:relative;width:min(853px,calc(100vw - 24px));aspect-ratio:853/480;max-height:calc(100vh - 24px);background:#000;border-radius:10px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.5)}
#vidOverlay iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
#vidClose{position:absolute;top:6px;right:6px;z-index:2;width:34px;height:34px;border-radius:50%;border:0;background:rgba(15,23,42,.75);color:#fff;font-size:20px;line-height:1;cursor:pointer}
#vidClose:hover{background:#ef4444}

/* ---- auth forms: address field + extras ---- */
.auth .row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:420px){.auth .row2{grid-template-columns:1fr}}
.auth select{height:46px;border:2px solid #cbd5e1;border-radius:10px;padding:0 10px;font-size:16px;background:#fff;color:#0f172a}
.auth select:focus{border-color:#38bdf8;outline:none}
.fa{position:relative;display:flex;flex-direction:column;gap:6px}
.fa .fa-in{position:relative}
.fa input{width:100%;box-sizing:border-box;padding-right:40px !important}
.fa .fa-st{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:18px;font-weight:900;pointer-events:none}
.fa.ok input{border-color:#22c55e !important}
.fa.bad input{border-color:#ef4444 !important}
.fa.ok .fa-st{color:#16a34a}
.fa.bad .fa-st{color:#dc2626}
.fa.busy .fa-st{color:#38bdf8}
.fa-msg{font-size:12.5px;font-weight:600;min-height:16px;color:#64748b}
.fa.ok .fa-msg{color:#16a34a}
.fa.bad .fa-msg{color:#dc2626}
.fa-list{list-style:none;margin:0;padding:4px;position:absolute;left:0;right:0;top:100%;margin-top:4px;background:#fff;border:2px solid #cbd5e1;border-radius:10px;box-shadow:0 8px 24px rgba(15,23,42,.15);z-index:30;max-height:260px;overflow:auto;display:none}
.fa-list.open{display:block}
.fa-list li{padding:8px 10px;border-radius:8px;cursor:pointer;font-size:14px;color:#0f172a;line-height:1.3}
.fa-list li small{display:block;color:#64748b;font-size:12px}
.fa-list li:hover,.fa-list li.on{background:#e0f2fe}
.auth .chk{flex-direction:row !important;align-items:center;gap:8px !important;font-weight:600}
.auth .chk input{width:18px;height:18px;padding:0 !important}
.auth .err{color:#dc2626;font-size:13px;font-weight:600;min-height:0}
.auth .err:empty{display:none}
.auth .good{color:#16a34a;font-size:14px;font-weight:700}
.auth .good:empty{display:none}
.auth .alt{font-size:14px;text-align:center;color:#475569}
.auth .alt a{color:#1d4ed8;font-weight:700}
.auth .pw{font-size:12px;color:#64748b;font-weight:600}
.auth button[disabled]{opacity:.6;cursor:wait}

/* ---- simple content cards for food / house / ride / services ---- */
.pcard{background:#fff;border-radius:16px;box-shadow:0 4px 16px rgba(15,23,42,.08);padding:20px;margin-bottom:16px;color:#334155}
.pcard h2{margin:0 0 8px;font-size:18px;color:#0f172a}
.pcard p{margin:0;font-size:15px;line-height:1.5}

/* narrow phones: nav0 has 8 columns, shrink them so the row still fits */
@media (max-width:440px){
  .nav0 .row7.r8{--col:min(44px,calc((100vw - 16px - 7 * var(--gap)) / 8));padding-left:8px;padding-right:8px}
  .nav0 .r8 > li > .emo,.nav0 .r8 #btnVideo{width:var(--col);height:var(--col)}
  .nav0 .r8 > li > .emo > span,.nav0 .r8 #btnVideo span{width:calc(var(--col) - 4px);height:calc(var(--col) - 4px)}
  .nav0 .obox .emo{width:calc(var(--col) - 10px);height:calc(var(--col) - 10px)}
  .nav0 .obox .emo span{width:calc(var(--col) - 14px);height:calc(var(--col) - 14px);font-size:14px}
}
