/* Park Road Assist — scoped luxury UI (form, floating chat shell, progressive reveal) */

#prf-consult-form {
  scroll-margin-top: 100px;
}

.prf-form-section,
.prf-form-section *,
.prf-floating,
.prf-floating * {
  box-sizing: border-box;
}

/* Both roots need the palette: the floating shell styles its own chrome with these
   tokens, and an unresolved var() computes to the initial value, which is how the
   panel ended up with a transparent background. */
.prf-form-section,
.prf-floating {
  --prf-ink: #111111;
  --prf-ink-soft: #1b423c;
  --prf-ink-muted: #5c6561;
  --prf-surface: #ffffff;
  --prf-surface-warm: #f7f5f1;
  --prf-line: #e2e6e3;
  --prf-line-strong: #c5ccc7;
  --prf-gold: #c3a365;
  --prf-gold-ink: #8a6d2f;
  --prf-teal: #173c39;
  --prf-teal-deep: #0f2a28;
  --prf-radius: 2px;
  --prf-shadow-soft: 0 12px 40px rgba(15, 42, 40, 0.08);
  --prf-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --prf-font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

.prf-form-section {
  --prf-form-pad-right: 0px;
  --prf-form-pad-bottom: 0px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 72px);
  color: var(--prf-ink);
  background: var(--prf-surface);
  font-family: var(--prf-font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.prf-form-intro {
  align-self: start;
  position: sticky;
  top: 32px;
}

.prf-form-intro .prf-kicker {
  color: var(--prf-gold-ink);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  margin: 0 0 16px;
}

.prf-form-intro h2 {
  font-family: var(--prf-font-serif);
  font-weight: 300;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--prf-teal);
  margin: 0 0 20px;
}

.prf-form-intro p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--prf-ink-muted);
  margin: 0 0 14px;
}

.prf-form-intro .prf-form-note {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--prf-ink-muted);
  padding-top: 18px;
  border-top: 1px solid var(--prf-line);
  margin-top: 22px;
}

.prf-form-column {
  min-width: 0;
}

/* Progressive reveal (native <details> + JS enhancement) */
.prf-form-reveal {
  border: 0;
  margin: 0;
  padding: 0;
}

.prf-form-reveal__trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  margin: 8px 0 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--prf-surface);
  background: var(--prf-teal);
  border: 1px solid var(--prf-teal);
  border-radius: var(--prf-radius);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.prf-form-reveal__trigger::-webkit-details-marker {
  display: none;
}

.prf-form-reveal__trigger:hover {
  background: var(--prf-teal-deep);
  border-color: var(--prf-teal-deep);
}

/* One glyph, rotated: the arrow is decorative, so the accessible name stays the label
   alone and the state is carried by aria-expanded. */
.prf-form-reveal__arrow {
  font-size: 15px;
  line-height: 1;
  opacity: 0.85;
  transition: transform 0.25s ease;
}

/* Native disclosure drives the label when JS is unavailable. */
.prf-form-reveal__label--open {
  display: none;
}

.prf-form-reveal[open] .prf-form-reveal__label--open {
  display: inline;
}

.prf-form-reveal[open] .prf-form-reveal__label--closed {
  display: none;
}

.prf-form-reveal[open] .prf-form-reveal__arrow {
  transform: rotate(180deg);
}

/* With JS the open attribute outlives the collapse animation, so the class is the
   source of truth and the label flips the moment the visitor clicks. */
.prf-form-reveal.prf-js[open] .prf-form-reveal__label--open {
  display: none;
}

.prf-form-reveal.prf-js[open] .prf-form-reveal__label--closed {
  display: inline;
}

.prf-form-reveal.prf-js[open] .prf-form-reveal__arrow {
  transform: rotate(0deg);
}

.prf-form-reveal.prf-js.prf-form-reveal--open .prf-form-reveal__label--open {
  display: inline;
}

.prf-form-reveal.prf-js.prf-form-reveal--open .prf-form-reveal__label--closed {
  display: none;
}

.prf-form-reveal.prf-js.prf-form-reveal--open .prf-form-reveal__arrow {
  transform: rotate(180deg);
}

/* Expansion is driven by grid-template-rows rather than a guessed max-height, so the
   form settles at its true height at any breakpoint instead of easing toward a number
   it never reaches. */
.prf-form-reveal__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    margin-top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Without JS the native disclosure is the whole mechanism: open means expanded. */
.prf-form-reveal[open] .prf-form-reveal__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 26px;
}

/* With JS the open attribute only makes the panel renderable; the class drives the
   animation, which is what lets the collapse ease out instead of vanishing. */
.prf-form-reveal.prf-js[open] .prf-form-reveal__panel {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
}

.prf-form-reveal.prf-js.prf-form-reveal--open .prf-form-reveal__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 26px;
}

