/* TEST ONLY — portal BookingSheet styling adapted for the public booking page.
   Mobile keeps the portal's compact sheet design. Desktop (>=1024px) expands
   the form into a two-column layout with a sticky summary rail.
   Scoped to .portal-form plus test-page layout overrides. */

.portal-form-card { border-radius: 1.75rem; }

/* Keep the phone layout locked. iOS lets overflow:auto strips widen
   the page — clip the document and only allow vertical page pans.
   Day/photo strips keep pan-x inside their clip wrappers. */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y; /* page: vertical only — kills sideways slide */
}
.portal-test-section,
.portal-form-card,
.portal-form,
.portal-form__main,
.portal-form__rail,
.pf-sec,
.pf-sec__body,
.pf-swap,
.pf-swap__inner,
.pf-hscroll {
  max-width: 100%;
  min-width: 0;
}
/* Clip shell so wide day/photo children cannot expand the page on iOS. */
.pf-hscroll {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.pf-days,
.pf-photos {
  touch-action: pan-x; /* strip swipe only */
}

/* Mobile: drop the outer form box so section cards can breathe.
   Desktop keeps the bordered card around the whole form. */
@media (max-width: 1023px) {
  .portal-form-card {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0;
    box-shadow: none;
  }
  /* Nested cards were toned for sitting inside the outer box —
     with the box gone they become the surface again. */
  .portal-form-card .pf-sec,
  .portal-form-card .pf-summary-card,
  .portal-form-card .pf-family,
  .portal-form-card .pf-tile,
  .portal-form-card .pf-pet-card,
  .portal-form-card .pf-day,
  .portal-form-card .pf-photo,
  .portal-form-card .pf-field input,
  .portal-form-card .pf-field textarea {
    background: hsl(var(--card));
  }
  .pf-sec, .pf-summary-card {
    margin-bottom: 0.875rem;
    overflow: hidden; /* keep day/photo strips + date field inside the card */
  }
  .pf-sec[data-sec="reach"] {
    overflow: visible; /* address suggest menu must not clip */
  }
  .pf-sec__body, .pf-swap, .pf-swap__inner, .pf-sec__open { min-width: 0; max-width: 100%; }
  .portal-form,
  .portal-form__grid,
  .portal-form__main,
  .portal-form__rail { overflow-x: clip; }
  #booking-lite-shell .portal-form { margin-top: 2rem; }
}

/* Already on a booking page — no floating Book / Call / Text row on mobile. */
.rr-dock-site { display: none !important; }

.portal-form {
  --pf-radius: 1.5rem;
  --pf-radius-sm: 0.75rem;
  --pf-sel: hsl(var(--primary));
  color: hsl(var(--foreground));
  font-size: 1rem;
}
.portal-form *, .portal-form *::before, .portal-form *::after { box-sizing: border-box; }
.portal-form [hidden] { display: none !important; }

.pf-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Section cards — portal language: rounded surface cards with a light border */
.pf-sec, .pf-summary-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--pf-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  /* Keep section titles clear of the sticky header on Confirm advance. */
  scroll-margin-top: 6.5rem;
}
.portal-form-card .pf-sec, .portal-form-card .pf-summary-card {
  background: hsl(var(--background));
}
.pf-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.pf-sec__title { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.pf-count { font-weight: 600; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.pf-optional { font-weight: 400; color: hsl(var(--muted-foreground)); font-size: 0.8125rem; }
.pf-hint { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); line-height: 1.45; margin-top: 0.5rem; }
.pf-size-note { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); line-height: 1.45; margin: 0.5rem 0 0; }
.pf-body-pick { margin-top: 0.75rem; }
.pf-body-pick__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.pf-body-pick .pf-pills { margin-top: 0.5rem; }
.pf-body-pick .pf-pill > span { padding: 0.55rem 0.85rem; }
.pf-sublabel { font-size: 0.875rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.pf-body-pick .pf-sublabel { margin: 0 0 0.25rem; }
.pf-body-back {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: hsl(var(--accent));
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.pf-body-back:focus-visible { outline: 2px solid hsl(var(--ring, 214 100% 50%)); outline-offset: 2px; }
#pf-body-pills {
  transition: opacity 0.18s ease;
}
#pf-body-pills.is-fading {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #pf-body-pills { transition: none; }
}
.pf-inline-block { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid hsl(var(--border)); }
.pf-inline-block .pf-sublabel { margin-top: 0; }

