/* The guest page's modules, in every event template. Every colour is a guest-page token the template's palettes.json
   sets (guest-card, guest-line, guest-control, guest-fill, guest-muted, guest-primary, guest-on-primary,
   guest-primary-text, guest-ring, guest-error, gold-hi, line-gold, tile-orange, tile-green, tile-gold, tile-indigo, tile-on,
   tile-on-gold, ivory, and qr-ink and qr-paper for the entry code's QR, dark on light in every palette); the type comes
   from the page around it. */
.gm-card, .gm-card *, .gm-note, .gm-note *, .gm-bar, .gm-bar *, .gm-entry, .gm-entry * { box-sizing: border-box; }
.gm-card { display: flex; flex-direction: column; gap: 12px; width: 100%; margin: 0; padding: 16px; background: var(--guest-card); border: 1px solid var(--guest-line); border-radius: 26px; color: var(--ivory); text-align: start; }
.gm-card[hidden], .gm-note[hidden], .gm-field[hidden] { display: none; }
.gm-card p { margin: 0; }
.gm-menu { gap: 2px; padding-block: 10px; }
.gm-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 4px; }
.gm-grow { flex: 1; min-width: 0; }
.gm-h3 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.gm-small { font-size: 13px; line-height: 1.5; }
.gm-muted { color: var(--guest-muted); }

.gm-ico { width: 22px; height: 22px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gm-tile { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--tile-orange); color: var(--tile-on); }
.gm-tile .gm-ico { width: 20px; height: 20px; stroke-width: 2.3; }

.gm-tag { flex: none; padding: 3px 12px; border-radius: 999px; background: var(--guest-fill); color: var(--gold-hi); font-size: 14px; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gm-tag.done { background: var(--guest-primary); color: var(--guest-on-primary); }

.gm-dishes { list-style: none; margin: 0; padding: 0; }
.gm-dish { display: flex; align-items: center; gap: 12px; min-height: 60px; padding-block: 6px; box-shadow: 0 1px 0 var(--guest-line); }
.gm-dish:last-child { box-shadow: none; }
.gm-dish-name { font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.gm-dish .gm-muted { overflow-wrap: anywhere; }
.gm-stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.gm-step { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--guest-control); color: var(--ivory); box-shadow: inset 0 0 0 1.5px var(--guest-line); cursor: pointer; }
.gm-step .gm-ico { width: 20px; height: 20px; }
.gm-step:disabled { opacity: .4; cursor: default; }
.gm-num { min-width: 26px; text-align: center; font-size: 22px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }

.gm-note { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; min-height: 44px; padding: 10px 14px; border-radius: 16px; background: var(--guest-control); color: var(--guest-muted); font-size: 15px; line-height: 1.5; }
.gm-note .gm-ico { color: var(--guest-primary-text); }
.gm-notice { background: var(--guest-card); border: 1px solid var(--guest-ring); color: var(--ivory); }
.gm-notice .gm-ico { color: var(--guest-ring); }

.gm-field { display: flex; flex-direction: column; gap: 6px; }
.gm-label { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--guest-muted); }
.gm-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--guest-line); border-radius: 14px; background: var(--guest-control); color: var(--ivory); font: inherit; line-height: 1.4; text-align: start; }
.gm-input::placeholder { color: var(--guest-muted); opacity: 1; }
.gm-input:focus { outline: 2px solid var(--guest-ring); outline-offset: 1px; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-chip { min-height: 44px; display: inline-flex; align-items: center; padding: 4px 16px; border: 0; border-radius: 999px; background: var(--guest-fill); color: var(--ivory); font: inherit; font-size: 14px; line-height: 1.3; cursor: pointer; }
.gm-chip[aria-pressed="true"] { background: var(--guest-primary); color: var(--guest-on-primary); font-weight: 700; }
.gm-step:focus-visible, .gm-chip:focus-visible, .gm-btn:focus-visible { outline: 2px solid var(--guest-ring); outline-offset: 2px; }

.gm-nudge { box-shadow: 0 0 0 2px var(--guest-ring); }
.gm-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 8px 20px; border: 0; border-radius: 999px; background: var(--guest-primary); color: var(--guest-on-primary); font: inherit; font-weight: 700; line-height: 1.25; cursor: pointer; }


