.fg-shell {
  --fg-rule: #ddd6dc;
  --fg-accent: #593d65;
  --fg-muted: #63596b;
  padding-bottom: 4rem;
  color: var(--ink, #272137);
}
.fg-intro { margin: 1.2rem 0 1.4rem; }
.fg-intro h1 {
  margin: 0;
  font: 600 clamp(1.9rem, 4.4vw, 3.4rem)/1.06 Georgia, serif;
  letter-spacing: -.035em;
}
.fg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, .85fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}
.fg-photo { position: sticky; top: 6rem; margin: 0; min-width: 0; }
.fg-total { padding-bottom: .85rem; }
.fg-item, .fg-price span, .fg-question h2 span { color: var(--fg-muted); font-size: .82rem; font-weight: 450; }
.fg-item { display: block; margin-top: .35rem; }
.fg-total h2 { margin: .15rem 0 .4rem; font-family: inherit; font-weight: 650; font-size: clamp(1.22rem, 2.5vw, 1.7rem); line-height: 1.18; overflow-wrap: anywhere; }
.fg-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .4rem; }
.fg-price strong { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fg-picture { aspect-ratio: 1; background: #f0ebe9; border-radius: .5rem; display: grid; place-items: center; overflow: hidden; }
.fg-picture img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.fg-picture p { padding: 1.2rem; max-width: 24rem; color: var(--fg-muted); text-align: center; }
.fg-picture [hidden] { display: none; }
.fg-options { min-width: 0; }
.fg-question { padding: .85rem 0; border-bottom: 1px solid var(--fg-rule); }
.fg-question:first-child { padding-top: 0; }
.fg-question h2 { margin: 0 0 .45rem; font-family: inherit; font-weight: 680; font-size: 1rem; line-height: 1.2; }
.fg-question h2 span { margin-left: .22rem; }
.fg-choices, .fg-size-row, .fg-size-shortlist, #frame-size-form {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
}
.fg-chip, .fg-variant, .fg-update, #frame-size, .fg-enhanced .fg-size-prompt {
  min-height: 44px;
  padding: .4rem .65rem;
  border: 1px solid #b7aebb;
  border-radius: .45rem;
  background: white;
  color: var(--ink, #272137);
  font: inherit;
  font-size: .9rem;
  line-height: 1.2;
  text-decoration: none;
}
.fg-chip, .fg-variant, .fg-enhanced .fg-size-prompt { display: inline-flex; align-items: center; justify-content: center; }
.fg-chip[aria-current], .fg-variant[aria-current] {
  background: #f1eaf3;
  border-color: var(--fg-accent);
  box-shadow: inset 0 0 0 1px var(--fg-accent);
  color: #3e2947;
  font-weight: 700;
}
.fg-variant { flex-wrap: wrap; gap: .12rem .45rem; justify-content: flex-start; }
.fg-variant span { font-size: .82rem; color: var(--fg-muted); }
.fg-size-shortlist, .fg-size-prompt,
.fg-enhanced #frame-size-form .fg-update, .fg-enhanced #frame-size-form.fg-few-sizes { display: none; }
.fg-enhanced .fg-size-shortlist { display: flex; }
.fg-all-sizes { display: inline-flex; position: relative; align-items: center; max-width: 100%; margin: 0; }
.fg-enhanced .fg-size-prompt { gap: .35rem; }
.fg-enhanced #frame-size { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fg-booking { padding-top: 1rem; }
.fg-reserve, .fg-details { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.fg-reserve { padding: .65rem 1rem; background: var(--fg-accent); color: white; border-radius: .55rem; font-size: 1rem; font-weight: 700; text-decoration: none; }
.fg-terms { margin: .45rem 0 0; color: var(--fg-muted); font-size: .82rem; line-height: 1.4; }
.fg-details { gap: .35rem; width: fit-content; color: var(--fg-accent); font-size: .9rem; text-underline-offset: .18rem; }
.fg-shell :focus-visible, .fg-all-sizes:has(select:focus-visible) { outline: 3px solid #744494; outline-offset: 3px; }
.fg-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.fg-hint { padding: .75rem 1rem; background: #f7f0dc; border-radius: .4rem; }
@media (max-width: 760px) {
  .fg-shell { padding-bottom: 6rem; }
  .fg-intro { margin: .5rem 0 .85rem; }
  .fg-intro h1 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .fg-layout { display: block; container-type:inline-size; }
  .fg-photo {
    position: static; display: grid; grid-template-columns: clamp(6.5rem, 30vw, 9rem) minmax(0,1fr);
    grid-template-areas: 'photo summary'; align-items: center; gap: .9rem;
    padding-bottom: .85rem; border-bottom: 1px solid var(--fg-rule);
  }
  .fg-picture { grid-area: photo; }
  .fg-total { grid-area: summary; padding: 0; }
  .fg-photo:has(#frame-photo-empty:not([hidden])) { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; }
  .fg-picture:has(#frame-photo-empty:not([hidden])) { aspect-ratio: auto; place-items: start; }
  .fg-picture p { text-align: left; padding: .5rem .75rem; margin: 0; max-width: none; font-size: .85rem; }
  .fg-question, .fg-question:first-child { padding: .72rem 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .fg-chip, .fg-variant, .fg-reserve { transition: background-color .15s ease, border-color .15s ease; }
}

/* Give studio chat its own place in the mobile navigation. */
@media (max-width: 760px) {
  .fg-booking { display:flex; flex-wrap:wrap; gap:.4rem .85rem; align-items:center; }
  .fg-booking .fg-reserve { flex:1 1 max-content; min-width:0; max-width:100%; overflow-wrap:anywhere; text-align:center; }
  .fg-booking .fg-details { order:1; max-width:100%; overflow-wrap:anywhere; }
  .fg-booking .fg-terms { order:2; flex:0 0 100%; margin:0; }
  body:has(.fg-shell):has(.cw-fab) .tabbar { padding-inline-end: 58px; }
  body:has(.fg-shell):has(.cw-fab) .tabbar a { flex: 1; min-width: 44px; padding-inline: 3px; }
  body:has(.fg-shell):has(.cw-fab) .tabbar a.cta { padding-inline: 5px; }
  body:has(.fg-shell) #cwFab { width: 44px; height: 44px; right: 18px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  body:has(.fg-shell) #cwBox { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 761px) and (max-width: 1250px) {
  body:has(.cw-fab) .fg-booking { padding-inline-end: 4.5rem; }
}

/* When enlarged type leaves no useful summary column, stack the frame preview. */
@container (max-width:15em) {
  .fg-layout .fg-photo { display:block; }
  .fg-photo .fg-total { padding-top:.5rem; }
}