/* Collapse summaries */
.pf-summary {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
}
.pf-summary__label { display: block; font-size: 1rem; font-weight: 700; }
.pf-summary__text { display: block; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); white-space: pre-line; }
.pf-change { flex-shrink: 0; font-size: 0.8125rem; font-weight: 700; color: hsl(var(--accent)); text-decoration: underline; }

/* Fields */
.pf-field { display: block; margin-bottom: 0.875rem; min-width: 0; max-width: 100%; }
.pf-field > span { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.375rem; }
.pf-field input, .pf-field textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  border: 1px solid hsl(var(--border)); border-radius: var(--pf-radius-sm);
  background: hsl(var(--card)); color: hsl(var(--foreground));
  padding: 0.75rem 1rem; font-size: 1rem; line-height: 1.4;
}
.portal-form-card .pf-field input, .portal-form-card .pf-field textarea { background: hsl(var(--background)); }
.pf-field input:focus, .pf-field textarea:focus { outline: 2px solid hsl(var(--ring, 214 100% 50%)); outline-offset: 1px; }
.pf-grid2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; min-width: 0; }
@media (min-width: 640px) { .pf-grid2 { grid-template-columns: 1fr 1fr; } }

/* Pills (portal accentTint-tinted, red when chosen) */
.pf-pills { display: flex; gap: 0.5rem; margin-top: 0.75rem; min-width: 0; max-width: 100%; }
.pf-pills--wrap { flex-wrap: wrap; }
.pf-pill { position: relative; flex: 1; cursor: pointer; min-width: 0; }
.pf-pills--wrap .pf-pill { flex: 0 1 auto; max-width: 100%; }
.pf-pill input { position: absolute; opacity: 0; pointer-events: none; }
.pf-pill > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem;
  padding: 0.625rem 0.75rem; border: 1px solid hsl(var(--border)); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; text-align: center; transition: background .15s, color .15s, border-color .15s;
}
.pf-pill > span small { font-weight: 400; opacity: .75; font-size: 0.6875rem; }
.pf-pill input:checked + span { background: hsl(var(--accent) / .12); border-color: hsl(var(--accent)); color: hsl(var(--accent)); }
.pf-pill input:focus-visible + span { outline: 2px solid hsl(var(--ring, 214 100% 50%)); }

/* Category pills */
/* Category pills — wrap on mobile (no slider); equal widths in one
   row once the form is wide enough. */
