/* ============================================
   DIGIBOOTH – FREE PHOTO BOOTH
   Markup: includes/digiboothContent.php · Behaviour: include/digibooth.js
   Buttons use the site's .btn / .btn-primary / .btn-secondary (style-critical.css).
   ============================================ */

/* ============================================
   PAGE TITLE (shared by the 4 booth pages)
   ============================================ */
.digibooth-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  background: linear-gradient(135deg, #b721ff, #21d4fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 125px 24px 8px;
  margin: 0;
}

.digibooth-description {
  text-align: center;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.4;
  color: var(--color-text-muted);
  margin: 0 auto 10px;
  padding: 0 24px;
  max-width: 720px;
}

/* ============================================
   STUDIO LAYOUT
   ============================================ */
.booth {
  --b-ink: #16131c;
  --b-muted: #6b7280;
  --b-line: #e5e7eb;
  --b-brand: #a21ce6;
  --b-brand-ink: #7d12b3;
  --b-brand-soft: rgba(162, 28, 230, 0.08);
  --b-stage: #1a1022;
  --b-stage-raised: rgba(255, 255, 255, 0.08);
  --b-stage-line: rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 24px 56px;
  color: var(--b-ink);
}

.booth [hidden] {
  display: none !important;
}

.booth svg[viewBox="0 0 24 24"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booth button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.booth button:focus-visible,
.booth input:focus-visible,
.booth select:focus-visible {
  outline: 2px solid var(--b-brand);
  outline-offset: 2px;
}

/* ============================================
   STAGE (dark, camera side)
   ============================================ */
.booth__stage {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: 20px;
  border-radius: 24px;
  background: var(--b-stage);
  color: #fff;
  overflow: hidden;
  scroll-margin-top: 76px;
}

.booth__view {
  width: 100%;
}

/* ---------- Start + error ---------- */
.booth__start,
.booth__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
}

.booth__schematic {
  height: 176px;
  width: 100%;
  margin-bottom: 28px;
}

.booth__schematic svg {
  width: 100%;
  height: 100%;
}