.prf-form-reveal__inner {
  min-height: 0;
  overflow: hidden;
}

/* Clipping is only needed while the row height animates; once settled, release it so
   focus rings and the card shadow are not sheared off. */
.prf-form-reveal--settled .prf-form-reveal__inner {
  overflow: visible;
}

.prf-form-section--reveal {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 100%;
  /* Horizontal rhythm is left to the surrounding page section so the invitation lines
     up with its neighbours instead of inheriting a second gutter. */
  padding: clamp(18px, 2.5vw, 30px) 0;
}

.prf-form-section--reveal > * {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.prf-form-section--reveal .prf-form-intro {
  position: static;
  text-align: left;
}

.prf-form-section--reveal .prf-form-intro h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  margin-bottom: 16px;
}

.prf-form-section--reveal .prf-form-intro p {
  max-width: 60ch;
  margin-bottom: 0;
}

.prf-form-note--reveal {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--prf-ink-muted);
}

.prf-form {
  border: 1px solid var(--prf-line);
  padding: clamp(22px, 3vw, 32px);
  background: var(--prf-surface);
  box-shadow: var(--prf-shadow-soft);
  border-radius: var(--prf-radius);
}

.prf-form fieldset {
  border: 0;
  margin: 0 0 26px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--prf-line);
  min-width: 0;
}

.prf-form fieldset:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.prf-form legend {
  display: block;
  width: 100%;
  font-family: var(--prf-font-serif);
  font-size: 20px;
  font-weight: 400;
  padding: 0 0 16px;
  color: var(--prf-teal);
}

.prf-form label {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin: 14px 0 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--prf-ink-soft);
}

.prf-form input:not([type="checkbox"]):not([type="radio"]),
.prf-form select,
.prf-form textarea {
  width: 100%;
  min-height: 48px;
  background: var(--prf-surface);
  color: var(--prf-ink);
  border: 1px solid var(--prf-line-strong);
  padding: 11px 14px;
  border-radius: var(--prf-radius);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prf-form textarea {
  min-height: 96px;
  resize: vertical;
}

.prf-form input:focus,
.prf-form select:focus,
.prf-form textarea:focus {
  border-color: var(--prf-gold-ink);
  box-shadow: 0 0 0 1px var(--prf-gold-ink);
  outline: none;
}

.prf-format-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 18px;
}

/* Must outrank `.prf-form label`, which would otherwise blockify these cards and run
   the venue line into the heading. */
.prf-form .prf-format-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--prf-line);
  border-radius: var(--prf-radius);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.prf-format-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prf-form .prf-format-option strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--prf-teal);
}

.prf-form .prf-format-option span {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--prf-ink-muted);
}

.prf-format-option:hover {
  border-color: var(--prf-line-strong);
  background: var(--prf-surface-warm);
}

.prf-format-option:has(input:checked) {
  border-color: var(--prf-gold-ink);
  background: rgba(195, 163, 101, 0.08);
  box-shadow: inset 0 0 0 1px var(--prf-gold-ink);
}

/* The real radio is visually hidden, so the card must show the focus ring itself. */
.prf-format-option:has(input:focus-visible) {
  outline: 2px solid var(--prf-gold-ink);
  outline-offset: 3px;
}

.prf-form button[type="submit"] {
  min-height: 52px;
  width: 100%;
  background: var(--prf-teal);
  color: var(--prf-surface);
  border: 1px solid var(--prf-teal);
  border-radius: var(--prf-radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 14px 18px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.prf-form button[type="submit"]:hover:not([disabled]) {
  background: var(--prf-teal-deep);
  border-color: var(--prf-teal-deep);
}

.prf-form button[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.prf-form .prf-permission {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
  margin: 20px 0 22px;
  color: var(--prf-ink-muted);
}

.prf-form .prf-permission a {
  color: var(--prf-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prf-form .prf-help,
.prf-form-status {
  font-size: 13px;
  line-height: 1.65;
  color: var(--prf-ink-muted);
}

.prf-form-status:not(:empty) {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--prf-line);
  background: var(--prf-surface-warm);
}

.prf-form-status.prf-form-status--error {
  border-color: #d4a5a0;
  background: #fdf8f7;
  color: #6b2e28;
}

.prf-form-status.prf-form-status--success {
  border-color: rgba(195, 163, 101, 0.5);
  background: rgba(195, 163, 101, 0.08);
}

.prf-confirmation[hidden] {
  display: none !important;
}

.prf-confirmation-card {
  background: var(--prf-surface);
  border: 1px solid var(--prf-gold);
  border-radius: var(--prf-radius);
  padding: 32px 24px;
  text-align: center;
}

.prf-confirmation-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--prf-gold);
  color: var(--prf-gold-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 16px;
}

.prf-confirmation-title {
  font-family: var(--prf-font-serif);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--prf-ink);
}

.prf-confirmation-message,
.prf-confirmation-note {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--prf-ink-muted);
}

.prf-confirmation-ref {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--prf-ink);
}

