/* Leaf layout. Sections: page flow, fields, yard choices, consent, wider screens. */
/* Leaf shell: narrow centered column keeps the address form in the first viewport. */
:where(.leaf-shell) { max-inline-size: 44rem; min-block-size: calc(100svh - var(--compact-chrome-height)); margin-inline: auto; padding: var(--space-2) var(--space-1-25) var(--space-3); }
/* Introductory copy: separate the heading from the address form. */
:where(.leaf-intro) { margin-block: var(--space-0-75) var(--space-1-75); }
/* Leaf sections: separate availability and quoted details from the preceding content. */
:where(.leaf-shell section) { padding-block-start: var(--space-1-5); }
/* Section headings: leave room before the address or explanation. */
:where(.leaf-shell h2, .leaf-scopes legend) { margin-block-end: var(--space-0-5); }
/* Leaf fields: stack label, native input and reserved error message. */
:where(.leaf-field) { display: flex; flex-direction: column; gap: var(--space-0-4); margin-block: var(--space-1); }
/* Leaf inputs: fill the form column while retaining the shared control appearance. */
:where(.leaf-field .sm-input) { inline-size: 100%; min-inline-size: 0; min-block-size: 48px; padding: var(--space-0-8); }
/* Field messages: reserve a full line to keep blur validation from moving actions. */
:where(.leaf-field-error) { min-block-size: var(--space-1-6); margin: 0; }
/* Consent message: reserve two lines for the original required agreement wording. */
:where(.leaf-field-error--agreement) { min-block-size: calc(2 * var(--space-1-6)); }
/* Request feedback: separate service errors from their action. */
:where(.leaf-error) { margin-block: var(--space-0-75); }
/* Leaf actions: fill the form column with the original target height. */
:where(.leaf-shell button) { inline-size: 100%; min-block-size: 48px; }
/* Supporting notes: retain space before the next field or price choice. */
:where(.leaf-note) { margin-block-end: var(--space-0-75); }
/* Yard options: stack native radio choice cards in the narrow form column. */
:where(.leaf-scopes) { display: grid; gap: var(--space-0-5); margin-block: var(--space-1-25) var(--space-0-75); }
/* Yard choice: align the native radio with its full width label and price. */
:where(.leaf-scopes label) { display: flex; align-items: center; gap: var(--space-0-75); min-block-size: 64px; padding: var(--space-0-8); }
/* Yard price row: keep the amount at the opposite edge from its scope. */
:where(.leaf-scopes label > span) { display: flex; justify-content: space-between; gap: var(--space-1); inline-size: 100%; }
/* Native options: retain their size when the label wraps on a phone. */
:where(.leaf-scopes input, .leaf-agreement input) { flex-shrink: 0; }
/* Agreement: align the checkbox with the first line of the linked terms. */
:where(.leaf-agreement) { display: flex; align-items: flex-start; gap: var(--space-0-75); min-block-size: 44px; padding-block: var(--space-0-5); }
/* Agreement checkbox: align the native box with the first text baseline. */
:where(.leaf-agreement input) { margin-block-start: var(--space-0-2); }
/* Contact destination: separate help from the quote and checkout forms. */
:where(.leaf-contact) { margin-block-start: var(--space-1-5); }
/* Contact link: retain the original full touch target. */
:where(.leaf-contact a) { display: inline-flex; align-items: center; min-block-size: 44px; }
/* Leaf progress icon: fit the original busy indicator beside the action label. */
:where(.leaf-spinner) { inline-size: var(--space-1-25); block-size: var(--space-1-25); }
/* Wider screens: restore the original space above the service heading. */
@media (min-width: 768px) {
/* Leaf shell: wider screens have more space below the site header. */
:where(.leaf-shell) { padding-block-start: var(--space-3); }
}