.booth__schematic .s-page { fill: #fff; }
.booth__schematic .s-slot { fill: #d9cde6; }
.booth__schematic .s-cap { fill: #c3b5d3; }
.booth__schematic .s-film .s-page { fill: #0c0810; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
.booth__schematic .s-film .s-hole { fill: var(--b-stage); }

.booth__start-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.booth__start-text {
  margin: 0 0 24px;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.booth__start-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
}

.booth__text-btn {
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.booth__text-btn:hover {
  background: var(--b-stage-raised);
}

.booth__privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.booth__privacy svg[viewBox] {
  width: 16px;
  height: 16px;
}

.booth__error-icon[viewBox] {
  width: 40px !important;
  height: 40px !important;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Shoot ---------- */
.booth__shoot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.booth__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.booth__counter {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--b-stage-raised);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-inline-end: auto;
}

.booth__camera-select {
  max-width: 240px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--b-stage-line);
  border-radius: 10px;
  background: var(--b-stage);
  color: #fff;
  font: 500 0.8125rem/1.2 var(--font-sans);
  text-overflow: ellipsis;
}

.booth__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--b-stage-raised);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.booth__icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.booth__icon-btn--lg {
  width: 52px;
  height: 52px;
}

.booth__icon-btn--lg svg[viewBox] {
  width: 24px;
  height: 24px;
}

/* Viewfinder: cropped to the chosen layout's frame shape, the same crop the render uses */
.booth__vf {
  --booth-ar: 1.47;
  position: relative;
  width: 100%;
  max-height: 60vh;
  max-width: calc(60vh * var(--booth-ar));
  aspect-ratio: var(--booth-ar);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  transition: aspect-ratio 0.25s ease;
}

.booth__vf video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booth__count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(96px, 20vw, 200px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.booth__count.is-tick {
  animation: booth-tick 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes booth-tick {
  from { transform: scale(1.35); opacity: 0.2; }
  to { transform: scale(1); opacity: 1; }
}

.booth__flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.booth__flash.is-on {
  animation: booth-flash 0.5s ease-out;
}

@keyframes booth-flash {
  from { opacity: 1; }
  to { opacity: 0; }
}

.booth__rec {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.booth__rec span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f43f5e;
  animation: booth-blink 0.8s steps(2, jump-none) infinite;
}

@keyframes booth-blink {
  50% { opacity: 0.2; }
}

.booth__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.booth.is-starting .booth__spinner {
  opacity: 1;
  animation: booth-spin 0.8s linear infinite;
}

@keyframes booth-spin {
  to { transform: rotate(360deg); }
}

/* Shot progress: one tile per photo of the layout */
.booth__slots {
  --booth-ar: 1.47;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.booth-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  aspect-ratio: var(--booth-ar);
  padding: 0;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: transparent center / cover no-repeat;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: default;
  transition: border-color 0.15s ease, transform 0.2s ease;
}

.booth-slot.is-next {
  border-style: solid;
  border-color: #fff;
  color: #fff;
}

.booth-slot.is-filled {
  border: 0;
  cursor: pointer;
  animation: booth-pop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.booth-slot.is-filled:hover {
  box-shadow: 0 0 0 2px #fff;
}

@keyframes booth-pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.booth__controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.booth__controls > :first-child { justify-self: start; }
.booth__controls > :last-child { justify-self: end; }

.booth__shutter {
  width: 76px;
  height: 76px;
  padding: 5px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.booth__shutter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease, border-radius 0.2s ease, background-color 0.2s ease;
}

.booth__shutter:hover span { transform: scale(0.94); }
.booth__shutter:active span { transform: scale(0.86); }
.booth__shutter.is-live span { background: #f43f5e; }

/* While a sequence runs the shutter becomes a stop button */
.booth.is-busy .booth__shutter span {
  transform: scale(0.46);
  border-radius: 6px;
}

.booth__shutter:focus-visible {
  outline-offset: 4px;
}

/* ---------- Result ---------- */
.booth__result {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The strip slides out of a print slot */
.booth__print {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 16px 0 24px;
  overflow: hidden;
}

.booth__print::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 1;
  width: min(80%, 420px);
  height: 6px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: #07040a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.booth__print canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(68vh, 760px);
  box-shadow: 0 28px 56px -16px rgba(0, 0, 0, 0.7);
}

.booth__print canvas.is-film {
  /* Sprocket holes are transparent in the PNG; light them up like a light table here */
  background: #efeaf3;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
}

.booth__print.is-printing canvas {
  animation: booth-print 1.5s cubic-bezier(0.3, 0.6, 0.2, 1) both;
}

@keyframes booth-print {
  from { transform: translateY(-104%); }
  to { transform: translateY(0); }
}

.booth__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.booth__status::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: booth-spin 0.8s linear infinite;
}

/* ---------- Drag & drop, toast ---------- */
.booth__drop {
  position: absolute;
  inset: 12px;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(26, 16, 34, 0.9);
  font-size: 1.125rem;
  font-weight: 600;
  pointer-events: none;
}

.booth.is-dragging .booth__drop {
  display: flex;
}

.booth__toast {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 6;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--b-ink);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.booth__toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Full screen (party / kiosk mode) ---------- */
.booth__stage:fullscreen {
  border-radius: 0;
  padding: 24px;
}

.booth__stage:fullscreen .booth__vf {
  max-height: 76vh;
  max-width: calc(76vh * var(--booth-ar));
}

.booth__stage:-webkit-full-screen {
  border-radius: 0;
  padding: 24px;
}

/* ============================================
   PANEL (light, controls side)
   ============================================ */
.booth__panel [data-steps] {
  display: none;
}

.booth[data-step="start"] [data-steps~="start"],
.booth[data-step="error"] [data-steps~="error"],
.booth[data-step="shoot"] [data-steps~="shoot"],
.booth[data-step="design"] [data-steps~="design"] {
  display: block;
}

.booth.is-busy .booth__panel {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.booth__group {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--b-line);
}

.booth__label {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--b-ink);
}

.booth__hint {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: var(--b-muted);
}

/* ---------- Ready + actions ---------- */
.booth__ready-title {
  margin: 0 0 4px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.booth__ready-text {
  margin: 0 0 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--b-muted);
}

.booth__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booth__actions .btn {
  width: 100%;
}

.booth__actions .btn svg[viewBox] {
  width: 20px;
  height: 20px;
}

.booth .booth__dl-live { display: none; }
.booth.is-live-result .booth__dl-live { display: inline-flex; }
.booth.is-live-result .booth__dl-still { display: none; }
.booth.is-exporting [data-export] { cursor: progress; opacity: 0.7; }

.booth__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

/* ---------- Chips (toggles + small actions) ---------- */
.booth__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.booth__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--b-line);
  border-radius: 999px;
  background: #fff;
  color: var(--b-ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.booth__chip svg[viewBox] {
  width: 18px;
  height: 18px;
}

.booth__chip:hover {
  border-color: #c9ccd3;
}

.booth__chip[aria-pressed="true"] {
  border-color: rgba(162, 28, 230, 0.45);
  background: var(--b-brand-soft);
  color: var(--b-brand-ink);
}

/* ---------- Layout tiles ---------- */
.booth__layouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.booth-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px 10px;
  border: 1px solid var(--b-line);
  border-radius: 12px;
  background: #fff;
  color: var(--b-ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.booth-layout:hover {
  border-color: #c9ccd3;
}

.booth-layout__art {
  display: block;
  width: 100%;
  height: 52px;
  margin-bottom: 6px;
}

.booth-layout__art svg {
  width: 100%;
  height: 100%;
}

.booth-layout .s-page { fill: #fff; stroke: #cfd3da; stroke-width: 1; }
.booth-layout .s-slot { fill: #e4e0ea; transition: fill 0.15s ease; }
.booth-layout .s-cap { fill: #d6d1de; }
.booth-layout .s-film .s-page { fill: #2b2533; stroke: #2b2533; }
.booth-layout .s-film .s-hole { fill: #fff; }

.booth-layout[aria-pressed="true"] {
  border-color: var(--b-brand);
  box-shadow: inset 0 0 0 1px var(--b-brand);
}

.booth-layout[aria-pressed="true"] .s-slot {
  fill: rgba(162, 28, 230, 0.32);
}

.booth-layout__name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
}

.booth-layout__count {
  font-size: 0.75rem;
  color: var(--b-muted);
}

/* ---------- Filters ---------- */
.booth__filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 10px;
}

.booth-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.booth-filter__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--booth-snap) center / cover no-repeat, #ddd;
  filter: var(--booth-filter, none);
  transition: box-shadow 0.15s ease;
}

.booth-filter[aria-pressed="true"] .booth-filter__img {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--b-brand);
}

.booth-filter__name {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--b-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booth-filter[aria-pressed="true"] .booth-filter__name {
  color: var(--b-ink);
  font-weight: 600;
}

/* ---------- Timer ---------- */
.booth__segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: #f3f4f6;
}

.booth__segmented button {
  padding: 8px 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--b-muted);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.booth__segmented button[aria-pressed="true"] {
  background: #fff;
  color: var(--b-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1), 0 0 0 1px rgba(16, 24, 40, 0.04);
}

/* ---------- Photos (retake) ---------- */
.booth__photos {
  --booth-ar: 1.47;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booth-photo {
  position: relative;
  height: 52px;
  aspect-ratio: var(--booth-ar);
  max-width: 120px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #eee center / cover no-repeat;
  overflow: hidden;
  cursor: pointer;
}

.booth-photo span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 19, 28, 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.booth-photo:hover span,
.booth-photo:focus-visible span {
  opacity: 1;
}

@media (hover: none) {
  .booth-photo span {
    align-items: flex-end;
    padding-bottom: 4px;
    background: linear-gradient(transparent 45%, rgba(22, 19, 28, 0.7));
    opacity: 1;
  }
}

/* ---------- Background swatches ---------- */
.booth__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booth-swatch {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}

.booth-swatch[aria-pressed="true"],
.booth-swatch.is-selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--b-brand);
}

.booth-swatch--custom {
  background: conic-gradient(#f43f5e, #f59e0b, #84cc16, #06b6d4, #6366f1, #d946ef, #f43f5e);
  overflow: hidden;
}

.booth-swatch--custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.booth-swatch--custom:focus-within {
  outline: 2px solid var(--b-brand);
  outline-offset: 2px;
}

/* ---------- Caption ---------- */
.booth__label label {
  cursor: pointer;
}

.booth__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--b-line);
  border-radius: 12px;
  background: #fff;
  color: var(--b-ink);
  font: 400 1rem/1.4 var(--font-sans);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.booth__input::placeholder {
  color: #9ca3af;
}

.booth__input:focus {
  outline: none;
  border-color: var(--b-brand);
  box-shadow: 0 0 0 3px rgba(162, 28, 230, 0.14);
}

.booth__fonts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.booth__fonts button {
  height: 44px;
  border: 1px solid var(--b-line);
  border-radius: 10px;
  background: #fff;
  color: var(--b-ink);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.booth__fonts button[aria-pressed="true"] {
  border-color: rgba(162, 28, 230, 0.45);
  background: var(--b-brand-soft);
  color: var(--b-brand-ink);
}

/* ============================================
   EVENT PITCH (include/boothEventCta.php)
   Standalone below the booth; compact inside the panel.
   ============================================ */
.digibooth-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 1152px;
  width: calc(100% - 48px);
  margin: 0 auto 72px;
  padding: 28px 0;
  border-top: 1px solid var(--color-border, #e5e7eb);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.booth-event-cta p {
  margin: 0;
}

.booth-event-cta-title {
  flex-basis: 100%;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text, #1a1a1a);
}

.booth-event-cta-text {
  flex: 1 1 380px;
  max-width: 60ch;
  margin-top: -8px !important;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text-muted, #6b7280);
}

.booth-event-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booth__event .digibooth-cta {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.booth__event .booth-event-cta-title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.booth__event .booth-event-cta-text {
  margin: 0 0 14px !important;
  font-size: 0.875rem;
}

.booth__event .booth-event-cta-actions .btn {
  flex: 1 1 auto;
  padding: 12px 16px;
  font-size: 0.9375rem;
}

.booth__panel > .booth__group:last-child {
  border-bottom: 0;
}

/* Outside the design step the timer/toggles group is the last one shown */
.booth:not([data-step="design"]) .booth__group[data-steps="start error shoot"] {
  margin-bottom: 0;
  border-bottom: 0;
}

/* ============================================
   PRINT (Print button prints only the strip)
   ============================================ */
#boothPrintSheet {
  display: none;
}

@media print {
  @page { margin: 8mm; }

  body.booth-printing > *:not(#boothPrintSheet) {
    display: none !important;
  }

  body.booth-printing #boothPrintSheet {
    display: flex;
    justify-content: center;
  }

  #boothPrintSheet img {
    max-width: 100%;
    max-height: 96vh;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 959px) {
  .booth {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 16px;
    padding: 0 16px 40px;
  }

  .booth__stage {
    position: relative;
    top: 0;
    min-height: 0;
    padding: 14px;
    border-radius: 20px;
  }

  .booth__start,
  .booth__error {
    padding: 24px 4px 16px;
  }

  .booth__schematic {
    height: 132px;
    margin-bottom: 20px;
  }

  .booth__vf {
    max-height: 56vh;
    max-height: 56svh;
    max-width: calc(56svh * var(--booth-ar));
    border-radius: 12px;
  }

  .booth__print canvas {
    max-height: 62vh;
    max-height: 62svh;
  }

  /* Pickers scroll sideways like a camera app */
  .booth__layouts,
  .booth__filters {
    display: flex;
    gap: 8px;
    margin-inline: -16px;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .booth__layouts::-webkit-scrollbar,
  .booth__filters::-webkit-scrollbar {
    display: none;
  }

  .booth-layout {
    flex: 0 0 104px;
    scroll-snap-align: start;
  }

  .booth-filter {
    flex: 0 0 68px;
    scroll-snap-align: start;
    padding-top: 4px;
  }

  .digibooth-cta {
    width: calc(100% - 32px);
    margin-bottom: 48px;
  }

  .booth-event-cta-actions,
  .booth-event-cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .digibooth-title {
    padding-top: 110px;
    font-size: 1.75rem;
  }

  .booth__shutter {
    width: 68px;
    height: 68px;
  }

  .booth-slot {
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booth *,
  .booth *::before {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }

  .booth.is-starting .booth__spinner,
  .booth__status::before {
    animation: none !important;
  }
}


/* ============================================
   PAGE GUIDE (include/boothGuide.php)
   Three numbered tips under the booth: white cards with the booth's dark
   icon tiles, on a soft brand-tinted background with faint photo strips.
   ============================================ */
.booth-guide {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 360px at 6% 38%, rgba(183, 33, 255, 0.08), transparent 70%),
    radial-gradient(560px 360px at 94% 46%, rgba(33, 212, 253, 0.1), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fbf8fe 100%);
}

.booth-guide .container {
  position: relative;
  z-index: 1;
}

/* Background artwork: loose prints like the ones the booth makes */
.booth-guide__art {
  position: absolute;
  top: 40px;
  width: 260px;
  height: 520px;
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(76, 29, 149, 0.1));
}

.booth-guide__art--l {
  left: calc(50% - 760px);
}

.booth-guide__art--r {
  right: calc(50% - 760px);
}

.booth-guide__art .bg-print {
  fill: #fff;
  stroke: rgba(22, 19, 28, 0.07);
  stroke-width: 1;
}

.booth-guide__art .bg-shot {
  fill: url(#bgShotFill);
}

.booth-guide__art .bg-cap {
  fill: #e6dff0;
}

.booth-guide__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1104px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}

.booth-guide__steps > li {
  display: flex;
}

.booth-guide__card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 28px 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 19, 28, 0.04), 0 22px 44px -24px rgba(76, 29, 149, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hairline border that picks up the title gradient at the top left */
.booth-guide__card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(183, 33, 255, 0.5), rgba(33, 212, 253, 0.32) 38%, rgba(22, 19, 28, 0.07) 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (hover: hover) {
  .booth-guide__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(22, 19, 28, 0.04), 0 28px 52px -24px rgba(76, 29, 149, 0.42);
  }
}

.booth-guide__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.booth-guide__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, #3b2452, #1a1022 72%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 24px -12px rgba(162, 28, 230, 0.75);
}

.booth-guide__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booth-guide__num {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #b721ff, #21d4fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.28;
}

.booth-guide__title {
  margin: 0 0 8px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #16131c;
}

.booth-guide__desc {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--color-text-muted, #6b7280);
}

@media (max-width: 1024px) {
  .booth-guide__steps {
    gap: 16px;
  }

  .booth-guide__card {
    padding: 24px 22px 26px;
  }

  .booth-guide__art {
    opacity: 0.6;
  }
}

@media (max-width: 860px) {
  .booth-guide__steps {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-top: 40px;
  }

  .booth-guide__top {
    margin-bottom: 18px;
  }

  .booth-guide__num {
    font-size: 2.25rem;
  }

  /* Phones: one set of prints peeking in at the top corner */
  .booth-guide__art--l {
    display: none;
  }

  .booth-guide__art--r {
    top: -60px;
    right: -150px;
    width: 220px;
    height: 440px;
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booth-guide__card {
    transition: none;
  }

  .booth-guide__card:hover {
    transform: none;
  }
}
