/* --- Order form (neutral / white UI) --- */
section.container:has(> .ui-card.order-form) {
    padding-top: 0;
    background: #fff;
}

.ui-card.order-form {
    padding: 0;
    border: none;
    background: #fff;
    /* Form field tokens — align with ui/inputs/common.css :root variables */
    --of-input-surface: var(--input-field-bg, #ffffff);
    --of-input-border: var(--input-border-color);
}

.order-form #multi-step-form {
    background: #fff;
}

.order-form__intro {
    padding: 20px 16px 8px;
    background: #fff;
}

.order-form__step-num {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #999;
}

.order-form__heading {
    margin: 0;
    font-family: var(--font-family);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.25;
    color: #1a1a1a;
}

.order-form__body {
    padding: 8px 16px 28px;
    background: #fff;
}

.order-form__section-heading {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.order-form__section-sub {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    line-height: 1.4;
}

.order-form__block {
    margin: 0;
    padding: 0;
    background: #fafafa;
    border-radius: 14px;
    overflow: hidden;
}

.order-form__block + .order-form__block {
    margin-top: 1.15rem;
}

.order-form__block-header {
    padding: 0.95rem 1rem 0.85rem;
    background: #f5f5f5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.order-form__block-header .order-form__section-heading {
    margin-bottom: 0.35rem;
}

.order-form__block-header .order-form__section-sub {
    margin: 0;
}

.order-form__block-body {
    padding: 1rem 1rem 1.15rem;
}

.order-form__label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--input-label-color, #34495e);
    font-weight: 500;
}

.input-component__label--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.order-form__field-group {
    margin-bottom: 2px;
}

.order-form__stack--letter,
.order-form__stack--contact,
.order-form__stack--delivery {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.order-form__stack--delivery > .form-row {
    margin-bottom: 0;
}

.order-form__message-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-form__message-block > .order-form__label {
    margin-bottom: 0;
}

#message-body,
.order-form .input-component__field--letter-body {
    display: block;
    resize: none;
    overflow-y: auto;
    min-height: 170px;
    line-height: 1.5;
}

.order-form__field-hint {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 400;
    color: #bbb;
    line-height: 1.45;
}

.order-form__draft-notice {
    margin: 0;
    padding: 16px 16px 0;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    line-height: 1.45;
}

.order-form__draft-notice[hidden] {
    display: none !important;
}

.order-form__draft-fresh {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 500;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.order-form__draft-fresh:hover {
    color: #666;
}

.order-form__char-count {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: #bbb;
    text-align: right;
    line-height: 1.3;
}

.order-form__message-head {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 5px;
}

.order-form__message-head .order-form__label {
    margin-bottom: 0;
}

.order-form__message-head-sep {
    color: #ccc;
    font-size: 12px;
    line-height: 1;
    user-select: none;
}

.order-form__field-foot,
.order-form__message-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-top: 6px;
    min-height: 1.35rem;
}

.order-form__message-foot-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.order-form .order-form__field-foot .input-component__error,
.order-form #message-body-wrap .order-form__message-foot .input-component__error {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    color: #c5221f;
    visibility: hidden;
}

.order-form .order-form__field-foot .input-component__error.input-component__error--visible,
.order-form #message-body-wrap .order-form__message-foot .input-component__error.input-component__error--visible {
    display: block;
    visibility: visible;
}

.order-form__field-foot .order-form__char-count,
.order-form__message-foot .order-form__char-count {
    flex-shrink: 0;
    margin: 0;
    text-align: right;
}

.order-form__help-link {
    font-size: 12px;
    font-weight: 400;
    color: #bbb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.order-form__help-link:hover {
    color: #888;
}

.order-form__preview-link {
    border: none;
    background: transparent;
    padding: 0;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 400;
    color: #8aa8d8;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.order-form__preview-link:hover {
    color: #6b8fc4;
}

/* Letter layout preview modal */
.letter-preview {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    box-sizing: border-box;
}

.letter-preview[hidden] {
    display: none !important;
}

.letter-preview__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    background: rgba(28, 24, 20, 0.55);
    cursor: pointer;
}

.letter-preview__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 26rem);
    max-height: min(88dvh, 40rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(28, 24, 20, 0.22);
    padding: 1.35rem 1.25rem 1.15rem;
    box-sizing: border-box;
}

.letter-preview__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #666;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.letter-preview__close:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.letter-preview__close-icon {
    width: 1.1rem;
    height: 1.1rem;
    background-color: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
    -webkit-mask-image: url("../../../assets/icons/close-line.svg");
    mask-image: url("../../../assets/icons/close-line.svg");
}

