/* Scoped booking fields, per-guest treatment selectors and group estimates. */
#heaven-booking-form[data-cascade="true"] .grid.sm\:grid-cols-2,
#heaven-booking-form[data-cascade="true"] .heaven-branch__options { grid-template-columns: minmax(0,1fr); }
#heaven-booking-form[data-cascade="true"] input:is([type="text"],[type="tel"],[type="email"],[type="date"]),
#heaven-booking-form[data-cascade="true"] select { min-height: 44px !important; height: 44px !important; max-height: none !important; font-size: 16px !important; }
#heaven-booking-form .heaven-cascade { grid-column: 1 / -1; min-width: 0; margin: 4px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--heaven-border); }
#heaven-booking-form .heaven-guest-treatments,
#heaven-booking-form .heaven-group-summary,
#heaven-booking-form .heaven-group-note { grid-column: 1 / -1; min-width: 0; }
#heaven-booking-form .heaven-guest-treatments { display: grid; gap: 18px; }
#heaven-booking-form .heaven-group-note { margin: 0; color: var(--heaven-secondary); font-size: 13px; line-height: 1.6; }
#heaven-booking-form .heaven-group-summary { padding: 14px; border: 1px solid var(--heaven-border); border-radius: 8px; background: var(--heaven-surface); color: var(--heaven-espresso); }
#heaven-booking-form .heaven-group-summary p { margin: 6px 0; font-size: 14px; line-height: 1.6; }
#heaven-booking-form .heaven-group-summary .heaven-cascade__name { margin-top: 0; font-weight: 600; }
#heaven-booking-form .heaven-group-summary ul { margin: 8px 0; padding-left: 18px; }
#heaven-booking-form .heaven-group-summary li { margin-bottom: 8px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
#heaven-booking-form .heaven-guest-actions { display: flex; justify-content: flex-end; margin: 0 0 12px; }
#heaven-booking-form .heaven-guest-actions button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--heaven-border); border-radius: 8px; background: var(--heaven-surface); color: var(--heaven-espresso); font: 500 13px/1.5 var(--heaven-sans); cursor: pointer; }
#heaven-booking-form .heaven-guest-actions button:hover { border-color: var(--heaven-secondary); }
#heaven-booking-form .heaven-guest-actions button:active { transform: translateY(1px); }
#heaven-booking-form .heaven-guest-actions button:focus-visible { outline: 2px solid var(--heaven-secondary); outline-offset: 2px; }
#heaven-booking-form .heaven-guest-actions button:disabled { opacity: .5; cursor: not-allowed; }
#heaven-booking-form .heaven-cascade legend { margin: 0 0 10px; padding: 0; font: 600 14px/1.5 var(--heaven-sans); color: var(--heaven-espresso); }
#heaven-booking-form .heaven-cascade__grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }
#heaven-booking-form .heaven-cascade__grid > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#heaven-booking-form .heaven-cascade [hidden] { display: none !important; }
#heaven-booking-form .heaven-cascade select { min-height: 44px !important; height: 44px !important; max-height: none !important; font-size: 16px !important; width: 100%; min-width: 0; }
#heaven-booking-form .heaven-cascade select:focus { border-color: var(--heaven-secondary) !important; box-shadow: none !important; outline: 2px solid var(--heaven-secondary) !important; outline-offset: 2px; }
#heaven-booking-form .heaven-cascade__location { margin: 10px 0 0; color: var(--heaven-secondary); font-size: 13px; line-height: 1.6; }
#heaven-booking-form .heaven-cascade__summary { margin-top: 12px; padding: 14px; background: var(--heaven-surface); border: 1px solid var(--heaven-border); border-radius: 8px; color: var(--heaven-espresso); }
#heaven-booking-form .heaven-cascade__summary p { margin: 0; }
#heaven-booking-form .heaven-cascade__summary .heaven-cascade__eyebrow { color: var(--heaven-secondary); font-size: 12px; }
#heaven-booking-form .heaven-cascade__summary .heaven-cascade__name { margin: 4px 0 10px; font-size: 16px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
#heaven-booking-form .heaven-cascade__summary dl { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px 16px; margin: 0; }
#heaven-booking-form .heaven-cascade__summary dl:has(> div:nth-child(3)) > div:first-child { grid-column: 1 / -1; }
#heaven-booking-form .heaven-cascade__summary dt { font-size: 12px; color: var(--heaven-secondary); }
#heaven-booking-form .heaven-cascade__summary dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
#heaven-booking-form .heaven-cascade__summary .heaven-cascade__hint { margin-top: 10px; font-size: 13px; line-height: 1.6; }
#heaven-booking-form .heaven-cascade__summary summary { display: flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--heaven-secondary); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
#heaven-booking-form .heaven-cascade__summary summary:focus-visible { outline: 2px solid var(--heaven-secondary); outline-offset: 2px; }
#heaven-booking-form .heaven-cascade__summary ul { margin: 4px 0 0; padding-left: 18px; }
#heaven-booking-form .heaven-cascade__summary li { margin-bottom: 6px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
/* Only rendered by the Book selector; Contact retains its existing form. */
#heaven-booking-form .heaven-returning-gate { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 24px; min-width: 0; margin: 8px 0 0; padding: 16px 20px; border: 1px solid var(--heaven-border); border-radius: 8px; background: var(--heaven-surface); color: var(--heaven-espresso); }
#heaven-booking-form .heaven-returning-gate[hidden] { display: none !important; }
/* Browsers (notably Safari) draw a native legend on the fieldset border, so it stays for screen readers only
   and a regular title paragraph sits inside the frame. */
