/* Shared identity stays authoritative; customer flow uses its accent and surfaces. */
.order-page { --flow-border: #dce3e8; --flow-muted: #596b78; }
.order-page input, .order-page select, .order-page button { font: inherit; }
.order-page .access-shell { width: min(100% - 32px, 700px); margin: 32px auto 56px; }
.order-page .auth-card { border-radius: 24px; overflow: hidden; box-shadow: 0 16px 50px #182b3912; }
.order-page .auth-card h2, .order-page #panelCadastro h2 { font-size: clamp(23px, 3vw, 30px); text-transform: none; letter-spacing: -.025em; padding: 24px 28px 16px; line-height: 1.25; }
.step-eyebrow { display: block; font-size: 11px; letter-spacing: .12em; color: var(--tenant-accent-strong); margin-bottom: 10px; font-weight: 800; }
.order-page .auth-card .panel-body, .order-page #panelCadastro .panel-body { padding: 24px 28px 28px; }
.order-page .auth-intro { font-size: 15px; line-height: 1.6; margin: 16px 0 24px; color: var(--flow-muted); }
.order-page .field { margin-bottom: 18px; min-width: 0; }
.order-page .field label { font-size: 14px; margin-bottom: 7px; display: block; }
.order-page .field input, .order-page .field select { min-height: 49px; border: 1px solid var(--flow-border); border-radius: 12px; width: 100%; box-sizing: border-box; padding: 12px 14px; }
.order-page .field input:focus, .order-page .field select:focus { outline: 3px solid color-mix(in srgb, var(--tenant-accent) 18%, transparent); border-color: var(--tenant-accent); }
.order-page .field input[aria-invalid=true] { border-color: #c12b36; }
.field-error { display: block; font-size: 13px; color: #a11e2d; margin-top: 6px; line-height: 1.4; }
.phone-fields { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 12px; }
.order-page .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; gap: 5px; border: 1px solid var(--flow-border); border-radius: 14px; margin-bottom: 24px; }
.order-page .auth-tabs .cat-btn { border-radius: 10px; padding: 13px 10px; }
.order-page .auth-tabs .active { background: var(--tenant-accent-strong); color: white; }
.order-page .btn { border-radius: 12px; min-height: 46px; padding: 12px 18px; }
.order-page .btn-accent { background: var(--tenant-accent-strong); color: white; box-shadow: none; }
.order-page .mobile-nav { position: static; width: min(100% - 32px, 1120px); margin: 24px auto 16px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 1px solid var(--flow-border); border-radius: 16px; background: white; box-sizing: border-box; }
.order-page .mobile-nav .cat-btn { font-size: 14px; padding: 12px 14px; flex: 1; white-space: normal; }
.flow-complete { color: #33745b; padding: 0 14px; font-size: 14px; }
.order-page .account-bar { width: min(100% - 32px, 1120px); margin: 16px auto; border-radius: 16px; }
.order-page #appArea { display: block; width: min(100% - 32px, 1120px); margin: 0 auto; }
.order-page #appArea > .mobile-pane:not(.show) { display: none; }
.order-page #appArea > .mobile-pane.show { display: block; }
.order-page #panelCadastro { max-width: 760px; margin: 0 auto; border-radius: 20px; }
.order-page .catalog-category-picker { display: none; }
.order-page .catalog-category-label { margin: 0 0 10px; color: var(--flow-muted); font-size: 14px; font-weight: 700; }
.order-page #catalogCategories { margin-top: 0; }
.order-page #catalogCategories .cat-btn { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: normal; line-height: 1.3; }
.order-page #catalogCategories .cat-btn span { min-width: 0; overflow-wrap: anywhere; }
.order-page #catalogCategories .cat-btn.active { border-color: var(--tenant-accent-strong); box-shadow: inset 0 0 0 1px var(--tenant-accent-strong); font-weight: 800; }
.order-page #panelPedido .toolbar { grid-template-columns: minmax(0, 1fr) auto; }
.order-page #panelPedido .toolbar input { grid-column: auto; }
/* Non-pizza descriptions stay readable before the purchase action. */
.order-page .extra-product-card .extra-product-code { margin-top: 8px; color: var(--flow-muted); font-size: 12px; }
.order-page .extra-product-description { margin: 14px 0 0; color: #172e3c; font-size: 16px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.order-page .extra-product-options { grid-template-columns: minmax(0,1fr) auto 82px; }
.order-page .extra-product-options > strong { color: #172e3c; font-size: 17px; white-space: nowrap; }
.order-page .extra-product-options input[type=number] { text-align: center; }
.order-page .extra-variant-description { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--flow-border); border-left: 4px solid var(--tenant-accent-strong); border-radius: 12px; background: #f4f7f9; color: #172e3c; }
.order-page .extra-variant-description[hidden] { display: none; }
.order-page .extra-description-label { display: block; margin-bottom: 5px; color: #405461; font-size: 12px; font-weight: 750; }
.order-page .extra-variant-description p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.order-page .extra-product-card .extra-product-add { width: 100%; margin-top: 14px; }
@media(max-width:600px) {
  .order-page .extra-product-options { grid-template-columns: minmax(0,1fr) 72px; }
  .order-page .extra-product-options select { grid-column: 1 / -1; }
  .order-page .extra-variant-description { padding: 12px; }
}
.order-page .extra-product-options.extra-simple-options { grid-template-columns: minmax(0,1fr) 82px; }
.fulfillment-choices { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.fulfillment-choices legend { font-weight: 750; font-size: 17px; margin-bottom: 12px; padding: 0; }
.fulfillment-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.fulfillment-options label { display: flex; align-items: flex-start; gap: 8px; border: 2px solid var(--flow-border); border-radius: 14px; padding: 14px 10px; cursor: pointer; background: #fff; min-width: 0; }
.fulfillment-options label:has(input:checked) { border-color: var(--tenant-accent-strong); background: color-mix(in srgb,var(--tenant-accent) 6%,white); }
.fulfillment-options label:has(input:focus-visible) { outline: 3px solid var(--tenant-accent); outline-offset: 3px; }
.fulfillment-options label:has(input:disabled) { cursor: not-allowed; opacity: .65; }
.order-page .fulfillment-options input[type=radio] { width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--tenant-accent-strong); }
.fulfillment-options strong { display: block; font-size: 14px; line-height: 1.35; }
.fulfillment-options small { display: block; font-size: 12px; color: var(--flow-muted); line-height: 1.4; margin-top: 4px; }
.fulfillment-choices p { font-size: 13px; line-height: 1.5; color: var(--flow-muted); margin: 10px 0; overflow-wrap: anywhere; }
.order-page #boxEntrega { border-top: 1px solid var(--flow-border); padding-top: 16px; margin-bottom: 24px; }
.order-page #panelCarrinho .grid-address-top { grid-template-columns: 1fr; }
/* One pizza builder across categories. No nested scrolling or hidden flavors. */
.order-page #panelPedido { overflow: clip; }
.order-page #menuList { max-height: none; height: auto; overflow: visible; gap: 0; }
.pizza-builder-heading { margin: 22px 0 20px; }
.pizza-builder-heading .step-eyebrow { margin-bottom: 6px; }
.pizza-builder-heading h3 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; }
.pizza-builder-heading p, .pizza-builder-help, .pizza-builder-rule { color: var(--flow-muted); line-height: 1.5; font-size: 14px; margin: 6px 0; }
.pizza-builder-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 24px; }
.pizza-builder-controls label { font-weight: 750; font-size: 14px; }
.pizza-builder-controls select { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; padding: 12px; min-height: 48px; border: 1px solid var(--flow-border); border-radius: 12px; background: #fff; color: #172e3c; }
.pizza-step { display: inline-grid; place-items: center; border-radius: 50%; background: var(--tenant-accent-strong); color: #fff; width: 24px; height: 24px; margin-right: 6px; font-size: 12px; }
.pizza-flavors-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pizza-flavors-heading h3 { margin: 0; font-size: 17px; }
#pizzaPartsCount { flex-shrink: 0; font-size: 12px; padding: 6px 10px; border-radius: 20px; background: #edf0f2; font-weight: 750; }
#pizzaPartsCount.complete { background: #e4f5ea; color: #22663b; }
#pizzaBuilderNotice { color: var(--tenant-accent-strong); font-size: 13px; line-height: 1.4; margin: 10px 0; }
#pizzaBuilderNotice:empty { display: none; }
.pizza-flavor-group { margin: 6px 0 10px; }
.pizza-flavor-group h4 { font-size: 18px; margin: 18px 0 12px; }
.pizza-flavor-group h4 > span { font-weight: 400; font-size: 12px; color: var(--flow-muted); margin-left: 8px; }
.pizza-flavor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pizza-flavor-card { border: 2px solid var(--flow-border); border-radius: 16px; background: #fff; overflow: hidden; min-width: 0; }
.pizza-flavor-card.selected { border-color: var(--tenant-accent-strong); background: color-mix(in srgb,var(--tenant-accent) 5%,white); }
.order-page .pizza-flavor-select { position: relative; width: 100%; display: flex; text-align: left; gap: 14px; padding: 18px; border: 0; color: #172e3c; background: transparent; cursor: pointer; align-items: flex-start; }
.pizza-flavor-select:focus-visible, .pizza-flavor-selection button:focus-visible { outline: 3px solid var(--tenant-accent-strong); outline-offset: -4px; }
.pizza-flavor-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 8px; overflow-wrap: anywhere; }
.pizza-flavor-copy > strong { font-size: 17px; line-height: 1.25; }
.pizza-flavor-ingredients { font-size: 13px; line-height: 1.5; color: var(--flow-muted); }
.pizza-flavor-price { font-weight: 800; font-size: 15px; }
.pizza-flavor-price small { font-weight: 400; color: var(--flow-muted); font-size: 11px; display: block; margin-top: 4px; }
.pizza-flavor-select img { width: 80px; height: 80px; object-fit: cover; flex-shrink: 0; border-radius: 12px; }
.pizza-flavor-plus { position: absolute; right: 12px; top: 78px; display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 4px; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--tenant-accent-strong); font-size: 20px; font-weight: 800; }
.pizza-flavor-selection { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 10px; gap: 10px; color: var(--tenant-accent-strong); font-size: 13px; font-weight: 750; }
.pizza-flavor-selection button { width: 44px; min-height: 44px; font-size: 24px; background: #fff; border: 1px solid var(--flow-border); border-radius: 12px; color: var(--tenant-accent-strong); cursor: pointer; }
#pizzaBuilderDock { position: sticky; bottom: 12px; z-index: 15; background: #fff; padding: 16px; border: 1px solid var(--flow-border); border-radius: 18px; box-shadow: 0 -4px 30px #182b3915; margin: 16px 0 0; }
.pizza-selection-summary { display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 13px; line-height: 1.4; margin-bottom: 10px; }
.pizza-selection-summary > span { min-width: 0; overflow-wrap: anywhere; }
.order-page #pizzaViewCart { background: none; border: 0; color: var(--tenant-accent-strong); white-space: nowrap; font-size: 13px; font-weight: 750; min-height: 44px; cursor: pointer; }
.pizza-note-label { font-size: 12px; color: var(--flow-muted); }
#pizzaBuilderNotes { margin: 20px 0 0; }
.pizza-note-label small { margin-left: 4px; }
.order-page #pizzaBuilderObs { display: block; width: 100%; box-sizing: border-box; border: 1px solid var(--flow-border); border-radius: 8px; margin: 4px 0 12px; padding: 10px; font-size: 16px; }
.pizza-builder-checkout { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: end; }
.pizza-builder-checkout label { font-size: 11px; color: var(--flow-muted); }
.order-page #pizzaBuilderQty { width: 100%; box-sizing: border-box; min-height: 48px; text-align: center; border: 1px solid var(--flow-border); border-radius: 10px; margin-top: 4px; }
.order-page #pizzaBuilderAdd { display: flex; gap: 8px; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 750; }
.order-page #pizzaBuilderAdd:disabled { background: #e5e9ec; color: #536773; cursor: not-allowed; opacity: 1; }
.order-page.pizza-building:has(#panelPedido.show) #cartFab { display: none; }
@media(max-width:700px) {
  .pizza-flavor-grid { grid-template-columns: 1fr; }
  .pizza-builder-heading h3 { font-size: 24px; }
  .pizza-builder-controls { gap: 10px; margin: 16px 0 20px; }
  .pizza-flavor-select img { width: 72px; height: 72px; }
  .order-page .pizza-flavor-select { padding: 14px; gap: 12px; }
  .pizza-flavor-plus { top: 66px; right: 10px; }
  #pizzaBuilderDock { bottom: 6px; padding: 12px; }
  .pizza-builder-checkout { grid-template-columns: 62px 1fr; gap: 8px; }
  .order-page #pizzaBuilderAdd { padding: 12px; font-size: 13px; }
  .pizza-flavors-heading h3 { font-size: 15px; }
  .pizza-builder-controls select { font-size: 16px; padding: 10px 6px; }
}
.order-page .grid-2 { gap: 16px; }
.order-page .address-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 24px; }
.order-page #btnNovoEndereco { background: transparent; color: var(--tenant-accent-strong); border: 1px dashed var(--flow-border); box-shadow: none; }
.order-page .cadastro-actions { border-top: 1px solid var(--flow-border); padding-top: 22px; margin-top: 24px; }
.order-page #btnSalvarCadastro { width: 100%; font-weight: 700; }
.order-page .document-field { border-top: 1px solid var(--flow-border); padding-top: 18px; margin-top: 18px; }
.document-field small, .field-optional { color: var(--flow-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.order-page .cart-panel { max-width: min(540px, 100vw); }
.order-page #btnEnviar { width: 100%; min-height: 54px; }
.order-page .hidden { display: none !important; }
.order-page.customer-active .hero-banner { display: none; }
.order-page.customer-active .access-shell { margin: 0 auto; padding: 0; }
.order-page.customer-active .top { position: static; }
.order-page .order-confirmation {
  box-sizing: border-box; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 32px 26px; border: 1px solid var(--flow-border); border-radius: 24px;
  background: #fff; color: #172e3c; text-align: center; box-shadow: 0 24px 80px #102d4340;
}
.order-page .order-confirmation::backdrop { background: #132a3e99; }
.order-confirmation-icon { width: 60px; height: 60px; margin: 0 auto 20px; }
.order-confirmation-icon svg { display: block; width: 100%; height: 100%; }
.order-confirmation-spinner {
  display: block; box-sizing: border-box; width: 52px; height: 52px; margin: 4px;
  border: 4px solid #e0e9ed; border-top-color: var(--tenant-accent-strong, #087e95);
  border-radius: 50%; animation: order-confirmation-spin 1s linear infinite;
}
.order-page .order-confirmation h2 { margin: 0 0 12px; padding: 0; font-size: 24px; line-height: 1.25; letter-spacing: -.02em; text-transform: none; }
.order-page .order-confirmation h2:focus { outline: none; }
.order-confirmation p { margin: 0; color: var(--flow-muted); font-size: 16px; line-height: 1.6; }
.order-confirmation-actions { display: grid; gap: 10px; margin-top: 24px; }
@keyframes order-confirmation-spin { to { transform: rotate(360deg); } }
@media(prefers-reduced-motion: reduce) { .order-confirmation-spinner { animation: none; } }
@media(max-width:860px) {
  /* One native picker keeps every category reachable without filling the screen. */
  .order-page #catalogCategories, .order-page #catalogCategoryLabel { display: none; }
  .order-page .catalog-category-picker { display: block; margin-bottom: 16px; }
}
@media(max-width:600px) {
  .order-page .auth-card .panel-body, .order-page #panelCadastro .panel-body { padding: 20px; }
  .order-page .auth-card h2, .order-page #panelCadastro h2 { padding: 22px 20px 12px; }
  .order-page .mobile-nav { gap: 4px; padding: 6px; }
  .order-page .mobile-nav .cat-btn { font-size: 12px; padding: 10px 5px; }
  .flow-complete { display: none; }
  .order-page .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .order-page .grid-2 > button + button { margin-top: 12px; }
  .order-page .account-bar__inner { flex-wrap: wrap; }
}
