/* 3PART customer journey 0.14.0 — isolated customer UI. Quantity controls live only here. */
.customer-theme-scope .public-form-card{max-width:var(--brand-content-width,1100px);width:100%;margin:0 auto;padding:var(--brand-card-padding,32px);box-sizing:border-box;border-width:var(--brand-border-width,1px);box-shadow:var(--brand-shadow,0 14px 34px rgba(15,23,42,.08))}
.customer-theme-scope .public-form-head{text-align:var(--brand-heading-align,left);margin-bottom:var(--brand-section-gap,28px)}
.customer-theme-scope .public-form-head h1,.customer-theme-scope .shop-wizard .step-public-head h2{font-weight:var(--brand-heading-weight,800)}
.customer-theme-scope .btn,.customer-theme-scope button.btn,.customer-theme-scope .add-chip{border-radius:var(--brand-button-radius,14px);min-height:var(--brand-control-height,48px)}
.customer-theme-scope .shop-wizard .btn:not(.secondary){background:var(--brand-button-bg,var(--brand-primary))}
.customer-theme-scope .field input,.customer-theme-scope .field select,.customer-theme-scope .field textarea,.customer-theme-scope .shop-wizard .field input,.customer-theme-scope .shop-wizard .field select,.customer-theme-scope .shop-wizard .field textarea{border-radius:var(--brand-input-radius,13px);border-width:var(--brand-border-width,1px);min-height:var(--brand-control-height,48px)}
.customer-theme-scope .shop-wizard .product-card,.customer-theme-scope .shop-wizard .order-choice-row,.customer-theme-scope .shop-wizard .choice-category{border-width:var(--brand-border-width,1px)}
.public-form-head{margin-bottom:var(--brand-section-gap,28px)}.public-form-head h1{font-size:clamp(26px,3vw,38px);margin:18px 0 8px}
.public-form-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.public-form-head-row>div:first-child{min-width:0}
.shop-wizard{position:relative;min-width:0}.shop-wizard [hidden]{display:none!important}.shop-wizard .shop-panel{display:block;min-width:0}.shop-wizard .shop-panel:not(.active){display:none}
.shop-wizard .compact-progress{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;margin-bottom:12px}.shop-wizard .compact-progress strong{color:var(--brand-primary)}.shop-wizard .compact-progress span{white-space:nowrap;font-size:13px;color:var(--brand-muted)}
.shop-wizard .step-public-head h2{font-size:clamp(24px,3vw,32px);line-height:1.2;margin:0 0 22px}.shop-wizard .field{display:flex;flex-direction:column;gap:8px;min-width:0}.shop-wizard .field input,.shop-wizard .field select,.shop-wizard .field textarea{width:100%;min-width:0;min-height:48px;font-size:16px;box-sizing:border-box}
.shop-wizard fieldset{border:0;padding:0;margin:0;min-width:0}.shop-wizard legend{font-size:16px;font-weight:700;margin-bottom:14px}.shop-wizard .product-grid{display:grid;grid-template-columns:1fr;gap:18px;min-width:0}

/* Store product cards */
.shop-wizard .product-card{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;width:100%;max-width:100%;padding:22px;box-sizing:border-box;min-width:0;overflow:hidden;cursor:default;border:1px solid var(--brand-border);border-radius:var(--brand-radius)}
.shop-wizard .choice-image{width:200px;height:170px;max-width:100%;object-fit:cover;border-radius:18px}.shop-wizard .choice-image.placeholder{display:grid;place-items:center;background:#f2f4f7}
.shop-wizard .product-card-body{container-type:inline-size;display:flex;flex-direction:column;min-width:0;width:100%;max-width:100%;gap:10px}.shop-wizard .product-card-body>strong{font-size:22px}.shop-wizard .product-card-body>b{font-size:20px}.shop-wizard .product-description{white-space:normal;line-height:1.55;font-size:15px!important;overflow-wrap:anywhere}
.shop-wizard .package-select-control{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.shop-wizard .package-persons{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding-top:16px;margin-top:4px;min-width:0}
.shop-wizard .package-pick-btn{align-self:flex-start;min-width:112px;min-height:44px;padding:12px 24px}.shop-wizard .package-line-total{white-space:nowrap;font-size:17px;min-width:0}
.shop-wizard .choice-label{display:flex;align-items:center;gap:12px;cursor:pointer;min-width:0}.shop-wizard .choice-label input{position:static!important;opacity:1!important;width:22px!important;height:22px!important;min-width:22px;accent-color:var(--brand-primary)}.shop-wizard .choice-label strong{font-size:17px!important;overflow-wrap:anywhere}

.shop-wizard .product-card:has(input:checked){border-color:var(--brand-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand-primary) 16%,transparent)}

/* One quantity component used everywhere. It cannot exceed its parent card. */
.shop-wizard .qty-reveal{margin-top:8px;padding-top:12px;border-top:1px solid var(--brand-border);width:100%;max-width:100%;min-width:0;box-sizing:border-box}.shop-wizard .qty-reveal>label,.shop-wizard .package-persons>label{font-weight:700}
.shop-wizard .quantity-price-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden}
.shop-wizard .qty-stepper{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;max-width:100%;min-width:0}
.shop-wizard .qty-stepper button{flex:0 0 44px;width:44px;min-width:44px;height:44px;padding:0;border:1px solid var(--brand-border);border-radius:12px;background:var(--brand-surface);color:var(--brand-text);font-size:22px;cursor:pointer;box-sizing:border-box}.shop-wizard .qty-stepper input{flex:0 1 76px;width:76px!important;max-width:76px!important;min-width:56px!important;height:44px;min-height:44px;text-align:center;border:1px solid var(--brand-border);border-radius:12px;font-size:16px;background:var(--brand-surface);color:var(--brand-text);padding:6px;box-sizing:border-box}
.shop-wizard .quantity-price-row .package-line-total{flex:0 1 auto;margin-left:auto;text-align:right;max-width:100%;overflow-wrap:anywhere}