.prf-confirmation-note {
  margin-bottom: 0;
  font-size: 13px;
}

.prf-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.prf-form :focus-visible,
.prf-confirmation-title:focus-visible,
.prf-floating :focus-visible {
  outline: 2px solid var(--prf-gold-ink) !important;
  outline-offset: 3px;
}

/* Floating launcher & modal */
/* No perspective here: it would make this box the containing block for the panel's
   fixed positioning, which pins the full-screen sheet to the launcher instead of the
   viewport. The launcher carries its own perspective in its transform. */
.prf-floating {
  --prf-launcher-gap: 12px;
  --prf-launcher-inset: max(16px, env(safe-area-inset-right, 0px));
  --prf-launcher-bottom-inset: max(16px, env(safe-area-inset-bottom, 0px));
  --prf-launcher-right: var(--prf-launcher-inset);
  --prf-launcher-bottom: var(--prf-launcher-bottom-inset);
  --prf-admin-offset: 0px;
  --prf-panel-top: max(16px, env(safe-area-inset-top, 0px), var(--prf-admin-offset));
  --prf-panel-bottom: calc(var(--prf-launcher-bottom) + 62px + var(--prf-launcher-gap));
  position: fixed;
  right: var(--prf-launcher-right);
  bottom: var(--prf-launcher-bottom);
  left: auto;
  z-index: 2147482000;
  font-family: var(--prf-font-sans);
}

/* Logged-in toolbar overlays the top of the viewport; visitors have no offset. */
html.admin-bar .prf-floating {
  --prf-admin-offset: 32px;
}

.prf-launcher {
  position: relative;
  height: 62px;
  width: 62px;
  border-radius: 50%;
  border: 1px solid rgba(195, 163, 101, 0.65);
  background: linear-gradient(145deg, #1f4a46 0%, #0f2a28 55%, #0a1f1d 100%);
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.15),
    0 14px 32px rgba(15, 42, 40, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prf-launcher:hover {
  transform: perspective(600px) translateY(-2px) rotateX(7deg) rotateY(-4deg);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.12),
    0 18px 40px rgba(15, 42, 40, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.prf-launcher:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.18),
    0 8px 20px rgba(15, 42, 40, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Specular highlight and inner bevel give the disc its depth. */
.prf-launcher::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(
    120% 90% at 30% 18%,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.07) 38%,
    rgba(255, 255, 255, 0) 64%
  );
  pointer-events: none;
}

.prf-launcher::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 -2px 6px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

/* The mark ships as a lit relief on transparency: shadows give it depth on the disc,
   but no tonal filter, which would flatten the ring modelling into a silhouette. */
.prf-launcher-logo {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45))
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.25s ease;
}

.prf-launcher:hover .prf-launcher-logo {
  transform: scale(1.04);
}

.prf-launcher:active .prf-launcher-logo {
  transform: scale(0.97);
}

.prf-launcher-mark {
  font-family: var(--prf-font-serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #f5f0e6;
}

.prf-nudge {
  position: absolute;
  right: 72px;
  left: auto;
  bottom: 12px;
  white-space: nowrap;
  background: var(--prf-surface);
  color: var(--prf-teal);
  border: 1px solid var(--prf-line);
  padding: 11px 14px;
  box-shadow: var(--prf-shadow-soft);
  border-radius: var(--prf-radius);
  font-size: 13px;
}

.prf-nudge[hidden],
.prf-floating-panel[hidden] {
  display: none !important;
}

.prf-floating-panel {
  position: fixed;
  z-index: 2;
  right: max(16px, var(--prf-launcher-right), env(safe-area-inset-right, 0px));
  left: auto;
  bottom: var(--prf-panel-bottom);
  width: min(440px, calc(100vw - 32px));
  /* Height must shrink when the launcher sits higher (beneath the cart). A fixed
     680px / 100dvh-120px sheet plus that bottom offset is what clipped the header. */
  height: min(680px, calc(100dvh - var(--prf-panel-top) - var(--prf-panel-bottom)));
  max-height: calc(100dvh - var(--prf-panel-top) - var(--prf-panel-bottom));
  background: var(--prf-surface);
  border: 1px solid rgba(15, 42, 40, 0.12);
  box-shadow:
    0 2px 6px rgba(15, 42, 40, 0.06),
    0 28px 90px rgba(15, 42, 40, 0.26);
  border-radius: 6px;
  overflow: hidden;
  overscroll-behavior: contain;
  color: var(--prf-ink);
  display: flex;
  flex-direction: column;
}

.prf-floating-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(165deg, #1b4441 0%, #0f2a28 60%, #0b211f 100%);
  flex-shrink: 0;
}

/* Champagne hairline: the only divider the header needs. */
.prf-floating-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(195, 163, 101, 0) 0%,
    rgba(195, 163, 101, 0.55) 22%,
    rgba(195, 163, 101, 0.55) 78%,
    rgba(195, 163, 101, 0) 100%
  );
}