.letter-preview__title {
    margin: 0 2rem 1rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.35;
    color: #1a1a1a;
}

.letter-preview__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

.letter-preview__page {
    padding: 1.35rem 1.2rem 1.5rem;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: #2c2620;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.letter-preview__page .is-placeholder {
    color: #aaa;
}

body.letter-preview-open {
    overflow: hidden;
}

.order-form__divider {
    height: 1px;
    background: #eee;
    margin: 24px 0;
    border: none;
}

.order-form .input-component--checkbox-scented {
    margin-top: 2px;
    margin-bottom: 0;
}

.order-form__checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    -webkit-tap-highlight-color: transparent;
}

.order-form__attar-included {
    color: #999;
    font-weight: 400;
}

.order-form__checkbox-label .input-component__checkbox-text-stack,
.order-form__checkbox-label .input-component__checkbox-help {
    display: none;
}

.order-form .input-component--checkbox .input-component__checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.order-form .input-component--checkbox .input-component__checkbox-box {
    flex-shrink: 0;
    width: 1.45rem;
    height: 1.45rem;
    border: none;
    border-radius: 0;
    background-color: #888;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
    -webkit-mask-image: url("../../../assets/icons/checkbox-blank-circle-line.svg");
    mask-image: url("../../../assets/icons/checkbox-blank-circle-line.svg");
    position: relative;
}

.order-form .input-component--checkbox .input-component__checkbox:checked + .input-component__checkbox-box {
    background-color: #555;
    background-image: none;
    border: none;
    -webkit-mask-image: url("../../../assets/icons/checkbox-circle-fill.svg");
    mask-image: url("../../../assets/icons/checkbox-circle-fill.svg");
}

.order-form .input-component--checkbox .input-component__checkbox:checked + .input-component__checkbox-box::after {
    display: none;
}

.order-form .input-component--checkbox .input-component__checkbox:focus-visible + .input-component__checkbox-box {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

.order-form__attar-dot {
    color: #bbb;
}

.order-form__charset-note {
    font-size: 12px;
    font-weight: 400;
    color: #bbb;
    margin: 12px 0 0 0;
    line-height: 1.5;
}

.order-form__charset-note--top {
    margin: 0 0 18px 0;
}

.order-form__legal-note {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin: 16px 0 12px;
    line-height: 1.55;
}

.order-form__legal-note a {
    color: #555;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.order-form__tax-note {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-align: right;
}

.order-form__pay-methods {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-align: center;
    line-height: 1.4;
}

.order-form__pay-msg {
    margin: 0 0 14px;
    padding: 0.75rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #6E6355;
    background: #f5f3ef;
    border: 1px solid rgba(44, 38, 32, 0.10);
    border-radius: 12px;
    text-align: center;
}

.order-form__pay-msg[hidden] {
    display: none !important;
}

.order-form__pay-msg.is-error {
    color: #8a3b32;
    background: #faf2f0;
    border-color: rgba(197, 34, 31, 0.22);
}

/* --- Scoped field overrides (order form only) --- */
.order-form .order-form__stack .input-component,
.order-form .form-row .input-component {
    margin-bottom: 0;
}

.order-form .input-component__label {
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--input-label-color, #34495e);
    font-weight: 500;
}

.order-form .input-component__field {
    background: var(--of-input-surface);
    border: var(--input-border-width, 1px) solid var(--of-input-border);
    border-radius: 12px;
    padding: 13px 16px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    min-height: 48px;
    box-sizing: border-box;
    transition: border-width 0.15s ease, border-color 0.15s ease;
}

.order-form .input-component--textarea .input-component__field {
    min-height: 170px;
    padding: 13px 16px;
}

.order-form .input-component--dropdown-text .dropdown-text__combined {
    background: var(--of-input-surface);
    border: var(--input-border-width, 1px) solid var(--of-input-border);
    transition: border-width 0.15s ease, border-color 0.15s ease;
}

/* Recipient title + name: one surface — no inner “card” or second focus ring (outer .dropdown-text__combined handles focus/error). */
.order-form .input-component--dropdown-text .dropdown-text__segment--text .input-component__field {
    background: transparent;
    border-radius: 0 12px 12px 0;
}

.order-form .input-component__field::placeholder {
    font-size: 15px;
    font-weight: 400;
    color: #aaa;
}

/* Match autofill to the same surface as normal fields (ui/styles/global.css uses white inset for --bg-color). */
.order-form .input-component__field:-webkit-autofill,
.order-form .input-component__field:-webkit-autofill:hover,
.order-form .input-component__field:-webkit-autofill:active {
    -webkit-text-fill-color: #1a1a1a;
    caret-color: #1a1a1a;
    -webkit-box-shadow: 0 0 0 1000px var(--of-input-surface) inset !important;
    box-shadow: 0 0 0 1000px var(--of-input-surface) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.order-form .input-component__field:-webkit-autofill:focus {
    -webkit-text-fill-color: #1a1a1a;
    caret-color: #1a1a1a;
    -webkit-box-shadow: 0 0 0 1000px var(--of-input-surface) inset !important;
    box-shadow: 0 0 0 1000px var(--of-input-surface) inset !important;
}

.order-form .input-component__field.has-error:-webkit-autofill,
.order-form .input-component__field.has-error:-webkit-autofill:hover,
.order-form .input-component__field.has-error:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--of-input-surface) inset !important;
    box-shadow: 0 0 0 1000px var(--of-input-surface) inset !important;
}