/* Shared extra-product action: uses the existing theme and cart contract. */
.shop-wizard .extra-quantity-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%;min-width:0;position:relative}
.customer-theme-scope .shop-wizard .extra-add-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:88px;min-height:44px;height:44px;margin:0;padding:8px 12px;font-size:14px;line-height:1.2;white-space:nowrap;box-sizing:border-box}
.shop-wizard .extra-quantity-actions .qty-stepper{gap:6px;align-self:center}
.shop-wizard .extra-quantity-actions .qty-stepper input{width:56px!important;max-width:56px!important;flex-basis:56px}
.shop-wizard .quantity-price-row.extra-quantity-price-row{justify-content:flex-start;flex-direction:row;align-items:center;overflow:visible}
.shop-wizard .extra-add-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.shop-wizard .extra-add-btn:focus-visible{outline:2px solid var(--brand-text);outline-offset:3px}

/* Categorised Extra / custom-catering list */
.shop-wizard .choice-category{border:1px solid var(--brand-border);border-radius:18px;background:var(--brand-surface);overflow:hidden}.shop-wizard .choice-category+.choice-category{margin-top:16px}.shop-wizard .choice-category-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--brand-border);background:color-mix(in srgb,var(--brand-primary) 4%,var(--brand-surface))}.shop-wizard .choice-category-head h3{margin:2px 0 0;font-size:18px}.shop-wizard .choice-category-kicker{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--brand-muted)}.shop-wizard .choice-category-toggle{border:0;background:transparent;color:var(--brand-text);font:inherit;font-weight:750;cursor:pointer;padding:8px}.shop-wizard .choice-category-items{display:grid;gap:12px;padding:14px;min-width:0}.shop-wizard .choice-category.is-collapsed .choice-category-items{display:none}.shop-wizard .choice-category.is-collapsed .choice-category-head{border-bottom:0}
.shop-wizard [data-choice-route="extra"] .choice-item,.shop-wizard [data-choice-route="custom"] .choice-item{margin:0;min-width:0;max-width:100%}.shop-wizard [data-choice-route="extra"] .product-card,.shop-wizard [data-choice-route="custom"] .product-card{grid-template-columns:180px minmax(0,1fr);align-items:start;width:100%;max-width:100%;overflow:hidden}.shop-wizard [data-choice-route="extra"] .product-card-body,.shop-wizard [data-choice-route="custom"] .product-card-body{min-width:0;width:100%;max-width:100%}

/* Package contents */
.package-contents{margin:10px 0 2px;padding:12px 14px;border-radius:13px;background:color-mix(in srgb,var(--brand-primary) 5%,var(--brand-surface));border:1px solid color-mix(in srgb,var(--brand-primary) 14%,var(--brand-border))}.package-contents>strong{display:block;margin-bottom:6px;font-size:13px}.package-contents ul{margin:0;padding-left:20px;display:grid;gap:3px;color:var(--brand-muted);font-size:13px}.package-accessories,.package-allergens{display:block;margin-top:7px;line-height:1.45}.package-accessories strong,.package-allergens strong{color:var(--brand-text)}

/* Custom package */
.shop-wizard .custom-package-start{display:flex;align-items:flex-end;justify-content:flex-start;gap:18px;flex-wrap:wrap;margin-top:10px}.shop-wizard .custom-package-start .package-persons{margin:0;padding:0;border:0;min-width:300px;flex:1 1 360px}.shop-wizard .custom-package-start>[data-custom-open]{flex:0 0 auto;margin:0 0 1px}.custom-choice-builder{margin-top:16px;padding:18px;border:1px solid var(--brand-border);border-radius:18px;background:color-mix(in srgb,var(--brand-surface) 94%,var(--brand-primary) 6%)}.custom-choice-builder>legend{font-size:18px;font-weight:850;padding:0 8px}.custom-choice-builder.custom-collapsed{display:none!important}.custom-builder-actions{display:flex;justify-content:flex-end;margin-top:16px}.custom-selection-summary{margin-top:12px;padding:12px 14px;border-radius:12px;background:color-mix(in srgb,var(--brand-primary) 8%,var(--brand-surface));font-size:14px;line-height:1.5}.custom-package-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}.custom-package-actions .btn{margin:0}.choice-item:has(.custom-choice-builder){grid-column:1/-1}

/* Simple order form — deliberately not storefront cards. */
.shop-wizard .order-choice-list{display:grid;gap:10px}.shop-wizard .order-choice-row{border:1px solid var(--brand-border);border-radius:14px;padding:14px 16px;background:var(--brand-surface)}.shop-wizard .order-choice-content{display:block}.shop-wizard .form-choice .product-description{margin-left:34px}.shop-wizard .form-choice .product-card-body>b{font-size:16px;margin-left:34px}.shop-wizard .form-choice .qty-reveal{margin:10px 0 0 32px}.shop-wizard[data-form-kind="order"] .choice-label{display:flex;align-items:center;gap:10px}

