/* Fondly's three-door menu (public/fpbar/fp3.js): Moments, Cards, Gifts. Coded from the phone mockup Teo approved on 11 nov
   (mockups/v7/menu-390.html): same sizes, same order. Scoped to .fp3; the header around it belongs to each page (public/shell and
   public/fpbar/fpbar.css). Colours: the open door, the prices and the button take the visit's colour (--fp-cta: red on a red visit,
   green on a green one); the rings of the occasion circles alternate red and green; nothing pastel. Only Baloo 2 and Figtree. */
.fp3{--fp3-ink:#14213D;--fp3-mut:#4A5570;--fp3-line:#E4E7EE;--fp3-tint:#F3F4F6;--fp3-red:#A50E1C;--fp3-green:#0F4A2E;--fp3-cta:var(--fp-cta,#A50E1C);
  display:block;min-width:0;color:var(--fp3-ink);font:400 16px/1.45 Figtree,system-ui,-apple-system,"Segoe UI",sans-serif;text-align:left;letter-spacing:0;text-transform:none}
.fp3 *,.fp3 *::before,.fp3 *::after{box-sizing:border-box}
.fp3 [hidden]{display:none !important}
.fp3 a{color:inherit;text-decoration:none}
.fp3 a:focus-visible,.fp3 button:focus-visible,.fp3 summary:focus-visible{outline:3px solid #1F4FB8;outline-offset:-3px}
.fp3 .fp3-sr{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the three doors: always visible, one third each on a phone */
.fp3 .fp3-doors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--fp3-line);border-bottom:1px solid var(--fp3-line);background:#fff}
.fp3 .fp3-door{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;height:46px;min-height:46px;margin:0 0 -1px;padding:0 4px;border:0;border-bottom:3px solid transparent;border-radius:0;
  background:none;color:var(--fp3-ink);font:700 16px/1 Figtree,system-ui,sans-serif;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}
.fp3 .fp3-door+.fp3-door{border-left:1px solid var(--fp3-line)}
.fp3 .fp3-door[aria-expanded=true],.fp3 .fp3-door[aria-current]{border-bottom-color:var(--fp3-cta);color:var(--fp3-cta)}
.fp3.fp3-open .fp3-door[aria-current][aria-expanded=false]{border-bottom-color:transparent;color:var(--fp3-ink)}   /* one door marked at a time: while another is open, the page's own door rests */
.fp3 .fp3-chev{flex:0 0 auto;transition:transform .15s}
.fp3 .fp3-door[aria-expanded=true] .fp3-chev,.fp3 .fp3-acc[open]>summary .fp3-chev{transform:rotate(180deg)}

/* a drawer: on a phone it hangs under the doors and scrolls on its own; the page behind is dimmed */
.fp3 .fp3-sheet{position:fixed;left:0;right:0;top:var(--fp3-top,0px);z-index:1001;max-height:calc(100vh - var(--fp3-top,0px) - 8px);max-height:calc(100dvh - var(--fp3-top,0px) - 8px);overflow-y:auto;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:14px 16px 20px;background:#fff;border-bottom:1px solid var(--fp3-line);box-shadow:0 14px 24px rgba(20,33,61,.18)}
.fp3 .fp3-veil{position:fixed;left:0;right:0;bottom:0;top:var(--fp3-top,0px);z-index:1000;background:rgba(20,33,61,.45);touch-action:none}
.fp3 .fp3-lab{margin:14px 0 8px;color:var(--fp3-mut);font:700 13px/1.3 Figtree,system-ui,sans-serif}
.fp3 .fp3-sheet>.fp3-lab:first-child,.fp3 .fp3-col:first-child>.fp3-lab:first-child{margin-top:0}
.fp3 .fp3-sheet>.fp3-circs+.fp3-cols{margin-top:14px}

/* occasions: circles with their name, a row that shows there are more */
.fp3 .fp3-circs{display:flex;gap:10px;margin:0 -16px;padding:2px 16px 4px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.fp3 .fp3-circs::-webkit-scrollbar{display:none}
.fp3 .fp3-circ{flex:0 0 72px;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:44px;font:600 13px/1.2 Figtree,system-ui,sans-serif;text-align:center}
.fp3 .fp3-circ i{display:grid;place-items:center;width:66px;height:66px;border:2px solid var(--fp3-red);border-radius:50%;background:var(--fp3-tint);overflow:hidden;font-style:normal}
.fp3 .fp3-circ:nth-child(even) i{border-color:var(--fp3-green)}
.fp3 .fp3-circ img{display:block;width:60px;height:60px;max-width:none;object-fit:contain}

/* people and prices: plain boxes, two per row */
.fp3 .fp3-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#fp3-moments.fp3-sheet .fp3-chips{grid-template-columns:repeat(3,minmax(0,1fr))}   /* lote 2 (12 nov): eight people in three rows, so the drawer leaves page to tap outside on a phone */
.fp3 .fp3-chip{display:grid;place-items:center;min-height:44px;padding:4px 8px;border:1px solid #C9CFDA;border-radius:4px;background:#fff;font:600 15px/1.2 Figtree,system-ui,sans-serif;text-align:center}
.fp3 .fp3-chip-soon{gap:0;line-height:1.1}
.fp3 .fp3-soon{display:block;font:600 11px/1.2 Figtree,system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:#4A5570}
.fp3 .fp3-chip:hover{border-color:var(--fp3-ink)}

/* rows */
.fp3 .fp3-rows{list-style:none;margin:0;padding:0}
.fp3 .fp3-rows li{margin:0;padding:0}
.fp3 .fp3-rows a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;border-top:1px solid var(--fp3-line);font:600 15px/1.25 Figtree,system-ui,sans-serif}
.fp3 .fp3-rows li:first-child a{border-top:0}
.fp3 .fp3-rows b{flex:0 0 auto;color:var(--fp3-mut);font-weight:600;white-space:nowrap}
.fp3 .fp3-rows svg{flex:0 0 auto;color:var(--fp3-mut)}
.fp3 .fp3-big a{min-height:50px;font:700 17px/1.2 'Baloo 2',Figtree,system-ui,sans-serif}
.fp3 .fp3-big b{color:var(--fp3-cta);font:700 15px/1 Figtree,system-ui,sans-serif}
.fp3 .fp3-cta{display:grid;place-items:center;height:48px;margin-top:16px;border-radius:4px;background:var(--fp3-cta);color:#fff;font:700 16px/1 Figtree,system-ui,sans-serif}

/* groups inside Cards: closed on a phone, one tap opens each */
.fp3 .fp3-col+.fp3-col{margin-top:0}
.fp3 .fp3-col:nth-child(2){margin-top:16px}
.fp3 .fp3-acc{border-top:1px solid var(--fp3-line)}
.fp3 .fp3-col:last-child .fp3-acc:last-child{border-bottom:1px solid var(--fp3-line)}
.fp3 .fp3-acc>summary{display:flex;align-items:center;justify-content:space-between;height:48px;list-style:none;font:700 16px/1 Figtree,system-ui,sans-serif;cursor:pointer}
.fp3 .fp3-acc>summary::-webkit-details-marker{display:none}
.fp3 .fp3-acc .fp3-rows{padding:0 0 8px 2px}
.fp3 .fp3-acc .fp3-rows li:first-child a{border-top:1px solid var(--fp3-line)}

/* search on a phone: a sheet from the very top, the field first */
.fp3 .fp3-find{padding:12px 12px 16px}
.fp3 .fp3-f{display:flex;align-items:center;gap:8px;height:48px;margin:0;padding:0 2px 0 10px;border:2px solid var(--fp3-ink);border-radius:4px;background:#fff}
.fp3 .fp3-f .fp3-lens{flex:0 0 auto;color:var(--fp3-ink)}
.fp3 .fp3-f input{flex:1 1 auto;min-width:0;height:40px;margin:0;padding:0;border:0;outline:0;border-radius:0;background:transparent;color:var(--fp3-ink);font:400 16px/1.2 Figtree,system-ui,sans-serif;-webkit-appearance:none;appearance:none}
.fp3 .fp3-f input::placeholder{color:var(--fp3-mut);opacity:1}
.fp3 .fp3-f input::-webkit-search-cancel-button{display:none}
.fp3 .fp3-x{flex:0 0 auto;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:4px;background:none;color:var(--fp3-ink);cursor:pointer}
.fp3 .fp3-try a{font-weight:400}

/* while a drawer is open nothing of the page sits on top of it */
html.fp3-open .fpbar{z-index:1002}
html.fp3-open .navrow{z-index:1002}

/* a laptop: the doors sit in the menu row and each one opens a panel as wide as the header; every group is open */
@media (min-width:901px){
  .fp3 .fp3-doors{display:flex;gap:6px;border:0;background:none}
  .fp3 .fp3-door{height:44px;min-height:44px;margin:0;padding:0 12px;font-size:15px}
  .fp3 .fp3-door+.fp3-door{border-left:0}
  .fp3 .fp3-door:hover{background:var(--fp3-tint)}
  .fp3 .fp3-sheet{position:absolute;left:0;right:0;top:100%;z-index:60;max-height:none;overflow:visible;padding:22px 24px 26px;border:1px solid var(--fp3-line);border-radius:0 0 4px 4px;box-shadow:0 18px 30px rgba(20,33,61,.14)}
  .fp3 .fp3-veil,.fp3 .fp3-find{display:none !important}
  .fp3 .fp3-rows a{min-height:36px;border-top:0;font-weight:500}
  .fp3 .fp3-rows a:hover span{text-decoration:underline}
  .fp3 .fp3-rows .fp3-go{display:none}
  .fp3 .fp3-acc .fp3-rows li:first-child a{border-top:0}
  .fp3 .fp3-big a{min-height:46px;font-weight:700}
  .fp3 .fp3-sheet[data-sheet=moments]{display:grid;grid-template-columns:minmax(0,400px) minmax(0,380px);justify-content:start;column-gap:64px;align-items:start}
  .fp3 .fp3-sheet[data-sheet=moments]>.fp3-rows{grid-row:1 / span 3}
  .fp3 .fp3-sheet[data-sheet=moments]>.fp3-lab{margin-top:0}
  .fp3 .fp3-sheet[data-sheet=gifts]{display:grid;grid-auto-flow:column;grid-template-rows:auto 1fr;grid-template-columns:minmax(0,260px) minmax(0,300px) minmax(0,400px);justify-content:start;column-gap:56px;align-items:start}
  .fp3 .fp3-sheet[data-sheet=gifts]>.fp3-rows{grid-row:1 / span 2}
  .fp3 .fp3-sheet[data-sheet=gifts]>.fp3-lab{margin-top:0}
  .fp3 .fp3-circs{gap:22px;margin:0;padding:2px 0 4px;overflow:visible}
  .fp3 .fp3-circ:hover span{text-decoration:underline}
  .fp3 .fp3-sheet>.fp3-circs+.fp3-cols{margin-top:20px}
  .fp3 .fp3-cols{display:grid;grid-template-columns:minmax(0,1.25fr) repeat(3,minmax(0,1fr));gap:0 36px;align-items:start}
  .fp3 .fp3-col:nth-child(2){margin-top:0}
  .fp3 .fp3-acc,.fp3 .fp3-col:last-child .fp3-acc:last-child{border:0}
  .fp3 .fp3-acc+.fp3-acc{margin-top:14px}
  html body .fp3 .fp3-acc>summary{display:block;height:auto;min-height:0;margin:0 0 8px;padding:0;color:var(--fp3-mut);font:700 13px/1.3 Figtree,system-ui,sans-serif;cursor:default;pointer-events:none}   /* a heading here, not a control: same box as the other labels */
  .fp3 .fp3-acc>summary .fp3-chev{display:none}
  .fp3 .fp3-acc .fp3-rows{padding:0}
}
@media (prefers-reduced-motion:reduce){.fp3 .fp3-chev{transition:none}}
@media print{.fp3 .fp3-sheet,.fp3 .fp3-veil{display:none !important}}