.prf-floating-head__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.prf-floating-head__mark {
  flex: 0 0 auto;
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.prf-floating-head__lockup {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

/* Fallback lockup: shown only when the mark is unavailable, so it gets the full width. */
.prf-floating-head__wordmark {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(58vw, 190px);
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.prf-floating-head__title {
  font-family: var(--prf-font-serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #f7f3ea;
}

.prf-floating-head__eyebrow {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(195, 163, 101, 0.92);
  white-space: nowrap;
}

.prf-floating-close {
  flex-shrink: 0;
  border: 1px solid rgba(245, 240, 230, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 240, 230, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: var(--prf-radius);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.prf-floating-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(195, 163, 101, 0.6);
  color: #fff;
}

/* The sheet behaves like an app pane: the header is fixed, the transcript is the only
   scrolling region, and the reply controls stay docked at the bottom edge. */
.prf-floating-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

.prf-floating #prf-assist {
  flex: 1;
  display: flex;
  min-height: 0;
  padding: 0;
  background: var(--prf-surface);
  color: var(--prf-ink);
}

.prf-floating #prf-assist .prf-wrap {
  display: flex !important;
  flex: 1;
  min-height: 0;
  max-width: none;
  gap: 0;
  /* The chat's own desktop rule aligns to start, which would leave the pane at its
     content height inside the sheet. */
  align-items: stretch;
}

.prf-floating #prf-assist .prf-panel {
  flex: 1;
  min-height: 0;
}

.prf-floating #prf-assist .prf-intro {
  display: none;
}

.prf-floating #prf-assist .prf-panel {
  box-shadow: none;
  border-radius: 0;
  border: 0;
}

.prf-floating #prf-assist .prf-bar {
  display: none;
}

.prf-floating #prf-assist .prf-log {
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 20px 18px 8px;
}

.prf-floating #prf-assist .prf-reply {
  flex-shrink: 0;
}

.prf-floating #prf-assist .prf-foot {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--prf-line);
  background: var(--prf-surface-warm);
}

.prf-floating #prf-assist .prf-date-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prf-floating #prf-assist .prf-time-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prf-floating #prf-assist .prf-msg.recap {
  padding: 12px;
}

.prf-floating #prf-assist .prf-reply {
  padding: 14px;
}

@media (max-width: 860px) {
  .prf-form-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 16px;
    padding-right: max(16px, var(--prf-form-pad-right));
    padding-bottom: max(40px, var(--prf-form-pad-bottom));
  }

  .prf-form-intro {
    position: static;
  }

  .prf-format-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  html.admin-bar .prf-floating {
    --prf-admin-offset: 46px;
  }
}

@media (max-width: 740px) {
  .prf-floating {
    --prf-launcher-inset: max(12px, env(safe-area-inset-right, 0px));
    --prf-launcher-bottom-inset: max(14px, env(safe-area-inset-bottom, 0px));
  }

  .prf-floating-panel {
    left: 0;
    right: 0;
    top: var(--prf-admin-offset);
    bottom: 0;
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 0;
    border: 0;
  }

  /* Full-screen sheet: keep the header clear of the notch and the conversation
     clear of the home indicator. */
  .prf-floating-head {
    padding-top: calc(14px + env(safe-area-inset-top));
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: calc(14px + env(safe-area-inset-right));
  }

  .prf-floating-body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .prf-floating-close {
    padding: 11px 14px;
  }

  .prf-nudge {
    right: 68px;
    left: auto;
    max-width: calc(100vw - 88px);
    white-space: normal;
  }

  body.prf-chat-open .prf-launcher,
  body.prf-chat-open .prf-nudge {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prf-floating *,
  .prf-form-section * {
    animation: none !important;
    transition: none !important;
  }

  .prf-launcher:hover,
  .prf-launcher:active,
  .prf-launcher:hover .prf-launcher-logo,
  .prf-launcher:active .prf-launcher-logo {
    transform: none !important;
  }

  .prf-form-reveal[open] .prf-form-reveal__panel,
  .prf-form-reveal.prf-js.prf-form-reveal--open .prf-form-reveal__panel {
    grid-template-rows: 1fr !important;
    opacity: 1 !important;
  }
}

body.prf-chat-open {
  overflow: hidden !important;
}