#heaven-booking-form .heaven-returning-gate .heaven-returning-gate__legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#heaven-booking-form .heaven-returning-gate p { grid-column: 1; margin: 0; font-size: 13px; line-height: 1.6; color: var(--heaven-secondary); }
#heaven-booking-form .heaven-returning-gate p.heaven-returning-gate__title { font: 600 16px/1.5 var(--heaven-sans); color: var(--heaven-espresso); }
#heaven-booking-form .heaven-returning-gate__options { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 208px; }
#heaven-booking-form .heaven-returning-gate__options label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; box-sizing: border-box; margin: 0; padding: 8px 12px; border: 1px solid var(--heaven-border); border-radius: 8px; background: var(--heaven-cream); color: var(--heaven-espresso); font-size: 16px; line-height: 1.4; white-space: nowrap; cursor: pointer; }
#heaven-booking-form .heaven-returning-gate__options label:has(input:checked) { border-color: var(--heaven-secondary); background: var(--heaven-surface-container); }
/* Reset the general text-input geometry locally; the complete label remains the touch target. */
#heaven-booking-form .heaven-returning-gate__options input[type="radio"] { appearance: none; -webkit-appearance: none; flex: 0 0 18px; width: 18px !important; min-width: 18px; max-width: 18px; height: 18px !important; min-height: 18px; max-height: 18px !important; margin: 0; padding: 0 !important; border: 1.5px solid var(--heaven-secondary) !important; border-radius: 50% !important; background: var(--heaven-cream) !important; box-shadow: none !important; transition: none !important; cursor: inherit; }
#heaven-booking-form .heaven-returning-gate__options input[type="radio"]:checked { border-color: var(--heaven-espresso) !important; background: var(--heaven-espresso) !important; box-shadow: inset 0 0 0 4px var(--heaven-cream) !important; }
#heaven-booking-form .heaven-returning-gate__options label:has(input:focus-visible) { outline: 2px solid var(--heaven-secondary); outline-offset: 2px; }
@media (hover: hover) {
 #heaven-booking-form .heaven-returning-gate__options label:hover { border-color: var(--heaven-secondary); }
}
#heaven-booking-form .heaven-returning-gate__options label:active { background: var(--heaven-surface-container); }
@media (max-width: 767px) {
 #heaven-booking-form .heaven-returning-gate { display: block; padding: 14px 16px 16px; }
 #heaven-booking-form .heaven-returning-gate__options { width: 100%; margin-top: 12px; }
}
#heaven-booking-form:has([data-returning-confirmation]) #heaven-booking-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.heaven-returning-dialog { position: fixed; inset: 0; width: min(440px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 24px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--heaven-border); border-radius: var(--heaven-radius-2xl); background: var(--heaven-cream); color: var(--heaven-espresso); font-family: var(--heaven-sans); }
.heaven-returning-dialog:not([open]) { display: none; }
.heaven-returning-dialog::backdrop { background: rgb(34 26 16 / 55%); }
html:has(.heaven-returning-dialog[open]) { overflow: hidden; }
.heaven-returning-dialog h2 { margin: 0 0 12px; font-family: var(--heaven-serif); font-size: 1.5rem; line-height: 1.3; color: inherit; }
.heaven-returning-dialog p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; }
.heaven-returning-dialog button { min-height: 44px; min-width: 96px; padding: 8px 16px; border: 1px solid var(--heaven-espresso); border-radius: 8px; background: var(--heaven-espresso); color: var(--heaven-cream); font: 500 16px/1.5 var(--heaven-sans); cursor: pointer; }
.heaven-returning-dialog button:focus-visible { outline: 2px solid var(--heaven-secondary); outline-offset: 3px; }
@media(min-width:768px){
 #heaven-booking-form[data-cascade="true"] .grid.sm\:grid-cols-2,
 #heaven-booking-form[data-cascade="true"] .heaven-branch__options,
 #heaven-booking-form .heaven-cascade__grid,#heaven-booking-form .heaven-cascade__summary dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
 /* An unpaired visible selector fills its row in every cascading state. */
 #heaven-booking-form .heaven-cascade__grid > div:nth-child(odd of :not([hidden])):nth-last-child(1 of :not([hidden])) { grid-column: 1 / -1; }
}
