/* app/css/phone.css — the shared frame on the phone (rebuild w2, 2026-11-09), from the App boards (AppShop, AppHome, AppProduct,
   AppBook, AppBag, AppPassport) at 390. It loads last, after the match-* sheets. Every rule is scoped to the customer surface
   (admin and stylist keep their own chrome). Page layouts on the phone live in each page's own match-* sheet, not here. */

/* ---------------------------------------------------------------- the header: the board's two buttons (WhatsApp, bag) */
@media (max-width: 600px) {
  :root:not([data-surface="admin"]):not([data-surface="stylist"]) .topbar .top-actions .top-acct { display: none; } /* her account is the Hair Diary tab */
  :root:not([data-surface="admin"]):not([data-surface="stylist"]) .topbar .top-actions .top-bell:not(.has-unread) { display: none; } /* the bell only with something unread */
  :root:not([data-surface="admin"]):not([data-surface="stylist"]) .topbar .top-actions { gap: 10px; }
  :root:not([data-surface="admin"]):not([data-surface="stylist"]) .topbar .top-actions .icon-btn { width: 46px; height: 46px; }
  :root:not([data-surface="admin"]):not([data-surface="stylist"]) .topbar .brand { height: 40px; }
}

/* ---------------------------------------------------------------- the tab bar: the App · Shop board's own .a-tabs (t1: its markup in
   app.js TabBar, its CSS in board-app-shop.css, pinned by board-frame.css). Its 86 px bar, 7 px top and hairline: 94 px. */
@media (max-width: 959.98px) { :root:not([data-surface="admin"]):not([data-surface="stylist"]) { --tabbar: 94px; } }

