/* Local Pickup checkout blocks. Fits a 320px screen; touch targets are at least 44px. */
.lucia-pickup { margin: 0 0 24px; }
.lucia-pickup__part { margin: 0 0 16px; }
.lucia-pickup label { display: block; font-weight: 600; margin: 12px 0 4px; }
.lucia-pickup select { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 48px; padding: 8px 12px; font-size: 16px; }
.lucia-pickup select:focus-visible,
.lucia-pickup input:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.lucia-pickup__help,
.lucia-pickup__items { font-size: 0.9em; margin: 4px 0 0; }
.lucia-pickup__alert { font-weight: 600; margin: 8px 0 0; color: #8a1c1c; }
.lucia-pickup__place { border: 1px solid currentColor; border-radius: 8px; padding: 12px 16px; margin-top: 16px; overflow-wrap: anywhere; }
.lucia-pickup__agree { display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; align-items: start; margin: 0 0 12px; }
.lucia-pickup__agree input { width: 24px; height: 24px; margin: 10px 0 0; }
.lucia-pickup__agree label { font-weight: 400; margin: 0; padding: 10px 0; }
.lucia-pickup__agree.has-error label { color: #8a1c1c; }
.lucia-pickup__agree.has-error input { outline: 3px solid #8a1c1c; outline-offset: 2px; }

/* Checkout screens (checkout-blocks.js sets these classes on <body>). */
.lucia-pickup__step { font-weight: 600; margin: 0 0 4px; }
.lucia-pickup__chosen { margin: 0 0 12px; }
.lucia-pickup__nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 16px; }
.lucia-pickup__nav .btn { min-height: 48px; }
.lucia-pickup__nav button.btn:last-child { margin-left: auto; }
.lucia-pickup__nav a.btn { display: inline-flex; align-items: center; box-sizing: border-box; text-decoration: none; }
.lucia-pickup--nav { width: 100%; }

/* There is one pickup location, so no box to choose it (Owner, Dec 2, 2026). It stays in the page, already chosen. */
.wc-block-checkout__form :is(.wp-block-woocommerce-checkout-pickup-options-block, .wc-block-checkout__pickup-options) { display: none !important; }

/*
 * First screen (Owner, Dec 2, 2026): one list under "Contact information" - first name, last name, email, phone,
 * then ZIP code for the card check. WooCommerce keeps the email and the other boxes in two sections, so those
 * wrappers are flattened and the boxes are put in order. No "Billing address" title and no country box.
 */
body.lucia-step-first .wc-block-checkout__form { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; column-gap: 16px; }
body.lucia-step-first .wc-block-checkout__form > * { flex: 0 0 100%; min-width: 0; order: 8; }
body.lucia-step-first .wc-block-checkout__form :is(.wc-block-checkout__contact-fields, .wc-block-checkout__billing-fields, .wc-block-checkout__contact-fields > .wc-block-components-checkout-step__content, .wc-block-checkout__billing-fields > .wc-block-components-checkout-step__content, .wc-block-components-address-address-wrapper, .wc-block-components-address-form-wrapper, #contact, #billing) { display: contents; }
body.lucia-step-first .wc-block-checkout__billing-fields :is(legend, .wc-block-components-checkout-step__heading-container, .wc-block-components-address-card-wrapper, .wc-block-components-address-form__country) { display: none !important; }
body.lucia-step-first .wc-block-checkout__form > .lucia-pickup:not(.lucia-pickup--nav) { order: 0; margin: 0; }
body.lucia-step-first .wc-block-checkout__contact-fields > * , body.lucia-step-first .wc-block-checkout__contact-fields .wc-block-components-checkout-step__content > * { flex: 0 0 100%; order: 1; }
body.lucia-step-first .wc-block-checkout__billing-fields .wc-block-components-checkout-step__content > :not(.wc-block-components-address-address-wrapper) { flex: 0 0 100%; order: 1; }
body.lucia-step-first #billing > * { flex: 1 0 100%; order: 6; }
body.lucia-step-first #billing > :is(.wc-block-components-address-form__first_name, .wc-block-components-address-form__last_name) { flex: 1 0 calc(50% - 8px); order: 2; }
body.lucia-step-first #contact > * { flex: 0 0 100%; order: 3; }
body.lucia-step-first #contact > .wc-block-components-address-form__email { margin-top: 16px; }
body.lucia-step-first #contact > .wc-block-checkout__guest-checkout-notice { order: 7; }
body.lucia-step-first #billing > .wc-block-components-address-form__phone { order: 4; }
body.lucia-step-first #billing > .wc-block-components-address-form__postcode { order: 5; }
body.lucia-step-first .wc-block-checkout__form > .lucia-pickup--nav { order: 30; }
.lucia-steps .wc-block-checkout__form { scroll-margin-top: 120px; }

/* Before the last screen: no payment, notes, boxes or "Place order". */
body.lucia-steps:not(.lucia-step-last) :is(.wp-block-woocommerce-checkout-express-payment-block, .wc-block-components-express-payment, .wc-block-components-express-payment-continue-rule, .wp-block-woocommerce-checkout-additional-information-block, .wc-block-checkout__order-fields, .wp-block-woocommerce-checkout-order-note-block, .wc-block-checkout__order-notes, .wc-block-checkout__add-note, .wp-block-woocommerce-checkout-terms-block, .wc-block-checkout__terms, .lucia-pickup--agreements, .wp-block-woocommerce-checkout-actions-block, .wc-block-checkout__actions) { display: none !important; }
/* The payment box is moved out of sight rather than removed, so Stripe can still size its card fields. */
body.lucia-steps:not(.lucia-step-last) :is(.wp-block-woocommerce-checkout-payment-block, .wc-block-checkout__payment-method) { position: absolute !important; left: -200vw; width: 90vw; visibility: hidden; }

/* After the first screen: no contact details or pickup-location choice. */
body.lucia-steps:not(.lucia-step-first) :is(.wp-block-woocommerce-checkout-contact-information-block, .wc-block-checkout__contact-fields, .wp-block-woocommerce-checkout-shipping-method-block, .wc-block-checkout__shipping-method, .wp-block-woocommerce-checkout-pickup-options-block, .wc-block-checkout__pickup-options, .wp-block-woocommerce-checkout-billing-address-block, .wc-block-checkout__billing-fields, .wp-block-woocommerce-checkout-shipping-address-block, .wc-block-checkout__shipping-fields) { display: none !important; }

/* The optional marketing box is set apart from the two agreements. */
.lucia-pickup__agree.is-optional{margin-top:16px;padding-top:16px;border-top:1px solid #d9c7ec}