.pf-cats {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1rem; overflow: visible;
}
.pf-cats .pf-pill {
  flex: 1 1 calc(50% - 0.25rem); /* two-up wrap on phones */
  min-width: 0;
  max-width: 100%;
}
.pf-cats .pf-pill > span {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
@media (min-width: 720px) {
  .pf-cats { flex-wrap: nowrap; }
  .pf-cats .pf-pill { flex: 1 1 0; }
}

/* Service families (portal accordion cards) */
.pf-family { border: 1px solid hsl(var(--border)); border-radius: 1.5rem; margin-bottom: 0.75rem; overflow: hidden; background: hsl(var(--card)); }
.portal-form-card .pf-family { background: hsl(var(--background)); }
.pf-family__head {
  display: flex; width: 100%; align-items: center; gap: 0.75rem;
  background: none; border: 0; padding: 0.875rem 1rem; cursor: pointer; color: inherit; text-align: left;
}
.pf-family__title { font-weight: 700; font-size: 1rem; display: block; min-width: 0; flex: 1; }
.pf-family__sub { display: block; font-size: 0.75rem; font-weight: 600; color: hsl(var(--accent)); margin-top: 0.125rem; }
.pf-family__chev {
  flex-shrink: 0; font-size: 1.25rem; font-weight: 700; line-height: 1;
  color: hsl(var(--muted-foreground)); transition: transform 160ms ease;
}
.pf-family.is-open .pf-family__chev { transform: rotate(90deg); }
.pf-family__body { display: none; padding: 0 0.75rem 0.75rem; }
.pf-family.is-open .pf-family__body { display: block; }
.pf-family__note { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.75rem; line-height: 1.45; }

/* Service / add-on tiles — portal: solid accent when chosen */
.pf-tiles { display: grid; gap: 0.625rem; }
.pf-tile {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left;
  border: 1px solid hsl(var(--border)); border-radius: 1.25rem; padding: 0.875rem 1rem;
  background: hsl(var(--card)); color: hsl(var(--foreground)); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.portal-form-card .pf-tile { background: hsl(var(--background)); }
.pf-tile__main { flex: 1; min-width: 0; }
.pf-tile__name { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.pf-tile__price { display: block; font-size: 0.75rem; opacity: .7; font-variant-numeric: tabular-nums; }
.pf-tile:hover { border-color: hsl(var(--accent)); }
.pf-tile.is-selected { background: var(--pf-sel); border-color: var(--pf-sel); color: hsl(var(--primary-foreground)); }
.pf-tile.is-included { border-style: dashed; cursor: default; opacity: .85; }
.pf-tile.is-included .pf-tile__price { color: hsl(var(--accent)); font-weight: 700; opacity: 1; }

/* Quantity stepper (portal: vertical, right edge of the tile) */
.pf-stepper {
  display: flex; flex-direction: column; align-items: center; gap: 0.125rem; flex-shrink: 0;
  border-left: 1px solid hsl(var(--border)); padding-left: 0.625rem;
}
.pf-tile.is-selected .pf-stepper { border-left-color: hsl(var(--primary-foreground) / .4); }
.pf-stepper button {
  width: 1.375rem; height: 1.375rem; border-radius: 999px; border: 1px solid currentColor;
  background: none; color: inherit; font-size: 0.75rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.pf-stepper__qty { font-size: 0.8125rem; font-weight: 700; min-width: 1rem; text-align: center; }

/* Paint-condition chips */
.pf-condition { margin-bottom: 0.75rem; }
.pf-condition .pf-pill > span { flex-direction: row; }

/* Pet hair — portal custom slider (continuous drag, snap on release) */
.pf-pet-card {
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  padding: 1rem;
  background: hsl(var(--card));
}
.portal-form-card .pf-pet-card { background: hsl(var(--background)); }
.pf-pet-slider {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.25rem;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.pf-pet-slider:focus-visible { box-shadow: 0 0 0 2px hsl(var(--accent) / 0.45); border-radius: 999px; }
.pf-pet-slider__track {
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  background: hsl(var(--border));
}
.pf-pet-slider__fill {
  position: absolute;
  left: 0;
  height: 0.5rem;
  border-radius: 999px;
  background: hsl(var(--accent));
  width: 0%;
  pointer-events: none;
}
.pf-pet-slider__tick {
  position: absolute;
  top: 50%;
  width: 0.625rem;
  height: 0.625rem;
  margin-top: -0.3125rem;
  margin-left: -0.3125rem;
  border-radius: 999px;
  background: hsl(var(--border));
  pointer-events: none;
}
.pf-pet-slider__tick.is-on { background: hsl(var(--accent)); }
.pf-pet-slider__tick[data-tick="0"] { left: 0%; }
.pf-pet-slider__tick[data-tick="1"] { left: 33.333%; }
.pf-pet-slider__tick[data-tick="2"] { left: 66.666%; }
.pf-pet-slider__tick[data-tick="3"] { left: 100%; }
.pf-pet-slider__thumb {
  position: absolute;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  margin-left: -0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid hsl(var(--accent));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  left: 0%;
  pointer-events: none;
}
.pf-pet-levels {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.pf-pet-level {
  flex: 1 1 0;
  border: 0;
  background: none;
  padding: 0.25rem 0.15rem;
  cursor: pointer;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  border-radius: 0.5rem;
  transition: transform 120ms ease, color 120ms ease;
}
.pf-pet-level:active { transform: scale(0.98); }
.pf-pet-level[aria-pressed="true"] {
  color: hsl(var(--foreground));
  font-weight: 700;
}
.pf-pet-level__name { display: block; font-size: 0.8125rem; line-height: 1.2; }
.pf-pet-level__price {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}
.pf-pet-selection {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.pf-included-label { font-size: 0.8125rem; font-weight: 700; margin: 1rem 0 0.5rem; }

/* Day strip — next 14 days on mobile, 28 on desktop. More dates sits beside
   the strip until it would cover the days on mobile; then it wraps
   (.is-more-wrapped). JS sizes the scroller so the next day peeks about 40%. */
.pf-day-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}
.pf-day-row.is-more-wrapped {
  flex-wrap: wrap;
  align-items: flex-start;
}
.pf-day-row .pf-hscroll {
  flex: 1 1 auto;
  min-width: 0;
}
.pf-day-row.is-more-wrapped .pf-hscroll {
  flex: 0 0 auto;
}
.pf-days {
  display: flex; gap: 0.5rem; padding-bottom: 0.5rem;
  width: 100%; max-width: 100%; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.pf-days::-webkit-scrollbar { display: none; }
.pf-day {
  flex: 0 0 auto; width: 3.75rem; padding: 0.625rem 0.25rem; text-align: center; cursor: pointer;
  border: 1px solid hsl(var(--border)); border-radius: 1rem; background: hsl(var(--card)); color: inherit;
  scroll-snap-align: start;
}
.portal-form-card .pf-day { background: hsl(var(--background)); }
.pf-day small { display: block; font-size: 0.6875rem; text-transform: capitalize; opacity: .7; }
.pf-day strong { display: block; font-size: 1.125rem; line-height: 1.3; }
.pf-day span { display: block; font-size: 0.6875rem; opacity: .7; }
.pf-day.is-selected { background: var(--pf-sel); border-color: var(--pf-sel); color: hsl(var(--primary-foreground)); }
.pf-day.is-pinned { box-shadow: inset 0 0 0 1px hsl(var(--accent) / .35); }
.pf-day input { position: absolute; opacity: 0; pointer-events: none; }

/* More dates — beside the day strip (native date input covers the chip). */
.pf-day-row .pf-pill--more { align-self: center; }
.pf-pill--more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex: 0 0 auto;
  padding: 0.625rem 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
  color: hsl(var(--accent));
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.portal-form-card .pf-pill--more { background: hsl(var(--background)); }
.pf-pill--more svg { flex-shrink: 0; }
.pf-pill--more > span { line-height: 1.2; }
.pf-pill--more input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.pf-pill--more.is-selected {
  border-color: hsl(var(--accent));
  background: hsl(var(--accent) / .12);
}

/* Photos */
.pf-photos {
  display: flex; gap: 0.5rem; padding-bottom: 0.25rem; margin-top: 0.5rem;
  width: 100%; max-width: 100%; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.pf-photos::-webkit-scrollbar { display: none; }
.pf-photo {
  position: relative;
  flex: 0 0 auto; width: 5.25rem; height: 5.25rem; border: 1.5px dashed hsl(var(--border)); border-radius: 1rem;
  display: grid; place-items: center; text-align: center; cursor: pointer; background: hsl(var(--card));
  font-size: 0.625rem; font-weight: 600; color: hsl(var(--muted-foreground)); padding: 0.375rem;
  scroll-snap-align: start;
}
.portal-form-card .pf-photo { background: hsl(var(--background)); }
.pf-photo input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.pf-photo.has-file { border-style: solid; border-color: hsl(var(--accent)); color: hsl(var(--accent)); overflow: hidden; padding: 0; }
.pf-photo.has-file img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-photo.is-heic { border-style: solid; border-color: hsl(var(--accent)); }
.pf-photo__heic { font-size: 0.68rem; line-height: 1.25; padding: 0.35rem; pointer-events: none; }
.pf-photo__heic small { display: block; font-weight: 500; opacity: 0.75; margin-top: 0.15rem; }
.pf-photo__remove {
  position: absolute; top: 0.2rem; right: 0.2rem; z-index: 2;
  width: 1.35rem; height: 1.35rem; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.pf-photo-error { color: hsl(var(--accent)); font-weight: 600; }

/* Summary / rail */
.pf-lines { list-style: none; margin: 0 0 0.75rem; padding: 0; font-size: 0.875rem; }
.pf-lines li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.25rem 0; }
.pf-total { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-top: 0.5rem; }
.pf-total strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.pf-total span { font-size: 0.875rem; font-weight: 600; }
.pf-consent { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.75rem; line-height: 1.5; margin-top: 1rem; }
.pf-consent input { margin-top: 0.125rem; }
.pf-reassure { font-size: 0.75rem; color: hsl(var(--muted-foreground)); line-height: 1.5; margin-top: 0.75rem; }
.pf-reassure a { text-decoration: underline; }
.pf-day.is-full { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }
.pf-day.is-full span { font-size: 0.65rem; letter-spacing: 0.04em; text-transform: uppercase; }
.pf-headlight-upgrade { margin-top: 0.75rem; }
.pf-tile--check { display: flex; align-items: flex-start; gap: 0.65rem; width: 100%; text-align: left; cursor: pointer; }
.pf-tile--check input { margin-top: 0.35rem; }
.pf-field--suggest { position: relative; z-index: 5; overflow: visible; }
.pf-sec[data-sec="reach"],
.pf-sec[data-sec="reach"] .pf-swap,
.pf-sec[data-sec="reach"] .pf-swap__inner,
.pf-sec[data-sec="reach"] .pf-sec__open,
.pf-sec[data-sec="reach"] .pf-sec__body { overflow: visible !important; }
/* Google's legacy .pac-container (unused when we drive our own menu) */
.pac-container { z-index: 10000 !important; }
.pf-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.25rem); z-index: 40;
  margin: 0; padding: 0.35rem 0; list-style: none;
  background: hsl(var(--card, var(--background))); border: 1px solid hsl(var(--border));
  border-radius: var(--pf-radius-sm); box-shadow: 0 10px 28px hsl(0 0% 0% / 0.12);
  max-height: 14rem; overflow: auto;
}
.pf-suggest--float {
  position: fixed !important;
  right: auto;
  box-sizing: border-box;
}
.pf-suggest li { padding: 0.55rem 0.85rem; cursor: pointer; display: flex; flex-direction: column; gap: 0.15rem; }
.pf-suggest li:hover, .pf-suggest li:focus { background: hsl(var(--accent) / 0.1); }
.pf-suggest strong { font-size: 0.875rem; font-weight: 600; }
.pf-suggest span { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.pf-suggest .is-selected { background: hsl(var(--accent) / 0.12); }
.pf-suggest__status {
  cursor: default;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}
.pf-error { font-size: 0.8125rem; font-weight: 600; color: hsl(var(--destructive, 0 84% 60%)); margin-top: 0.75rem; }
.pf-field-error {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 600;
  color: hsl(var(--destructive, 0 84% 60%));
}
.pf-field-error[hidden] { display: none; }
#pf-code-status[data-tone="ok"] { color: hsl(142 45% 32%); }
#pf-code-status[data-tone="err"] { color: hsl(var(--destructive, 0 84% 60%)); font-weight: 600; }
#pf-code-status[data-tone="pending"] { color: hsl(var(--muted-foreground)); }
#pf-code-status[data-tone="info"] { color: hsl(var(--muted-foreground)); }
html[data-theme="dark"] #pf-code-status[data-tone="ok"] { color: hsl(142 40% 58%); }
.pf-trust { text-align: center; }

/* Buttons */
.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--pf-radius-sm); font-weight: 700; font-size: 0.9375rem; cursor: pointer;
  padding: 0.75rem 1.25rem; transition: opacity .15s, transform .15s;
}
.pf-btn--primary { background: var(--pf-sel); color: hsl(var(--primary-foreground)); border: 1px solid var(--pf-sel); }
.pf-btn--primary:hover:not(:disabled) { transform: translateY(-1px); }
.pf-btn--primary:disabled { opacity: .55; cursor: not-allowed; }
.pf-btn--ghost { background: none; border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }
.pf-btn--block { width: 100%; margin-top: 1rem; }
.pf-submit { padding: 1rem 1.25rem; font-size: 1rem; }
.pf-sec__body > .pf-btn--block { margin-top: 1.25rem; }

/* Draft offer */
.pf-draft {
  border: 1px solid hsl(var(--accent)); border-radius: var(--pf-radius); padding: 1.25rem;
  margin-bottom: 1rem; background: hsl(var(--accent) / .06); font-size: 0.875rem;
}
.pf-draft__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

/* Height-swap wrapper — portal AnimatedHeightSwap language */
.pf-swap { overflow: visible; }
.pf-swap.is-animating { overflow: hidden; }

/* Layout: mobile stays the portal's single compact column */
.portal-form__grid { display: block; }
.portal-form__rail { display: block; }

/* Breathing room between the Call / Text buttons and the form itself */
#booking-lite-shell .portal-form { margin-top: 2.75rem; }

/* Desktop: no columns — each section expands to the form's full width,
   and the content inside (tiles, pills, day strip) stretches with it. */
@media (min-width: 1024px) {
  .portal-form-card { padding: 2rem; }
  .pf-sec, .pf-summary-card { padding: 1.75rem; margin-bottom: 1.25rem; }
  /* Tiles expand across the wider section instead of one thin stack */
  .pf-tiles { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .pf-family__body .pf-tiles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  /* Desktop keeps the horizontal day / photo sliders. Day peek (~40%) is
     sized in layoutDayStrip; More dates stays beside (no wrap). */
  .pf-days,
  .pf-photos {
    scroll-snap-type: none;
  }
  .pf-summary-card .pf-lines li { max-width: 42rem; }
}

/* Desktop: promotion terms move under the form (not beside it), so the form
   takes the full section width. Scoped to this test page only. */
@media (min-width: 1024px) {
  .portal-test-section > .grid[class*="1.25fr"] {
    grid-template-columns: minmax(0, 1fr);
    max-width: 72rem;
  }
  .portal-test-section aside {
    padding-left: 0;
    padding-top: 0;
    margin-top: 1rem;
    border-left: 0;
  }
}

/* Package includes: desktop bubble below the tile; phone bottom sheet. */
.pf-includes-hint { margin: 0 0 0.75rem; }
@media (pointer: coarse) {
  .pf-tile[data-tile],
  .pf-tile[data-addon] {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
}
.pf-detail-scrim {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: hsl(var(--background) / 0.55);
}
.pf-detail-scrim[hidden] { display: none !important; }
.pf-detail {
  --pf-radius: 1.5rem;
  --pf-radius-sm: 0.75rem;
  --pf-caret-x: 1.5rem;
  position: fixed;
  z-index: 45;
  width: max-content;
  min-width: 12rem;
  max-width: min(18rem, calc(100vw - 1.5rem));
  max-height: min(60vh, 22rem);
  overflow: auto;
  padding: 0.875rem 1rem 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--accent) / 0.55);
  border-radius: 1.25rem;
  color: hsl(var(--foreground));
  box-shadow: 0 10px 28px hsl(0 0% 0% / 0.35);
  pointer-events: none;
}
.pf-detail[hidden] { display: none !important; }
.pf-detail__grab { display: none; }
.pf-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.pf-detail__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--accent));
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent));
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}
.pf-detail__close {
  display: none;
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: none;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
.pf-detail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.pf-detail__list li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--foreground) / 0.9);
}
.pf-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: hsl(var(--accent));
}
.pf-detail__caret {
  position: absolute;
  width: 0.625rem;
  height: 0.625rem;
  left: var(--pf-caret-x);
  top: -0.34rem;
  margin-left: -0.3125rem;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--accent) / 0.55);
  border-left: 1px solid hsl(var(--accent) / 0.55);
  transform: rotate(45deg);
  pointer-events: none;
}
.pf-detail--above .pf-detail__caret {
  top: auto;
  bottom: -0.34rem;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid hsl(var(--accent) / 0.55);
  border-bottom: 1px solid hsl(var(--accent) / 0.55);
}

/* Phone hold: centered sheet over the scrim */
.pf-detail.pf-detail--sheet {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(26rem, calc(100vw - 1.5rem));
  max-width: min(26rem, calc(100vw - 1.5rem));
  max-height: min(60vh, 22rem);
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: var(--pf-radius);
  border-color: hsl(var(--border));
  box-shadow: 0 12px 32px hsl(0 0% 0% / 0.45);
  pointer-events: auto;
  overflow: auto;
}
.pf-detail.pf-detail--sheet .pf-detail__grab {
  display: block;
  width: 2.25rem;
  height: 0.25rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: hsl(var(--border));
}
.pf-detail.pf-detail--sheet .pf-detail__close { display: inline-grid; place-items: center; }
.pf-detail.pf-detail--sheet .pf-detail__caret { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pf-detail { transition: none; }
}