/* The gift list: its own screen, a bar with the way back, a note on who sees what, and a row per item. */
.gm-bar { display: flex; align-items: center; gap: 8px; min-height: 64px; margin-block: -8px -4px; }
.gm-back { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--guest-control); color: var(--guest-primary-text); cursor: pointer; }
[dir="ltr"] .gm-back .gm-ico { transform: scaleX(-1); }
.gm-bar-title { flex: 1; min-width: 0; margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--ivory); overflow-wrap: anywhere; }
.gm-bar-title:focus { outline: none; }
.gm-stack { display: flex; flex-direction: column; gap: 12px; }
.gm-gifts { gap: 0; padding-block: 2px; }
.gm-items { list-style: none; margin: 0; padding: 0; }
.gm-item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding-block: 10px; box-shadow: 0 1px 0 var(--guest-line); }
.gm-item:last-child { box-shadow: none; }
.gm-item-words { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.gm-item-name { font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.gm-item-name:focus { outline: none; }
.gm-wrap { overflow-wrap: anywhere; }
.gm-item .gm-tag { padding: 2px 10px; border-radius: 12px; font-size: 13px; white-space: normal; }
.gm-tag.gm-mine { background: var(--guest-primary); color: var(--guest-on-primary); }
.gm-tag.gm-taken { background: var(--guest-control); color: var(--guest-muted); }
.gm-dim > .gm-tile, .gm-dim .gm-item-name { opacity: .7; }
.gm-tile.gm-green { background: var(--tile-green); color: var(--tile-on); }
.gm-tile.gm-gold { background: var(--tile-gold); color: var(--tile-on-gold); }
.gm-out { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; color: var(--guest-primary-text); font-size: 14px; font-weight: 700; text-decoration: none; unicode-bidi: isolate; }
.gm-out:focus-visible { outline: 2px solid var(--guest-ring); outline-offset: 2px; border-radius: 6px; }
.gm-strong-note { margin: 0; color: var(--ivory); font-weight: 700; }
.gm-error { margin: 0; color: var(--guest-error); }
.gm-btn.gm-sm { width: auto; flex: none; min-height: 44px; padding: 6px 16px; font-size: 15px; gap: 6px; }
.gm-btn.gm-ghost { background: var(--guest-fill); color: var(--ivory); }
.gm-btn:disabled { opacity: .6; cursor: default; }
.gm-btn[aria-busy="true"] { opacity: .75; }
.gm-btn .gm-ico { width: 20px; height: 20px; }
.gm-entry { gap: 10px; }
.gm-entry .gm-ico, .gm-surprise .gm-ico { color: var(--guest-primary-text); }
/* On the page, the gift screen's notes take a card's colour, so their text keeps its contrast at the top of the gradient. */
.gm-stack > .gm-note:not(.gm-notice) { background: var(--guest-card); border: 1px solid var(--guest-line); }
.gm-stack > .gm-note.gm-gold { color: var(--guest-primary-text); border-color: var(--line-gold); }
.gm-note.gm-gold .gm-ico { color: var(--guest-primary-text); }

/* The condolence card. */
.gm-condolence { gap: 10px; }
.gm-condolence [hidden], .gm-item [hidden] { display: none; }
.gm-textarea { display: block; min-height: 96px; resize: vertical; line-height: 1.6; }
.gm-foot { padding-block: 0; }
.gm-send .gm-ico { width: 18px; height: 18px; }
.gm-saved { background: var(--guest-control); color: var(--ivory); }
.gm-saved .gm-ico { color: var(--guest-ring); }
.gm-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gm-back:focus-visible, .gm-textarea:focus-visible { outline: 2px solid var(--guest-ring); outline-offset: 2px; }

/* The entry code: the QR on its own white, whose quiet zone the SVG carries, the short code a door can type, the guest's
   name and party. */
.gm-entry-card { align-items: center; gap: 12px; padding: 18px; }
.gm-entry-card .gm-row { align-self: center; }
.gm-tile.gm-indigo { background: var(--tile-indigo); color: var(--tile-on); }
.gm-qrbox { width: 240px; max-width: 100%; flex: none; overflow: hidden; border-radius: 22px; background: var(--qr-paper); }
.gm-qr { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.gm-qr-paper { fill: var(--qr-paper); }
.gm-qr-ink { fill: var(--qr-ink); }
.gm-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; font-weight: 700; letter-spacing: 3px; line-height: 1.4; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.gm-entry-name { font-size: 22px; font-weight: 700; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }
.gm-center { text-align: center; }
.gm-stack > .gm-note.gm-entry-note, .gm-entry-note { background: var(--guest-card); border: 1px solid var(--guest-line); color: var(--guest-muted); }
.gm-entry-bright .gm-ico { color: var(--guest-primary-text); }
.gm-entry-private .gm-ico { color: var(--guest-ring); }
.gm-stack > .gm-note.gm-entry-nudge, .gm-entry-nudge { background: var(--guest-card); border: 1px solid var(--line-gold); color: var(--guest-primary-text); }
.gm-entry-nudge .gm-ico { color: var(--guest-primary-text); }
.gm-tag.gm-wait { background: var(--guest-fill); color: var(--guest-primary-text); white-space: normal; text-align: center; }
.gm-answer { gap: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .gm-step, .gm-chip, .gm-tag, .gm-btn { transition: background-color .15s, color .15s, opacity .15s; }
}

/* The voice message: fixed at the bottom's reading start, clear of the music control at the other end (shared/music.css).
   A note before the opener's tap, the card while it is open, and a round button once it is closed; the icons take their
   button's text colour, and the speaking icon on the note the primary text colour. */
.gm-voice, .gm-voice * { box-sizing: border-box; }
.gm-voice { position: fixed; z-index: 6; inset-inline-start: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); max-width: min(420px, calc(100% - 28px)); color: var(--ivory); font-size: 15px; line-height: 1.5; text-align: start; transition: opacity .4s ease, transform .4s ease; }
body:has(> .eventiz-music:not([hidden])) .gm-voice:not([data-mode="note"]) { max-width: min(420px, calc(100% - 86px)); }
.gm-voice[hidden], .gm-voice [hidden] { display: none; }
.gm-voice.aside { opacity: 0; pointer-events: none; transform: translateY(8px); }
.gm-voice[data-mode="card"] { width: 100%; }
/* Before the tap the note sits over the template's closed cover (an envelope or doors), which stands above the page. */
.gm-voice[data-mode="note"] { z-index: 90; inset-inline-end: max(14px, env(safe-area-inset-right)); display: flex; justify-content: center; max-width: none; pointer-events: none; }
.gm-voice p { margin: 0; }
.gm-solar { width: 22px; height: 22px; flex: none; display: block; }
.gm-solar .gm-fill { fill: currentColor; }
.gm-solar .gm-stroke { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gm-voice-note, .gm-voice-card { background: var(--guest-card); border: 1px solid var(--guest-line); box-shadow: 0 8px 24px color-mix(in srgb, var(--guest-primary) 18%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gm-voice-note { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-size: 14px; }
.gm-voice-note .gm-solar { color: var(--guest-primary-text); }
.gm-voice-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 8px; border-radius: 22px; }
.gm-voice-row { display: flex; align-items: center; gap: 10px; }
.gm-voice-text { font-weight: 700; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.gm-voice-track { display: block; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: var(--guest-line); }
.gm-voice-track i { display: block; width: 0; height: 100%; background: var(--guest-primary); }
.gm-voice-foot { display: flex; align-items: center; gap: 8px; padding-inline-start: 54px; }
.gm-voice-by { flex: 1; min-width: 0; color: var(--guest-muted); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.gm-voice-error { padding-inline-start: 54px; color: var(--guest-error); font-size: 13px; line-height: 1.45; }
.gm-voice-play, .gm-voice-mute, .gm-voice-fold, .gm-voice-open { flex: none; display: grid; place-items: center; padding: 0; margin: 0; border: 0; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gm-voice-play { width: 44px; height: 44px; background: var(--guest-primary); color: var(--guest-on-primary); }
.gm-voice-play .gm-solar { width: 18px; height: 18px; }
.gm-voice-play[aria-busy="true"] { opacity: .75; }
.gm-voice-mute { width: 44px; height: 44px; background: var(--guest-control); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--guest-line); }
.gm-voice-mute[aria-pressed="true"] { color: var(--guest-error); }
.gm-voice-fold { width: 36px; height: 36px; margin-block: -4px; margin-inline-end: -4px; background: transparent; color: var(--guest-primary-text); }
.gm-voice-fold .gm-solar { width: 20px; height: 20px; }
.gm-voice-open { position: relative; width: 44px; height: 44px; background: var(--guest-primary); color: var(--guest-on-primary); box-shadow: 0 6px 18px color-mix(in srgb, var(--guest-primary) 22%, transparent); }
.gm-voice-play:focus-visible, .gm-voice-mute:focus-visible, .gm-voice-fold:focus-visible, .gm-voice-open:focus-visible { outline: 2px solid var(--guest-ring); outline-offset: 3px; }
.gm-voice-play:active, .gm-voice-mute:active, .gm-voice-open:active { transform: scale(.94); }
/* While the host speaks, a soft ring breathes around play, as around the playing music control. */
.gm-voice.speaking .gm-voice-play { box-shadow: 0 0 0 4px color-mix(in srgb, var(--guest-primary) 22%, transparent); animation: gm-voice-breathe 1.6s ease-in-out infinite; }
.gm-voice.fresh .gm-voice-open::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--guest-primary) 45%, transparent); animation: gm-voice-call 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes gm-voice-call { 50% { transform: scale(1.14); opacity: .3; } }
@keyframes gm-voice-breathe { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--guest-primary) 8%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .gm-voice, .gm-voice.aside { transition: none; transform: none; }
  .gm-voice.speaking .gm-voice-play, .gm-voice.fresh .gm-voice-open::after { animation: none; }
  .gm-voice-play:active, .gm-voice-mute:active, .gm-voice-open:active { transform: none; }
}
