/* Shared behavior and the on-demand order form. Device layouts follow this file. */
html { scroll-padding-top: 5rem; }
html:has(dialog[open]) { overflow: hidden; }
html[data-design="workbench"] #top > :is(#catalog, #pickup) { scroll-margin-top: 0; }
.hero .task-arrow { display: none; }
:is(input, select, textarea) { max-width: 100%; }
dialog { overscroll-behavior: contain; }
.quick-order-dialog {
  position: fixed;
  inset: 0;
  width: min(58rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid #bdc0b5;
  border-radius: 12px;
  background: #f6f5ef;
  color: #202521;
  box-shadow: 0 24px 80px #111a1660;
  overflow: auto;
}
.quick-order-dialog::backdrop { background: #111a16b8; }
.quick-order-dialog #schedule {
  width: 100%;
  padding: clamp(16px, 3vw, 28px);
  margin: 0;
  border: 0;
  overflow: visible;
}
.quick-order-dialog #schedule .order-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.quick-order-dialog #schedule .order-dialog-header h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; }
.quick-order-dialog .order-dialog-close {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bdc0b5;
  border-radius: 6px;
  color: #202521;
  background: #fff;
  font: 400 1rem/1.3 Arial, sans-serif;
}
.quick-order-dialog .order-dialog-close:hover { background: #e9ece4; }
.quick-order-dialog .tool-options {
  width: 100%;
  max-width: 100%;
  max-height: min(16rem, 36dvh);
  overflow-wrap: anywhere;
}
.quick-order-dialog .tool-options [role="option"] { min-height: 44px; }
.quick-order-dialog #quick-result { margin-block: 16px; }
.quick-order-dialog #quick-again { min-height: 44px; }
.quick-order-dialog :focus-visible { outline: 3px solid #2770b2; outline-offset: 3px; }
.quick-order-dialog #receipt-title:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