/* ---------------------------------------------------------------- the toast's next step ("View bag") */
.toast-zone .toast { pointer-events: auto; }
.toast .toast-act { margin-left: 10px; padding: 6px 12px; min-height: 32px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ny-gold-grad, #E8CB7A); color: var(--ny-ink, #0B0A08); font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; }
.toast .toast-act:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------------------------------------------------------------- shared phone parts (views/phone-parts.js) */
/* StickyActionBar: an ordinary row on a wide screen; on the phone it sits above the tab bar */
.sab { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-family: var(--ny-sans), system-ui, sans-serif; }
.sab .sab-lead { flex: 1 1 auto; min-width: 0; color: var(--ny-ink); font-weight: 800; }
.sab .sab-acts { display: flex; gap: 10px; flex: 0 0 auto; }
.sab .sab-acts > :is(a, button) { min-height: 48px; }
@media (max-width: 600px) {
  .sab.sab-phone, .sab.sab-always { position: sticky; bottom: calc(var(--tabbar, 64px) + env(safe-area-inset-bottom, 0px)); z-index: 20; margin-inline: -16px; padding: 10px 16px; background: rgba(255,255,255,.97); border-top: 1px solid rgba(var(--ny-ink-rgb),.08); box-shadow: 0 -10px 24px -18px rgba(var(--ny-ink-rgb),.5); }
}
.sab.sab-always { position: sticky; bottom: 0; z-index: 20; background: rgba(255,255,255,.97); }

/* RowCard: a square picture, two lines, something on the right */
.rowcard { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 10px 12px; box-sizing: border-box; border: 1px solid rgba(var(--ny-ink-rgb),.1); border-radius: 18px; background: #fff; color: var(--ny-ink); text-align: left; text-decoration: none; font: inherit; font-family: var(--ny-sans), system-ui, sans-serif; cursor: default; }
:is(a, button).rowcard { cursor: pointer; }
:is(a, button).rowcard:focus-visible { outline: 2px solid var(--ny-gold-ink, #A0703A); outline-offset: 2px; }
.rowcard .rc-pic { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--ny-paper, #F4EEE2); }
.rowcard .rc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rowcard .rc-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rowcard .rc-title { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.rowcard .rc-sub { font-size: 13px; color: rgba(var(--ny-ink-rgb),.62); overflow-wrap: anywhere; }
.rowcard .rc-right { flex: 0 0 auto; font-weight: 800; color: var(--ny-ink); }

/* SegmentedChips: the board's square-cornered chips, wrapping */
.segchips { display: flex; flex-wrap: wrap; gap: 8px; }
.segchip { min-height: 44px; padding: 0 14px; border-radius: 4px; border: 1px solid rgba(var(--ny-ink-rgb),.18); background: transparent; color: var(--ny-ink); font: 700 14px/1 var(--ny-sans), system-ui, sans-serif; cursor: pointer; }
.segchip[aria-pressed="true"] { background: var(--ny-gold, #C9963F); border-color: var(--ny-gold, #C9963F); color: var(--ny-ink); }
.segchip:focus-visible { outline: 2px solid var(--ny-gold-ink, #A0703A); outline-offset: 2px; }
.segchips-dark .segchip { border-color: rgba(var(--ny-cream-rgb),.28); color: var(--ny-cream); }
.segchips-dark .segchip[aria-pressed="true"] { color: var(--ny-ink); }
.segchip small { font-weight: 600; opacity: .7; }

/* NextSheet: the tick line and the stacked actions */
.nextsheet .ns-line { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 700; }
.nextsheet .ns-tick { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ny-gold, #C9963F); color: var(--ny-ink); flex: none; }
.nextsheet .ns-acts { display: grid; gap: 10px; }
.nextsheet .ns-acts > :is(a, button) { min-height: 50px; }

/* ---------------------------------------------------------------- the footer on the phone: the board's columns, two by two */
@media (max-width: 600px) {
  .nfoot .fbrand .lgbox { height: 84px; }
  /* "Talk to us" takes the whole row (the columns are a flex row, match-home.css), so the email and the web address never
     break mid-word (verify-w2 defect 3) */
  .nfoot .cols > .talk { flex: 1 1 100%; }
  .nfoot .cols > .talk li a { overflow-wrap: normal; word-break: normal; }
  .nfoot .legal { display: flex; flex-direction: column; gap: 6px; }
  .nfoot .legal .lglinks a:first-child { margin-left: 0; }
}

/* ---------------------------------------------------------------- the footer at every width (WebHome's footer, verify-w2 defect 4)
   The board's footer is a .ny-wrap (1360 wide, 5% gutters): its gold hairline runs inside that width, not edge to edge, and
   its link rows sit 39 px apart (15 px text, 5 px padding, a 10 px gap). On a desk with a mouse the rows take the board's
   spacing; on touch they keep their 44 px targets. */
:root:not([data-surface="admin"]):not([data-surface="stylist"]) .nfoot { border-top: 0; padding-top: 0; }
:root:not([data-surface="admin"]):not([data-surface="stylist"]) .nfoot .in { border-top: 1px solid rgba(var(--ny-gold2-rgb), .25); padding-top: 60px; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .nfoot .cols ul { gap: 10px; }
  .nfoot .cols li a { min-height: 0; padding: 5px 0; }
}

/* ---------------------------------------------------------------- "More from Nayeli" on the Hair Diary tab (phone only, D11)
   The phone has no desk nav, so Hair care, Our story, the Hair guide and Contact sit at the top of every Hair Diary page. */
.phone-more { display: none; }
@media (max-width: 600px) {
  .phone-more { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 4px; margin: 0; font-family: var(--ny-sans), system-ui, sans-serif; }
  .phone-more::-webkit-scrollbar { display: none; }
  .phone-more a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(var(--ny-ink-rgb), .14); background: #fff; color: var(--ny-ink); font: 700 13px/1 var(--ny-sans), system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
  .phone-more a[aria-current="page"] { border-color: var(--ny-gold, #C9963F); }
  .phone-more a:focus-visible { outline: 2px solid var(--ny-gold-ink, #A0703A); outline-offset: 2px; }
}