.order-form .input-component__field.has-error:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--of-input-surface) inset !important;
    box-shadow: 0 0 0 1000px var(--of-input-surface) inset !important;
}

.order-form .input-component--dropdown-text .dropdown-text__segment--text .input-component__field:-webkit-autofill:focus,
.order-form .input-component--dropdown-text .dropdown-text__segment--text .input-component__field.has-error:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--of-input-surface) inset !important;
    box-shadow: 0 0 0 1000px var(--of-input-surface) inset !important;
}

.order-form .input-component__field:-moz-autofill {
    background-color: var(--of-input-surface) !important;
    color: #1a1a1a !important;
}

.order-form .input-component__field:focus {
    outline: none;
    box-shadow: none;
    border-width: var(--input-border-width, 1px);
    border-color: var(--input-focus-border-color, #000000);
}

.order-form .input-component__field.has-error:focus {
    border-width: var(--input-border-width, 1px);
    border-color: var(--input-error-border-color, #c5221f);
}

.order-form .input-component--dropdown-text .dropdown-text__segment--text .input-component__field:focus,
.order-form .input-component--dropdown-text .dropdown-text__segment--text .input-component__field:focus-visible {
    outline: none;
    box-shadow: none;
}

.order-form .input-component__field.has-error {
    border-width: var(--input-border-width, 1px);
    border-color: var(--input-error-border-color, #c5221f);
    box-shadow: none;
}

.order-form .input-component--dropdown-text .dropdown-text__segment--text .input-component__field.has-error {
    box-shadow: none;
}

.order-form .input-component--dropdown .dropdown-input__trigger {
    background: var(--of-input-surface);
    border: var(--input-border-width, 1px) solid var(--of-input-border);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    min-height: 48px;
    transition: border-width 0.15s ease, border-color 0.15s ease;
}

.order-form .input-component--dropdown-text .dropdown-input__trigger {
    background: transparent;
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 13px 12px 13px 16px;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    min-height: 48px;
}

.order-form .input-component--dropdown-text .dropdown-input__trigger:focus,
.order-form .input-component--dropdown-text .dropdown-input__trigger:focus-visible {
    outline: none;
    box-shadow: none;
}

.order-form .dropdown-input__option {
    font-size: 15px;
    font-weight: 400;
}

.order-form .input-component--dropdown .dropdown-input__trigger[data-placeholder="true"] .dropdown-input__value,
.order-form .input-component--dropdown-text .dropdown-input__trigger[data-placeholder="true"] .dropdown-input__value {
    color: #aaa;
}

.order-form .input-component--dropdown .dropdown-input__list,
.order-form .input-component--dropdown-text .dropdown-input__list {
    border-color: var(--of-input-border);
    border-radius: 0 0 12px 12px;
}

.order-form .input-component--dropdown .dropdown-input__trigger[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.order-form .input-component--dropdown-text .dropdown-text__segment--dropdown .dropdown-input__trigger[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.order-form .input-component--dropdown .dropdown-input__trigger.has-error,
.order-form .input-component--dropdown.input-component--error .dropdown-input__trigger {
    border-width: var(--input-border-width, 1px);
    border-color: var(--input-error-border-color, #c5221f);
    box-shadow: none;
}

.order-form .input-component--dropdown-text .dropdown-input__trigger.has-error,
.order-form .input-component--dropdown-text.input-component--error .dropdown-input__trigger {
    box-shadow: none;
}

.order-form .input-component--dropdown-text.input-component--error .dropdown-text__combined {
    border-width: var(--input-border-width, 1px);
    border-color: var(--input-error-border-color, #c5221f);
    box-shadow: none;
}

.order-form .input-component--dropdown-text .dropdown-text__combined:focus-within {
    border-width: var(--input-border-width, 1px);
    border-color: var(--input-focus-border-color, #000000);
    box-shadow: none;
}

.order-form .input-component--dropdown-text.input-component--error .dropdown-text__combined:focus-within {
    border-width: var(--input-border-width, 1px);
    border-color: var(--input-error-border-color, #c5221f);
    box-shadow: none;
}

.form-row--city-state {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    align-items: start;
}

@media (max-width: 399px) {
    .form-row--city-state {
        grid-template-columns: 1fr;
    }
}

.form-row--pin {
    display: flex;
    justify-content: flex-start;
}

.form-row--pin .pin-code-field {
    width: 40%;
    max-width: 12rem;
    min-width: 0;
}

@media (max-width: 399px) {
    .form-row--pin .pin-code-field {
        width: 100%;
        max-width: none;
    }
}

.form-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.order-form .form-actions--step-1 {
    margin-top: 20px;
}

.order-form .form-actions--step-2 {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 16px;
}

.order-form .form-actions--step-1.form-actions--step-2 {
    margin-top: 20px;
}

.order-form .form-actions--step-3 {
    margin-top: 20px;
}

.order-form__price-box {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    margin-top: 0;
    background: #fafafa;
}

.order-form__body--seal > .order-form__section-heading {
    margin-bottom: 6px;
}

.order-form__body--seal > .order-form__section-sub {
    margin: 0 0 1.25rem;
}

.order-form__body--seal > .order-form__price-box {
    margin-bottom: 1.25rem;
}

.order-form__body--seal > .order-form__legal-note {
    margin: 0 0 1rem;
}

.order-form__body--seal > .order-form__pay-msg {
    margin-bottom: 1rem;
}

.order-form__body--seal > .form-actions--step-3 {
    margin-top: 0.25rem;
}

.order-form__body--seal > .order-form__pay-methods {
    margin-top: 0.85rem;
}

.order-form__price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
}

.order-form__price-line strong {
    font-size: 15px;
    color: #1a1a1a;
}

.order-form__price-line--total {
    font-weight: 600;
}

.order-form__price-line--total strong {
    font-size: 18px;
}

.order-form__price-line--saving {
    margin-top: 10px;
    color: #5f6368;
}

.order-form__price-line--saving strong {
    font-weight: 500;
    color: #2e7d32;
}

.order-form__price-box .order-form__divider {
    margin: 12px 0;
}

.order-form__price-line + .order-form__price-line {
    margin-top: 10px;
}

.order-form__price-line--shipping .order-form__shipping-free {
    color: #2e7d32;
    font-weight: 600;
}

.order-form__delivery-line {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #999;
}

.order-form__courtesy-wrap {
    margin-top: 10px;
    margin-bottom: 0;
}

.order-form__courtesy-toggle {
    border: none;
    background: transparent;
    color: #666;
    padding: 0;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.order-form__courtesy-panel {
    margin-top: 10px;
}

.order-form__courtesy-panel[hidden] {
    display: none !important;
    margin: 0 !important;
}

.order-form__price-line--saving[hidden] {
    display: none !important;
}

.order-form__courtesy-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.order-form__courtesy-field {
    flex: 1 1 auto;
    min-width: 0;
}

.order-form .order-form__courtesy-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
}

.order-form__courtesy-apply {
    flex-shrink: 0;
    border: 1px solid #1a1a1a;
    background: #fff;
    color: #1a1a1a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    min-height: 48px;
}

section.container:has(> .ui-card.order-form--batch-full),
section.container:has(> .ui-card.order-form--waitlist) {
    min-height: calc(100svh - env(safe-area-inset-top));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    background: #fff;
}

.ui-card.order-form.order-form--batch-full,
.ui-card.order-form.order-form--waitlist {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
    background: #fff;
}

.order-form__waitlist {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 2.5rem;
    box-sizing: border-box;
    text-align: left;
}

.order-form__waitlist-title {
    margin: 0 0 1rem;
    font-family: var(--font-family);
    font-size: clamp(1.5rem, 5vw, 1.75rem);
    font-weight: 500;
    line-height: 1.25;
    color: #1a1a1a;
}

.order-form__waitlist-text {
    margin: 0 0 0.9rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #6E6355;
}

.order-form__waitlist-text:last-of-type {
    margin-bottom: 1.75rem;
}

.order-form__waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.order-form__waitlist-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.order-form__waitlist-actions .order-form__btn-primary,
.order-form__waitlist-actions .order-form__btn-secondary {
    width: 100%;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.order-form__btn-secondary--full {
    width: 100%;
}

.order-form__batch-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 2.5rem;
    text-align: center;
    box-sizing: border-box;
}

.order-form__batch-full--missed {
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
}

.order-form__batch-full-title {
    margin: 0;
    max-width: 22ch;
    font-family: var(--font-family);
    font-size: clamp(1.35rem, 4.5vw, 1.6rem);
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a1a;
    text-wrap: balance;
}

.order-form__batch-full--missed .order-form__batch-full-title {
    max-width: none;
    margin-bottom: 0.25rem;
}

.order-form__batch-full-text {
    margin: 0 0 0.75rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #6E6355;
}

.order-form__batch-full .order-form__btn-primary {
    width: 100%;
    max-width: 18rem;
    justify-content: center;
    text-decoration: none;
}

.order-form__batch-full--missed .order-form__btn-primary {
    max-width: none;
    margin-top: 0.5rem;
}

.order-form .order-form__btn-primary {
    background: #1a1a1a;
    color: #fff;
    border-radius: 50px;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    min-height: 52px;
    box-sizing: border-box;
}

.order-form .order-form__btn-primary:hover {
    background: #333;
}

.order-form .order-form__btn-primary--full {
    width: 100%;
    justify-content: center;
}

.order-form .form-actions--step-2 .order-form__btn-primary,
.order-form .form-actions--step-2 .order-form__btn-secondary {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    margin: 0;
}

.order-form .order-form__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 50px;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-family);
    min-height: 52px;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.order-form .order-form__btn-secondary:hover {
    background: #fafafa;
}

.order-form .order-form__btn-secondary:active {
    background: #f0f0f0;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.35s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop: constrained, centered form card */
@media (min-width: 720px) {
    section.container:has(> .ui-card.order-form) {
        max-width: 34rem;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-top: 2rem;
        padding-bottom: 3rem;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        box-sizing: border-box;
    }

    section.container:has(> .ui-card.order-form--batch-full),
    section.container:has(> .ui-card.order-form--waitlist) {
        padding-top: 0;
        padding-bottom: 0;
        min-height: calc(100svh - env(safe-area-inset-top));
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ui-card.order-form.order-form--batch-full,
    .ui-card.order-form.order-form--waitlist {
        border: 1px solid #eee;
        border-radius: 18px;
        box-shadow: 0 1px 2px rgba(44, 38, 32, 0.04), 0 8px 24px rgba(44, 38, 32, 0.05);
        overflow: hidden;
    }

    .order-form__waitlist,
    .order-form__batch-full {
        padding: 2.75rem 2rem 3rem;
        max-width: 100%;
    }

    .ui-card.order-form {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border: 1px solid #eee;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(44, 38, 32, 0.04), 0 8px 24px rgba(44, 38, 32, 0.05);
        box-sizing: border-box;
    }

    .order-form__intro {
        padding: 28px 28px 12px;
    }

    .order-form__draft-notice {
        padding: 24px 28px 0;
    }

    .order-form__body {
        padding: 8px 28px 36px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .order-form__heading {
        font-size: 28px;
    }

    .order-form__block + .order-form__block {
        margin-top: 1.35rem;
    }

    .order-form__block-header {
        padding: 1.05rem 1.2rem 0.9rem;
    }

    .order-form__block-body {
        padding: 1.15rem 1.2rem 1.3rem;
    }

    .order-form .input-component,
    .order-form .input-component__field,
    .order-form .dropdown-text__combined {
        max-width: 100%;
        box-sizing: border-box;
    }

    .order-form__price-box {
        padding: 20px 22px;
    }

    .order-form .form-actions--step-2,
    .order-form .form-actions--step-3 {
        margin-top: 24px;
        gap: 20px;
    }

    .order-form__courtesy-row {
        gap: 10px;
        max-width: 100%;
    }

    .order-form__courtesy-apply {
        padding: 10px 18px;
    }
}

@media (min-width: 1100px) {
    section.container:has(> .ui-card.order-form) {
        max-width: 36rem;
    }
}