/* Wizard / review */
.shop-wizard .wizard-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;position:static;margin-top:28px;padding-top:20px;border-top:1px solid var(--brand-border);background:none}.shop-wizard .wizard-actions-right{display:flex;gap:12px}.shop-wizard .wizard-actions .btn{min-width:120px;min-height:48px;width:auto;font-size:16px}.shop-wizard .btn:not(.secondary){background:var(--brand-primary);color:var(--brand-button-text);font-weight:800}.shop-wizard .review-line,.shop-wizard .review-total{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--brand-border);overflow-wrap:anywhere}.shop-wizard .review-line strong,.shop-wizard .review-total strong{text-align:right;max-width:65%}.shop-wizard .review-total{font-size:18px;border-bottom:0}.shop-wizard .special-group-row{display:flex;flex-wrap:wrap;gap:12px}.shop-wizard .special-restrictions{flex:1 1 100%}.shop-wizard .terms-check input{width:22px;height:22px;min-width:22px;accent-color:var(--brand-primary)}.shop-wizard .mobile-cart-bar{display:flex;position:static;margin-top:22px;gap:12px;justify-content:space-between;border-radius:14px;padding:16px;background:var(--brand-surface);border:1px solid var(--brand-border);color:var(--brand-text);font-size:15px}.shop-wizard .mobile-cart-bar strong{text-align:right}.form-build-label{text-align:right;font-size:11px;color:#667085;margin-top:20px}

/* Cart */
.shop-cart-button{appearance:none;border:1px solid var(--brand-border);background:var(--brand-surface);color:var(--brand-text);border-radius:999px;padding:12px 16px;display:inline-flex;align-items:center;gap:9px;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap}.shop-cart-button b{min-width:24px;height:24px;border-radius:999px;display:grid;place-items:center;background:var(--brand-primary);color:var(--brand-button-text);font-size:12px}.shop-cart-icon{font-size:20px}.shop-cart-backdrop{position:fixed;inset:0;background:rgba(17,24,39,.4);z-index:90}.shop-cart-drawer{position:fixed;right:0;top:0;bottom:0;width:min(440px,94vw);z-index:100;background:var(--brand-surface);color:var(--brand-text);box-shadow:-18px 0 45px rgba(17,24,39,.2);padding:24px;overflow:auto;border-left:1px solid var(--brand-border)}.shop-cart-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid var(--brand-border)}.shop-cart-head h2{margin:5px 0 0}.shop-cart-items{display:grid;gap:12px;margin:18px 0}.shop-cart-row{border:1px solid var(--brand-border);border-radius:14px;padding:14px;display:grid;gap:12px}.shop-cart-row-info{display:grid;gap:4px}.shop-cart-row-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cart-qty-btn{width:34px;height:34px;border:1px solid var(--brand-border);border-radius:10px;background:var(--brand-surface);color:var(--brand-text);font-size:19px;cursor:pointer}.cart-qty-value{min-width:30px;text-align:center;font-weight:800}.shop-cart-line-total{margin-left:auto}.cart-remove{appearance:none;border:0;background:transparent;color:#b42318;font-weight:700;cursor:pointer}.shop-cart-minimum{padding:12px 14px;border-radius:12px;background:#fff4e5;color:#8a4b00;margin:12px 0}.shop-cart-minimum.ok{background:#ecfdf3;color:#067647}.shop-cart-total{display:flex;justify-content:space-between;gap:16px;font-size:18px;font-weight:800;padding:18px 0;border-top:1px solid var(--brand-border)}.shop-cart-empty{padding:24px 10px;text-align:center;color:var(--brand-muted)}body.shop-cart-open{overflow:hidden}.full{width:100%}.mobile-cart-bar[data-cart-open]{cursor:pointer}

/* Purchase agreement */
.purchase-agreement-upload{margin-top:14px;padding:18px;border:1px solid var(--brand-border);border-radius:16px;background:var(--brand-surface)}.modern-check{display:flex;align-items:flex-start;gap:12px;cursor:pointer}.modern-check input{width:22px!important;height:22px!important;min-width:22px;margin-top:2px;accent-color:var(--brand-primary)}.modern-check span{display:grid;gap:3px}.modern-check strong{font-size:16px}.modern-check small{color:var(--brand-muted);line-height:1.45}.purchase-agreement-file{margin-top:16px}.file-picker{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:58px;padding:12px 16px;border:1px dashed color-mix(in srgb,var(--brand-primary) 45%,var(--brand-border));border-radius:14px;background:color-mix(in srgb,var(--brand-primary) 4%,var(--brand-surface));cursor:pointer}.file-picker span{font-weight:800}.file-picker small{color:var(--brand-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-picker-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}

@media(max-width:760px){
  .customer-theme-scope .public-form-card{padding:20px 16px}.public-form-head-row{align-items:center;gap:12px}.shop-cart-button span:not(.shop-cart-icon){display:none}.shop-cart-button{padding:10px 12px}.shop-cart-drawer{width:100%;padding:20px}
  .shop-wizard .product-card,.shop-wizard [data-choice-route="extra"] .product-card,.shop-wizard [data-choice-route="custom"] .product-card{grid-template-columns:1fr;padding:16px;gap:16px}.shop-wizard .choice-image{width:100%;height:200px}.shop-wizard .grid{grid-template-columns:1fr}.shop-wizard .choice-category-head{padding:14px}.shop-wizard .choice-category-items{padding:10px}
  .shop-wizard .quantity-price-row{align-items:flex-start;flex-direction:column}.shop-wizard .quantity-price-row .package-line-total{margin-left:0;text-align:left}.shop-wizard .qty-stepper{align-self:flex-start}.shop-wizard .custom-package-start{align-items:stretch}.shop-wizard .custom-package-start .package-persons{min-width:0;flex-basis:100%}.shop-wizard .custom-package-start>[data-custom-open]{width:100%}.custom-builder-actions .btn,.custom-package-actions .btn{width:100%}.custom-choice-builder{padding:12px}
  .shop-wizard .wizard-actions .btn{min-width:0;padding:12px 16px}.shop-wizard .wizard-actions-right{gap:8px}.shop-wizard .review-line,.shop-wizard .review-total{font-size:14px;gap:12px}.shop-wizard .lookup-row{display:flex;flex-wrap:wrap;gap:8px}.shop-wizard .lookup-row input{flex:1;min-width:0}.shop-wizard .mobile-cart-bar{flex-wrap:wrap}.shop-cart-line-total{width:100%;margin-left:0}.file-picker{align-items:flex-start;flex-direction:column}
}

@container (max-width:520px){.shop-wizard .quantity-price-row{align-items:flex-start;flex-direction:column}.shop-wizard .quantity-price-row .package-line-total{margin-left:0;text-align:left}}

/* 0.12.0: keep navigation and cart summary visible at both ends of long shop steps. */
.shop-wizard .shop-step-toolbar-top{display:grid;gap:14px;margin:18px 0 24px}.shop-wizard .wizard-actions-top{margin-top:0;padding-top:0;border-top:0}.shop-wizard .shop-cart-summary-top{margin-top:0}.shop-wizard .shop-cart-summary-top[hidden]{display:none}

/* 0.14.0 offer request uses the same structured catalogue inputs */
.quote-interest-grid{display:flex;flex-wrap:wrap;gap:12px 14px;align-items:center}.quote-interest-grid .allergy-choice{min-height:46px;flex:0 0 auto}.special-note-field{display:grid;gap:6px;margin-top:8px}.special-note-field input{width:100%}
@media(max-width:700px){.quote-interest-grid{display:grid;grid-template-columns:1fr}}

/* 0.14.2: allergy / dietary needs belong to the catering card, not a separate page block. */
.shop-wizard .package-card-actions,.shop-wizard .custom-package-actions{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;margin-top:8px;width:100%;min-width:0}
.shop-wizard .package-special-needs{display:contents}
.shop-wizard .package-special-toggle{grid-column:1;justify-self:start;align-self:start;min-height:44px;margin:0}
.shop-wizard .package-card-actions>.package-pick-btn,.shop-wizard .custom-package-actions>[data-custom-add-cart]{grid-column:2;justify-self:end;align-self:start;margin:0}
.shop-wizard .package-special-panel{grid-column:1/-1;margin-top:2px;padding:18px;border:1px solid color-mix(in srgb,var(--brand-primary) 45%,var(--brand-border));border-radius:18px;background:color-mix(in srgb,var(--brand-primary) 3%,var(--brand-surface));display:grid;gap:14px}
.shop-wizard .package-special-panel[hidden]{display:none!important}
.shop-wizard .package-special-panel .special-needs-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.shop-wizard .package-special-panel .special-needs-head strong{font-size:17px}
.shop-wizard .package-special-panel .special-needs-head p{margin:5px 0 0}
.shop-wizard .package-special-panel [data-special-groups]{display:grid;gap:12px}
.shop-wizard .package-special-panel .special-group-row{display:grid;grid-template-columns:110px minmax(0,1fr) 44px;gap:12px;align-items:start;padding:14px;border:1px solid var(--brand-border);border-radius:14px;background:var(--brand-surface)}
.shop-wizard .package-special-panel .special-group-row .small-field{margin:0}
.shop-wizard .package-special-panel .special-restrictions{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start}
.shop-wizard .package-special-panel .special-restrictions-label{flex-basis:100%;font-weight:800;margin-bottom:2px}
.shop-wizard .package-special-panel .special-note-field{flex:1 1 260px;margin:0}
.shop-wizard .package-special-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.shop-wizard .package-special-summary{grid-column:1/-1;margin-top:10px;padding:11px 13px;border:1px solid color-mix(in srgb,var(--brand-primary) 38%,var(--brand-border));border-radius:12px;background:color-mix(in srgb,var(--brand-primary) 7%,var(--brand-surface));color:var(--brand-text);font-weight:800}
@media(max-width:760px){
  .shop-wizard .package-card-actions,.shop-wizard .custom-package-actions{grid-template-columns:1fr}
  .shop-wizard .package-special-toggle,.shop-wizard .package-card-actions>.package-pick-btn,.shop-wizard .custom-package-actions>[data-custom-add-cart]{grid-column:1;width:100%;justify-self:stretch}
  .shop-wizard .package-special-panel{grid-column:1}
  .shop-wizard .package-special-panel .special-group-row{grid-template-columns:1fr 44px}
  .shop-wizard .package-special-panel .special-group-row .small-field,.shop-wizard .package-special-panel .special-restrictions{grid-column:1}
  .shop-wizard .package-special-panel .remove-special-group{grid-column:2;grid-row:1}
}

/* 0.14.3 wider allergy rows */
.package-special-panel .special-group-row{grid-template-columns:120px minmax(0,1.5fr) minmax(240px,1fr) 48px;align-items:start}.package-special-panel .special-restrictions{display:contents}.package-special-panel .special-note-field{margin:0;align-self:start}.package-special-panel .special-note-field input,.package-special-panel .special-note-field textarea{width:100%}
@media(max-width:900px){.package-special-panel .special-group-row{grid-template-columns:100px minmax(0,1fr) 44px}.package-special-panel .special-note-field{grid-column:2}}
@media(max-width:680px){.package-special-panel .special-group-row{display:grid;grid-template-columns:1fr 44px}.package-special-panel .small-field,.package-special-panel .special-restrictions,.package-special-panel .special-note-field{grid-column:1}.package-special-panel .remove-special-group{grid-column:2;grid-row:1}}

.address-autocomplete{position:relative}.address-suggestions{font-size:14px}

/* 0.16.3 AI photo import control state */
.ai-control-banner{border-radius:18px;padding:16px;margin-bottom:14px}.ai-control-banner.has-missing{background:#fff1f0;border:2px solid #f04438;color:#912018}.ai-control-banner.ok{background:#ecfdf3;border:1px solid #abefc6;color:#05603a}.ai-control-banner p{margin:6px 0 12px}.ai-missing-list{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 14px}.ai-missing-list span{background:#fff;border:1px solid #fda29b;border-radius:999px;padding:6px 9px;font-weight:800}

.ai-missing-review{display:grid;gap:8px;margin:12px 0 14px}.ai-missing-field{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#fff;border:2px solid #f04438;border-radius:12px;padding:11px 12px}.ai-missing-field span{font-weight:800}.ai-missing-field strong{color:#b42318;font-size:12px;text-align:right}

/* 0.16.3 unified journey + professional special-needs fields */
.special-note-field{display:grid;gap:7px;margin-top:10px}.special-note-field>span{font-weight:800}.special-note-field>small{color:var(--brand-muted);line-height:1.4}.special-note-field textarea{width:100%;min-height:96px;resize:vertical;border:1px solid var(--brand-border);border-radius:14px;padding:13px 14px;font:inherit;line-height:1.45;background:var(--brand-surface);color:var(--brand-text)}.special-note-field textarea:focus{outline:2px solid color-mix(in srgb,var(--brand-primary) 28%,transparent);border-color:var(--brand-primary)}.line-total-label{font-weight:700;color:var(--brand-muted);font-size:.88em}.shop-wizard .wizard-actions-top{display:flex!important}

/* 0.16.11 offer/customer polish */
@media(min-width:761px){.shop-wizard .review-total.offer-review-notice{white-space:nowrap}.shop-wizard .review-total.offer-review-notice strong{max-width:none;white-space:nowrap}}

/* 0.16.33: saved Lag din egen summary uses the same readable catering hierarchy as standard packages. */
.custom-selection-summary{display:grid;gap:10px}
.custom-selection-summary .custom-summary-title{font-size:22px;color:var(--brand-text)}
.custom-selection-summary .custom-summary-lines{display:grid;gap:4px}
.custom-selection-summary .custom-summary-lines span{display:block}
.custom-selection-summary p{margin:0}
.custom-selection-summary .custom-summary-price{display:flex;justify-content:space-between;gap:18px;align-items:center;border-top:1px solid var(--brand-border);padding-top:10px}
.custom-selection-summary .custom-summary-price strong{font-size:20px}
@media(max-width:720px){.custom-selection-summary .custom-summary-price{align-items:flex-start;flex-direction:column;gap:4px}}

/* 0.16.39 - Ordreskjema mirrors the proven storefront data while keeping the simple form flow. */
.order-package-preview{margin-top:12px}.order-package-detail{border:1px solid var(--brand-border);border-radius:16px;background:var(--brand-surface);padding:16px;display:grid;gap:10px}.order-package-detail[hidden]{display:none}.order-package-detail-title{font-size:20px}.order-package-content-lines{display:grid;gap:4px;color:var(--brand-muted)}.order-package-detail p{margin:0;color:var(--brand-muted)}.order-package-detail p strong,.order-package-detail-price{color:var(--brand-text)}
.form-special-needs{display:grid;gap:14px}.form-special-panel{border-top:1px solid var(--brand-border);padding-top:4px}.form-special-panel[hidden]{display:none}.form-special-needs .special-group-row{grid-template-columns:100px minmax(0,1fr) 44px;align-items:start}.form-special-needs .special-restrictions{display:grid;gap:10px}.form-special-needs .special-restriction-choices{display:flex;flex-wrap:wrap;gap:8px 10px}.form-special-needs .special-note-field{max-width:520px}.form-special-actions{display:flex;gap:10px;justify-content:flex-end;padding-top:14px}.form-special-summary{display:grid;gap:8px}.form-special-summary[hidden]{display:none}.form-special-summary-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--brand-border);border-radius:13px;background:var(--brand-surface)}.form-special-summary-actions{display:flex;gap:8px;flex:0 0 auto}.form-special-summary .btn.compact{min-height:36px;padding:7px 10px;font-size:13px}.form-special-summary .danger-text{color:#b42318}
@media(max-width:700px){.form-special-needs .special-group-row{grid-template-columns:1fr 44px}.form-special-needs .small-field,.form-special-needs .special-restrictions{grid-column:1}.form-special-needs .remove-special-group{grid-column:2;grid-row:1}.form-special-summary-line{align-items:flex-start;flex-direction:column}.form-special-actions{justify-content:stretch}.form-special-actions .btn{flex:1}}


/* 0.16.40 - final Ordreskjema polish: totals stay inside cards and saved allergy guests stay compact. */
.shop-wizard .form-choice .qty-reveal{width:calc(100% - 32px);max-width:calc(100% - 32px);box-sizing:border-box}
.shop-wizard .form-choice .quantity-price-row{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px;width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden}
.shop-wizard .form-choice .quantity-price-row .package-line-total{margin-left:0!important;text-align:left!important;max-width:100%;padding-top:2px;overflow-wrap:anywhere}
.form-special-summary-line{border-color:#f97066;background:#fffafa;box-shadow:0 0 0 1px rgba(217,45,32,.04)}
.form-special-panel .special-group-row[hidden]{display:none!important}
@media(max-width:700px){.shop-wizard .form-choice .qty-reveal{width:100%;max-width:100%;margin-left:0}}

.quote-interest-field{border:1px solid transparent;border-radius:18px;padding:14px 16px;margin:0}.quote-interest-field legend{font-weight:800;padding:0 4px}.quote-interest-field .required-star{color:#b42318}.quote-interest-field.field-invalid{border-color:#ef8b82;background:#fff8f7}.quote-interest-field .field-error{display:block;margin-top:9px;color:#b42318;font-weight:700}.quote-interest-field .field-error[hidden]{display:none}

/* 0.16.91 - direct contact form */
.contact-public-shell{max-width:820px}.contact-card{padding:clamp(20px,4vw,38px)}.contact-card textarea{min-height:170px;resize:vertical}.contact-honey{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* Order form: multiple catering selections without turning the form into the storefront. */
.order-multi-package{display:grid;gap:18px}
.order-multi-controls{align-items:end}
.order-multi-qty-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.order-multi-qty-row .qty-stepper{margin:0}
.order-multi-cart{border:1px solid var(--line,#dbe2ea);border-radius:18px;background:#fff;padding:14px 16px;display:grid;gap:10px}
.order-multi-cart-title{font-size:15px}
.order-multi-cart-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line,#e5e7eb)}
.order-multi-cart-row:last-of-type{border-bottom:0}
.order-multi-cart-actions{display:flex;gap:10px;align-items:center;white-space:nowrap}
.order-multi-cart-total{display:flex;justify-content:space-between;gap:12px;padding-top:4px;font-weight:800}
.special-package-field{min-width:210px}
@media(max-width:700px){
  .order-multi-controls{grid-template-columns:1fr!important}
  .order-multi-qty-row{align-items:stretch}
  .order-multi-qty-row .btn{flex:1}
  .order-multi-cart-row{align-items:flex-start;flex-direction:column}
  .order-multi-cart-actions{width:100%;justify-content:space-between}
  .special-package-field{min-width:0}
}

/* Order form: allergy belongs visually to the catering it is attached to. */
.order-multi-cart-row{display:block}
.order-multi-cart-main{display:flex;justify-content:space-between;gap:14px;align-items:center}
.order-package-special-area{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line,#dbe2ea);display:grid;gap:8px}
.order-package-special-add{justify-self:start}
.order-package-special-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid #ff8b82;border-radius:14px;background:#fff8f7}
.order-package-special-summary-actions{display:flex;gap:8px;flex-shrink:0}
.customer-form[data-form-kind="order"] .form-special-needs > .special-needs-head{display:none}
.customer-form[data-form-kind="order"] .form-special-needs{border:0;padding:0;background:transparent}
@media(max-width:700px){
  .order-multi-cart-main,.order-package-special-summary{align-items:flex-start;flex-direction:column}
  .order-package-special-summary-actions{width:100%;justify-content:flex-end}
}

/* Order form allergy editor only exists inside the selected catering card. */
.customer-form[data-form-kind="order"] .form-special-needs{display:none!important}
.customer-form[data-form-kind="order"] .form-special-needs.is-order-inline-editor{display:block!important;border:0!important;padding:10px 0 0!important;margin:0!important;background:transparent!important}
.customer-form[data-form-kind="order"] .form-special-needs.is-order-inline-editor .special-needs-head,
.customer-form[data-form-kind="order"] .form-special-needs.is-order-inline-editor .form-special-summary,
.customer-form[data-form-kind="order"] .form-special-needs.is-order-inline-editor .special-package-field{display:none!important}
.customer-form[data-form-kind="order"] .form-special-needs.is-order-inline-editor .form-special-panel{margin-top:0}
.order-multi-hidden{display:none!important}

/* Theme v2: allergy/dietary choice pills must follow the customer brand theme. */
.customer-theme-scope .allergy-choice span{
  background:var(--brand-surface);
  color:var(--brand-text);
  border-color:var(--brand-border);
  border-width:var(--brand-border-width,1px);
  border-radius:var(--brand-button-radius,999px);
}
.customer-theme-scope .allergy-choice:hover span{
  border-color:var(--brand-primary);
}
.customer-theme-scope .allergy-choice:has(input:checked) span{
  background:var(--brand-button-bg,var(--brand-primary));
  color:var(--brand-button-text);
  border-color:transparent;
  box-shadow:none;
}


/* Theme Contract v2: customer journey must use semantic brand surfaces end-to-end. */
.customer-theme-scope{color:var(--brand-text)}
.customer-theme-scope .card,.customer-theme-scope .review-card,.customer-theme-scope .shop-cart-drawer,.customer-theme-scope .choice-category,.customer-theme-scope .product-card,.customer-theme-scope .order-choice-content{background:var(--brand-surface);color:var(--brand-text);border-color:var(--brand-border)}
.customer-theme-scope .muted,.customer-theme-scope small,.customer-theme-scope .product-description{color:var(--brand-muted)}
.customer-theme-scope .btn.secondary,.customer-theme-scope .icon-btn,.customer-theme-scope .qty-stepper button{background:var(--brand-surface);color:var(--brand-text);border-color:var(--brand-border)}
.customer-theme-scope .field input,.customer-theme-scope .field select,.customer-theme-scope .field textarea{background:var(--brand-surface);color:var(--brand-text);border-color:var(--brand-border)}
.customer-theme-scope .field input::placeholder,.customer-theme-scope .field textarea::placeholder{color:var(--brand-muted)}
.customer-theme-scope .review-line,.customer-theme-scope .review-total{border-color:var(--brand-border);color:var(--brand-text)}
.customer-theme-scope .review-line strong,.customer-theme-scope .review-total strong{color:var(--brand-text)}
.customer-theme-scope .terms-box,.customer-theme-scope .notice{background:color-mix(in srgb,var(--brand-primary) 8%,var(--brand-surface));color:var(--brand-text);border-color:color-mix(in srgb,var(--brand-primary) 35%,var(--brand-border))}
.customer-theme-scope .form-special-summary-line,.customer-theme-scope .order-package-special-summary{background:color-mix(in srgb,#d92d20 5%,var(--brand-surface));color:var(--brand-text);border-color:color-mix(in srgb,#d92d20 55%,var(--brand-border))}
.customer-theme-scope .package-special-summary{display:grid;gap:7px}
.customer-theme-scope .package-special-summary-line{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:start;padding:3px 0;color:var(--brand-text)}
.customer-theme-scope .package-special-summary-line strong{color:var(--brand-primary)}
.customer-theme-scope .date-picker-control{display:grid;grid-template-columns:minmax(0,1fr) 52px;gap:8px;align-items:stretch}
.customer-theme-scope .date-picker-button{border:1px solid var(--brand-border);border-radius:var(--brand-input-radius,13px);background:var(--brand-surface);color:var(--brand-text);font-size:20px;cursor:pointer;min-height:var(--brand-control-height,48px)}
.customer-theme-scope .date-picker-button:hover{border-color:var(--brand-primary)}


/* Platform-wide customer form UI contract: generated themes may choose brand colors,
   but transient/status surfaces always keep a readable paired foreground/background.
   Shared by shop, order and offer forms for all organizations. */
.customer-theme-scope{
  --ui-info-bg:var(--brand-surface,#ffffff);
  --ui-info-text:var(--brand-text,#172033);
  --ui-info-muted:var(--brand-muted,#475467);
  --ui-info-border:var(--brand-border,#d7dee8);
  --ui-error-bg:#fff4f3;
  --ui-error-text:#912018;
  --ui-error-border:#f97066;
}
.customer-theme-scope .delivery-quote,
.customer-theme-scope .order-package-detail,
.customer-theme-scope .order-multi-cart,
.customer-theme-scope .address-suggestions,
.customer-theme-scope .address-suggestion,
.customer-theme-scope .address-suggestion-empty,
.customer-theme-scope .address-suggestion-error{
  background:var(--ui-info-bg)!important;
  color:var(--ui-info-text)!important;
  border-color:var(--ui-info-border)!important;
}
.customer-theme-scope .delivery-quote{
  display:block;
  margin-top:8px;
  padding:10px 12px;
  border:1px solid var(--ui-info-border);
  border-radius:12px;
  font-weight:700;
}
.customer-theme-scope .delivery-quote[hidden]{display:none!important}
.customer-theme-scope .delivery-quote.error,
.customer-theme-scope .error,
.customer-theme-scope [data-wizard-error],
.customer-theme-scope .field-error{
  background:var(--ui-error-bg)!important;
  color:var(--ui-error-text)!important;
  border-color:var(--ui-error-border)!important;
}
.customer-theme-scope .error,
.customer-theme-scope [data-wizard-error]{
  position:static!important;
  width:auto!important;
  max-width:100%!important;
  margin:0 0 14px!important;
  padding:12px 14px!important;
  border:1px solid var(--ui-error-border)!important;
  border-radius:12px!important;
  box-sizing:border-box!important;
  overflow-wrap:anywhere;
}
.customer-theme-scope .quote-interest-field{
  background:transparent!important;
  color:var(--brand-text)!important;
}
.customer-theme-scope .quote-interest-field legend{
  color:var(--brand-text)!important;
}
.customer-theme-scope .quote-interest-field > .muted{
  color:var(--brand-muted)!important;
}
.customer-theme-scope .quote-interest-field.field-invalid{
  padding:14px 16px!important;
  background:transparent!important;
  color:var(--brand-text)!important;
  border-color:var(--ui-error-border)!important;
}
.customer-theme-scope .quote-interest-field .field-error{
  display:block;
  position:static!important;
  width:100%;
  margin-top:10px;
  padding:9px 11px;
  border:1px solid var(--ui-error-border);
  border-radius:10px;
  box-sizing:border-box;
}
.customer-theme-scope .quote-interest-field .field-error[hidden]{display:none!important}
.customer-theme-scope .order-package-detail,
.customer-theme-scope .order-multi-cart{
  color:var(--ui-info-text)!important;
}
.customer-theme-scope .order-package-detail *,
.customer-theme-scope .order-multi-cart *{
  color:inherit;
}
.customer-theme-scope .order-package-detail .muted,
.customer-theme-scope .order-package-detail small,
.customer-theme-scope .order-multi-cart .muted,
.customer-theme-scope .order-multi-cart small{
  color:var(--ui-info-muted)!important;
}

/* One allergy/dietary UX across offer, order and storefront. */
.customer-theme-scope .form-special-needs,
.customer-theme-scope .package-special-needs{
  color:var(--brand-text);
}
.customer-theme-scope .package-special-summary.form-special-summary{
  margin-top:10px;
}
.customer-theme-scope .package-special-panel.form-special-panel{
  margin-top:12px;
}
.customer-theme-scope .form-special-summary-line{
  background:var(--ui-error-bg)!important;
  color:var(--ui-info-text)!important;
  border-color:var(--ui-error-border)!important;
}
.customer-theme-scope .form-special-summary-line > span:first-child{
  color:var(--ui-info-text)!important;
  font-weight:700;
}
.customer-theme-scope .form-special-summary-actions .btn{
  min-height:36px;
}
.customer-theme-scope .special-needs-head,
.customer-theme-scope .special-restrictions-label,
.customer-theme-scope .special-note-field{
  color:var(--brand-text);
}

/* Final quote validation override: quote selector keeps the generated theme surface.
   Only the validation message/outline signals an error. Applies whether or not a
   generated customer-theme wrapper is present. */
.quote-interest-field,
.quote-interest-field.field-invalid{
  background:transparent!important;
  color:inherit!important;
}
.quote-interest-field.field-invalid{
  border-color:#f97066!important;
}
.quote-interest-field legend{
  color:inherit!important;
}
.quote-interest-field > .muted{
  color:var(--brand-muted,inherit)!important;
}
.quote-interest-field .field-error{
  background:transparent!important;
  color:#b42318!important;
  border:0!important;
  padding:0!important;
  border-radius:0!important;
}

/* Allergy summary rows keep the original subtle red tint; never force white. */
.customer-theme-scope .form-special-summary-line,
.customer-theme-scope .order-package-special-summary,
.form-special-summary-line,
.order-package-special-summary{
  background:color-mix(in srgb,#d92d20 5%,var(--brand-surface,#0b0b0b))!important;
  color:var(--brand-text,inherit)!important;
  border-color:color-mix(in srgb,#d92d20 55%,var(--brand-border,#5a2b24))!important;
}

/* Automatic foreground/background contrast contract for every customer theme. */
.form-special-summary-line,
.order-package-special-summary,
.delivery-quote,
.order-multi-cart,
.order-package-detail,
.notice,
.terms-box,
.address-suggestions{
  color:var(--auto-contrast-text,var(--brand-text,inherit))!important;
}
.form-special-summary-line > span:first-child,
.order-package-special-summary > span:first-child,
.order-multi-cart-title,
.order-multi-cart-main,
.order-package-detail-title,
.notice strong,
.terms-box strong{
  color:var(--auto-contrast-text,var(--brand-text,inherit))!important;
}
.delivery-quote.muted,
.order-package-detail .muted,
.order-package-detail small,
.order-multi-cart .muted,
.order-multi-cart small{
  color:var(--auto-contrast-muted,var(--brand-muted,inherit))!important;
}

/* Specificity fix: customer-theme rules must also use computed contrast. */
.customer-theme-scope .form-special-summary-line > span:first-child,
.customer-theme-scope .order-package-special-summary > span:first-child{
  color:var(--auto-contrast-text,var(--brand-text,#ffffff))!important;
}

/* Selected catering/detail cards are normal themed content, not white info alerts. */
.customer-theme-scope .order-package-detail,
.customer-theme-scope .order-multi-cart{
  background:var(--brand-surface)!important;
  color:var(--brand-text)!important;
  border-color:var(--brand-border)!important;
}
.customer-theme-scope .order-package-detail *,
.customer-theme-scope .order-multi-cart *{
  color:inherit;
}
.customer-theme-scope .order-package-detail .muted,
.customer-theme-scope .order-package-detail small,
.customer-theme-scope .order-multi-cart .muted,
.customer-theme-scope .order-multi-cart small{
  color:var(--brand-muted)!important;
}
.contact-back-link{display:inline-flex;align-items:center;gap:8px;width:max-content;color:var(--brand-text);font-weight:800;text-decoration:none}.contact-back-link:hover{text-decoration:underline}

/* WordPress embed: use the full host column width on phones. */
@media(max-width:760px){
  .customer-theme-scope.wordpress-embed-shell{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  .customer-theme-scope.wordpress-embed-shell>.card,
  .customer-theme-scope.wordpress-embed-shell>.public-form-card{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .customer-theme-scope.wordpress-embed-shell>.card{
    padding-left:16px!important;
    padding-right:16px!important;
  }
  .customer-theme-scope.wordpress-embed-shell .public-form-card{
    padding-left:16px!important;
    padding-right:16px!important;
  }
}


/* 0.19.75: same clear cart state on every selectable shop item. */
.shop-wizard .choice-item.is-selected>.product-card,
.shop-wizard .choice-item.is-selected>.order-choice-content{
  border-color:var(--brand-primary)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-primary) 18%,transparent)!important;
  background:color-mix(in srgb,var(--brand-primary) 4%,var(--brand-surface))!important;
}
.shop-wizard .choice-item.is-selected [data-package-pick],
.shop-wizard .choice-item.is-selected [data-custom-add-cart],
.shop-wizard .choice-item.is-selected [data-extra-add]{
  background:var(--brand-primary)!important;
  color:var(--brand-button-text)!important;
  border-color:var(--brand-primary)!important;
}
.shop-wizard [data-extra-add][data-added="true"]{min-width:142px}


/* 0.19.77 collected customer-flow fixes */
.customer-theme-scope .shop-wizard .custom-item-add-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-width:96px;min-height:44px;height:44px;margin:0;padding:8px 14px;font-size:14px;line-height:1.2;white-space:nowrap;box-sizing:border-box}
.shop-wizard [data-choice-route="custom"] .choice-item.is-selected>.product-card{border-color:var(--brand-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-primary) 18%,transparent)!important;background:color-mix(in srgb,var(--brand-primary) 4%,var(--brand-surface))!important}
.shop-wizard [data-custom-item-add][data-added="true"]{min-width:128px}
.shop-wizard .custom-builder-actions{align-items:center;justify-content:space-between;gap:14px;padding-top:16px;border-top:1px solid var(--brand-border)}
.shop-wizard .custom-live-status{font-size:14px;line-height:1.45;color:var(--brand-muted);font-weight:700}
.shop-wizard .allergy-time-note{display:block;margin-top:10px;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--brand-primary) 7%,var(--brand-surface));border:1px solid color-mix(in srgb,var(--brand-primary) 18%,var(--brand-border));font-size:13px;line-height:1.45;font-weight:750;color:var(--brand-text)}
.shop-wizard .allergy-time-note[hidden]{display:none!important}
@media(max-width:760px){.shop-wizard .custom-builder-actions{display:grid;grid-template-columns:1fr}.shop-wizard .custom-builder-actions .btn{width:100%}.customer-theme-scope .shop-wizard .custom-item-add-btn{min-width:0}}


/* 0.19.80 custom catering selections remain interactive after selection */
.customer-theme-scope .shop-wizard [data-custom-item-add]{cursor:pointer;pointer-events:auto}
.customer-theme-scope .shop-wizard [data-custom-item-add][data-added="true"]{cursor:pointer}
.shop-wizard [data-choice-route="custom"] .choice-label,.shop-wizard [data-choice-route="custom"] .qty-stepper button{pointer-events:auto;cursor:pointer}


/* 0.19.81 custom quantity controls show real min/max state */
.shop-wizard [data-choice-route="custom"] .qty-stepper button:disabled{opacity:.32;cursor:not-allowed;background:color-mix(in srgb,var(--brand-surface) 92%,var(--brand-muted) 8%)}


/* 0.19.83 visible quote processing state */
.offer-working-state{display:flex;align-items:center;gap:9px;font-weight:800;letter-spacing:.04em;margin-top:2px}
.form-working-dots{display:inline-flex;align-items:center;gap:4px;height:14px}
.form-working-dots i{display:block;width:6px;height:6px;border-radius:999px;background:currentColor;opacity:.25;animation:form-working-dot 1.2s infinite ease-in-out}
.form-working-dots i:nth-child(2){animation-delay:.18s}.form-working-dots i:nth-child(3){animation-delay:.36s}
@keyframes form-working-dot{0%,70%,100%{opacity:.2;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.form-working-dots i{animation:none;opacity:.65}}

/* 0.20.05: address suggestions in customer order/offer forms stay in document flow.
   Prevents the suggestion box from covering the calculated delivery price. */
.customer-theme-scope .address-autocomplete .address-suggestions{
  position:static!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  margin-top:8px;
  width:100%;
  box-sizing:border-box;
}


/* Shared stable date/time layout: prevent native date controls from overflowing
   the embedded form at desktop, tablet and mobile widths. */
.customer-theme-scope .datetime-choice{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;min-width:0!important}
.customer-theme-scope .datetime-choice>.field{min-width:0!important;width:100%!important}
.customer-theme-scope .datetime-choice .date-picker-control{display:grid!important;grid-template-columns:minmax(0,1fr) 48px!important;gap:8px!important;min-width:0!important;width:100%!important}
.customer-theme-scope .datetime-choice input[type=date],.customer-theme-scope .datetime-choice select{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.customer-theme-scope .datetime-choice .date-picker-button{width:48px!important;min-width:0!important;padding:0!important}
@media(max-width:760px){.customer-theme-scope .datetime-choice{grid-template-columns:minmax(0,1fr)!important}}

/* Deterministic date picker for direct and embedded customer forms. */
.customer-theme-scope .date-picker-control{position:relative;min-width:0}
.customer-theme-scope .threepart-calendar[hidden]{display:none!important}
.customer-theme-scope .threepart-calendar{position:absolute;z-index:1000;top:calc(100% + 6px);left:0;width:min(330px,calc(100vw - 48px));max-width:100%;padding:12px;border:1px solid var(--brand-border,#aaa);border-radius:12px;background:var(--brand-surface,#fff);color:var(--brand-text,#111);box-shadow:0 12px 30px #0004;box-sizing:border-box}
.customer-theme-scope .threepart-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.customer-theme-scope .threepart-calendar-head button{width:40px;height:40px;border:1px solid var(--brand-border,#aaa);border-radius:8px;background:transparent;color:inherit;cursor:pointer;font-size:24px}
.customer-theme-scope .threepart-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.customer-theme-scope .threepart-calendar-grid>span{padding:8px 0;font-size:12px}
.customer-theme-scope .threepart-calendar-grid>button{min-width:0;min-height:38px;padding:4px 0;border:0;border-radius:7px;background:transparent;color:inherit;cursor:pointer;font:inherit}
.customer-theme-scope .threepart-calendar-grid>button:hover:not(:disabled),.customer-theme-scope .threepart-calendar-grid>button[aria-current=date]{background:var(--brand-primary,#caa74a);color:#111}
.customer-theme-scope .threepart-calendar-grid>button:disabled{opacity:.25;cursor:not-allowed}
.customer-theme-scope .date-picker-control input[data-event-date]{cursor:pointer}

/* Website Builder: keep booking and quote wizard panels within the host website palette.
   Only signed website context activates this; ordinary standalone forms stay unchanged. */
body.website-chrome-active .customer-theme-scope > .public-form-card,
body.website-chrome-active .customer-theme-scope > .card,
body.website-chrome-active .customer-theme-scope .shop-wizard > .card,
body.website-chrome-active .customer-theme-scope .shop-wizard .step-panel {
  background:color-mix(in srgb,var(--brand-bg) 72%,var(--brand-surface) 28%)!important;
  color:var(--brand-text)!important;
  border-color:var(--brand-border)!important;
}
body.website-chrome-active .customer-theme-scope .shop-wizard .field input,
body.website-chrome-active .customer-theme-scope .shop-wizard .field select,
body.website-chrome-active .customer-theme-scope .shop-wizard .field textarea {
  background:var(--brand-surface);
  color:var(--brand-text);
  border-color:var(--brand-border);
}
