:root {
  --ink: #24140d;
  --brown: #3a1c10;
  --orange: #f17418;
  --cream: #fff9ef;
  --line: #eadfce;
  --muted: #79675a;
  --success: #1f8f4d;
  --danger: #b3432e;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

body.admin-page {
  min-height: 100dvh;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  gap: 14px;
}

.nav-actions a,
.quiet-link {
  color: inherit;
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 24px 20px 48px;
}

.admin-page main {
  max-width: none;
  min-height: 100dvh;
  padding: 0;
}

.order-shell {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.hero-band,
.panel-section,
.checkout-panel,
.auth-card,
.result-page > div,
.metric-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-band {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 24px;
}

.hero-band h1,
.auth-card h1,
.admin-header h1,
.result-page h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 8px;
}

.hero-band p,
.product-card p,
.muted,
.secure-note {
  color: var(--muted);
}

.eyebrow {
  color: var(--orange);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.category-tabs a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  flex: 0 0 auto;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
}

.menu-section {
  margin-bottom: 30px;
}

.menu-section h2,
.panel-section h2,
.checkout-panel h2 {
  font-size: 1.2rem;
  margin: 0 0 14px;
}

.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 4 / 3;
  background: #f8eddd;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-card-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.product-card h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.product-card p {
  font-size: .9rem;
  margin: 0;
}

.option-group {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.option-group legend {
  color: var(--muted);
  float: none;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 2px;
  width: 100%;
}

.option-group label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
}

.button,
.button-small,
.table-action {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 12px 16px;
  text-decoration: none;
}

.button.is-loading,
.button-small.is-loading,
.table-action.is-loading {
  cursor: wait;
  gap: 8px;
  opacity: .86;
}

.button.is-loading::after,
.button-small.is-loading::after,
.table-action.is-loading::after {
  animation: spin 700ms linear infinite;
  border: 2px solid currentcolor;
  border-right-color: transparent;
  border-radius: 999px;
  content: "";
  height: 14px;
  width: 14px;
}

button:disabled {
  cursor: not-allowed;
}

.button-small {
  padding: 9px 12px;
}

.checkout-panel {
  padding: 18px;
  position: sticky;
  top: 76px;
}

.cart-lines {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.cart-line {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.cart-line div {
  display: grid;
}

.cart-line span,
.cart-line small {
  color: var(--muted);
  font-size: .84rem;
}

.cart-line button,
.link-button {
  background: transparent;
  border: 0;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
}

.totals {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.total-row {
  color: var(--orange);
  font-size: 1.15rem;
  font-weight: 800;
}

.checkout-form,
.auth-card,
.admin-form {
  display: grid;
  gap: 9px;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  width: 100%;
}

span.field-validation-error,
.validation-summary-errors,
.alert-panel {
  color: var(--danger);
}

.auth-page,
.result-page {
  display: grid;
  min-height: 68vh;
  place-items: center;
}

.auth-card,
.result-page > div {
  max-width: 440px;
  padding: 26px;
  width: 100%;
}

.public-order-page {
  background: #f8f0e1;
  overflow: hidden;
}

.public-order-page.has-order-modal {
  overflow: hidden;
}

.public-order-page main {
  height: 100dvh;
  max-width: none;
  padding: 0;
  width: 100%;
}

.order-shell {
  align-items: stretch;
  background: #fffaf0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
  width: 100%;
}

.order-fixed-header {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.order-brand-bar {
  align-items: center;
  background: #281405;
  display: flex;
  justify-content: space-between;
  min-height: 94px;
  padding: 18px 34px;
  width: 100%;
}

.order-brand-bar img {
  display: block;
  height: auto;
  max-width: 138px;
  width: 36%;
}

.order-logo-link {
  display: block;
  max-width: 97px;
  width: 25%;
}

.order-logo-link img {
  max-width: none;
  width: 100%;
}

.order-header-cart {
  align-items: center;
  background: #fff7ec;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 999px;
  color: var(--brown);
  cursor: pointer;
  display: inline-flex;
  font-size: .84rem;
  gap: 6px;
  font-weight: 800;
  min-height: 34px;
  padding: 6px 10px;
}

.order-header-cart img {
  filter: brightness(0) saturate(100%) invert(16%) sepia(21%) saturate(1701%) hue-rotate(341deg) brightness(91%) contrast(91%);
  height: 18px;
  max-width: none;
  object-fit: contain;
  width: 18px;
}

.order-header-cart:disabled {
  cursor: default;
}

.order-header-cart.has-items {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.order-header-cart.has-items img {
  filter: brightness(0) invert(1);
}

.empty-menu-panel {
  background: #fff;
  padding: 30px;
}

.empty-menu-panel h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.empty-menu-panel p {
  color: var(--muted);
  margin: 0;
}

.category-tabs {
  background: #fffaf0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 22px;
  margin: 0;
  overflow-x: auto;
  padding: 16px 28px 0;
  scrollbar-width: thin;
  white-space: nowrap;
  width: 100%;
}

.category-tabs a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--brown);
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  font-weight: 800;
  padding: 0 0 14px;
  position: relative;
  text-decoration: none;
}

.category-tabs a.is-active::after,
.category-tabs a:hover::after,
.category-tabs a:focus-visible::after {
  background: var(--orange);
  bottom: -1px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.category-tabs a.is-active {
  color: var(--orange);
}

.category-tabs a span {
  border: 1px solid currentcolor;
  border-radius: 999px;
  height: 18px;
  position: relative;
  width: 18px;
}

.category-tabs a span::after {
  background: currentcolor;
  border-radius: 999px;
  content: "";
  height: 6px;
  left: 5px;
  position: absolute;
  top: 5px;
  width: 6px;
}

.order-workspace {
  display: block;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px 30px;
  -webkit-overflow-scrolling: touch;
}

.order-menu-column {
  margin: 0 auto;
  max-width: 1120px;
  min-width: 0;
  width: 100%;
}

.menu-section {
  margin-bottom: 28px;
}

.menu-section h1 {
  font-size: 1.18rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.product-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgb(36 20 13 / 7%);
  display: grid;
  min-width: 0;
  overflow: hidden;
}

.product-card.is-selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgb(241 116 24 / 18%), 0 12px 22px rgb(36 20 13 / 12%);
}

.product-card-select {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  padding: 0;
  position: relative;
  text-align: left;
  width: 100%;
}

.product-card-select img {
  aspect-ratio: 4 / 3;
  background: #f8eddd;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-card-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.product-card h2 {
  font-size: .92rem;
  line-height: 1.2;
  margin: 0 0 5px;
}

.product-card p {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  margin: 0;
}

.product-preparation-time {
  align-items: center;
  display: flex;
  gap: 5px;
}

.preparation-clock {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 12px;
  position: relative;
  width: 12px;
}

.preparation-clock::before {
  background: currentColor;
  content: "";
  height: 4px;
  left: 5px;
  position: absolute;
  top: 2px;
  width: 1.5px;
}

.preparation-clock::after {
  background: currentColor;
  content: "";
  height: 1.5px;
  left: 5px;
  position: absolute;
  top: 5px;
  width: 3px;
}

.product-card-body strong {
  font-size: .96rem;
}

.order-side-column {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.order-modal-backdrop {
  background: rgb(36 20 13 / 54%);
  display: grid;
  inset: 0;
  padding: 18px;
  place-items: center;
  position: fixed;
  z-index: 70;
}

.order-modal-backdrop[hidden] {
  display: none;
}

.order-modal-backdrop-top {
  z-index: 80;
}

.order-modal-backdrop-over {
  z-index: 90;
}

.order-modal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 56px rgb(36 20 13 / 26%);
  display: grid;
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  width: min(440px, 100%);
}

.order-modal-body {
  min-height: 0;
  overflow-y: auto;
}

.selected-product-panel,
.checkout-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgb(36 20 13 / 8%);
}

.selected-product-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  position: relative;
}

.selected-modal-close {
  align-items: center;
  background: #fff7ef;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  z-index: 2;
}

.close-fill-icon {
  background: var(--orange);
  display: block;
  height: 20px;
  mask: url("/images/icons/close.fill.png") center / contain no-repeat;
  width: 20px;
  -webkit-mask: url("/images/icons/close.fill.png") center / contain no-repeat;
}

.selected-product-panel .order-modal-body > img {
  aspect-ratio: 4 / 3;
  background: #f8eddd;
  display: block;
  object-fit: cover;
  width: 100%;
}

.selected-product-copy {
  display: grid;
  gap: 6px;
  padding: 16px 16px 0;
}

.selected-product-copy h2 {
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 0;
}

.selected-product-copy p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
  margin: 0;
}

.selected-product-copy strong {
  color: var(--orange);
  font-size: 1.15rem;
}

.selected-options {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.selected-observation-field {
  display: grid;
  gap: 6px;
  padding: 0 16px 16px;
}

.selected-observation-field label {
  font-size: .84rem;
}

.selected-observation-field textarea {
  min-height: 72px;
  resize: vertical;
}

.order-option-group {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.order-option-group legend {
  color: var(--ink);
  float: none;
  font-size: .84rem;
  font-weight: 800;
  margin: 0;
  padding: 0;
}

.choice-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-pill {
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 6px;
  position: relative;
  text-align: center;
}

.choice-pill input {
  opacity: 0;
  position: absolute;
}

.choice-pill span {
  font-size: .78rem;
  font-weight: 800;
}

.choice-pill small {
  color: var(--muted);
  font-size: .68rem;
}

.choice-pill:has(input:checked) {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.choice-list {
  display: grid;
  gap: 8px;
}

.choice-list .addon-name {
  font-size: .9rem;
  font-weight: 400;
}

.choice-list .addon-name strong {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.choice-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.choice-row span {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.choice-row input {
  accent-color: var(--orange);
  width: auto;
}

.addon-quantity-row {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.addon-stepper {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
}

.addon-stepper button {
  align-items: center;
  background: #fff7ec;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.addon-stepper input {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  border-right: 1px solid var(--line);
  height: 30px;
  padding: 0;
  text-align: center;
  width: 38px;
}

.minus-icon {
  background: var(--orange);
  display: block;
  height: 16px;
  mask: url("/images/icons/minus.png") center / contain no-repeat;
  width: 16px;
  -webkit-mask: url("/images/icons/minus.png") center / contain no-repeat;
}

.choice-row strong {
  flex: 0 0 auto;
  font-size: .82rem;
}

.order-option-empty {
  font-size: .9rem;
  margin: 0;
}

.selected-product-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0 16px 16px;
}

.quantity-stepper {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  overflow: hidden;
}

.quantity-stepper button {
  background: #fff7ec;
  border: 0;
  color: var(--orange);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 800;
  height: 44px;
  width: 38px;
}

.quantity-stepper output {
  align-items: center;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-width: 34px;
}

.selected-product-actions .button {
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.order-modal-footer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.button-secondary {
  align-items: center;
  background: #fff7ec;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brown);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.button-danger {
  align-items: center;
  background: var(--danger);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
}

.order-checkout-shortcut {
  gap: 10px;
  justify-content: space-between;
  width: 100%;
}

.order-checkout-shortcut img {
  filter: brightness(0) invert(1);
  height: 20px;
  object-fit: contain;
  width: 20px;
}

.order-checkout-shortcut strong {
  flex: 0 0 auto;
}

.checkout-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0;
  position: static;
  top: auto;
  width: min(520px, 100%);
}

.checkout-panel .checkout-form {
  display: contents;
}

.checkout-panel-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0;
  padding: 16px;
}

.checkout-panel-header h2 {
  font-size: 1rem;
  margin: 0 0 2px;
}

.checkout-panel-header span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.checkout-panel-header .checkout-preparation-note {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 4px 0 0;
  max-width: 340px;
}

.checkout-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.cart-lines {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.cart-line {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
}

.cart-line div:first-child {
  display: grid;
  min-width: 0;
}

.cart-line span,
.cart-line small {
  color: var(--muted);
  font-size: .8rem;
}

.cart-line-observation {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.cart-line-side {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  justify-items: end;
}

.cart-line-side strong {
  font-size: .86rem;
}

.cart-line button,
.link-button {
  background: transparent;
  border: 0;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
}

.cart-line-actions {
  display: inline-flex;
  gap: 6px;
}

.cart-icon-button {
  align-items: center;
  background: var(--orange) !important;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0 !important;
  width: 32px;
}

.cart-icon-button.is-danger {
  background: var(--danger) !important;
}

.cart-icon-button img {
  filter: brightness(0) invert(1);
  height: 17px;
  object-fit: contain;
  width: 17px;
}

.totals {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.total-row {
  color: var(--orange);
  font-size: 1.08rem;
  font-weight: 800;
}

.checkout-fields {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  margin-top: 4px;
  padding-top: 14px;
}

.checkout-step {
  border-bottom: 1px solid var(--line);
  display: grid;
  padding: 10px 0;
}

.checkout-step-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font-weight: 800;
  gap: 8px;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  padding: 0;
  text-align: left;
  width: 100%;
}

.checkout-step-toggle small {
  color: var(--orange);
  font-size: .76rem;
  font-weight: 700;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-step-toggle[aria-expanded="true"] .chevron-icon {
  transform: rotate(0);
}

.checkout-step-content {
  display: grid;
  gap: 8px;
  max-height: 700px;
  opacity: 1;
  overflow: hidden;
  padding-top: 10px;
  transition: max-height 240ms ease, opacity 180ms ease, padding-top 240ms ease;
}

.checkout-step.is-collapsed .checkout-step-content {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  pointer-events: none;
}

.checkout-step-legend {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.checkout-customer-fields {
  display: grid;
  gap: 8px;
}

.fulfillment-options {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0;
}

.fulfillment-options legend {
  float: none;
  font-size: .86rem;
  font-weight: 800;
  margin: 0 0 2px;
  padding: 0;
}

.fulfillment-options p {
  color: var(--muted);
  font-size: .78rem;
  margin: -2px 0 2px;
}

.fulfillment-options > div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fulfillment-options label {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 6px;
  justify-content: center;
  min-height: 38px;
  padding: 7px;
  text-align: center;
}

.fulfillment-options input {
  accent-color: var(--orange);
  flex: 0 0 auto;
  width: auto;
}

.fulfillment-options span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fulfillment-options label:has(input:checked) {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
  color: var(--orange);
}

.delivery-address-field,
.table-number-field {
  display: grid;
  gap: 8px;
}

.delivery-address-field[hidden],
.table-number-field[hidden] {
  display: none;
}

.checkout-fields label {
  font-size: .86rem;
}

.checkout-form .button {
  gap: 10px;
  justify-content: space-between;
  margin-top: 4px;
  width: 100%;
}

.checkout-form .button-secondary {
  width: 100%;
}

.checkout-modal-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 12px 16px 14px;
  position: relative;
  z-index: 2;
}

.checkout-modal-footer .secure-note {
  font-size: .78rem;
  margin: 0;
  text-align: center;
}

.secure-note button {
  background: transparent;
  border: 0;
  color: var(--orange);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-panel {
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(520px, 100%);
}

.privacy-modal-body {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.privacy-modal-body h2,
.privacy-modal-body h3,
.privacy-modal-body p {
  margin: 0;
}

.privacy-modal-body h2 {
  font-size: 1.2rem;
}

.privacy-modal-body h3 {
  font-size: .9rem;
  margin-top: 6px;
}

.privacy-modal-body p {
  color: var(--muted);
  line-height: 1.5;
}

.privacy-panel .order-modal-footer .button {
  width: 100%;
}

.order-success-panel {
  width: min(420px, 100%);
}

.confirm-panel {
  width: min(380px, 100%);
}

.confirm-panel-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.confirm-panel-body h2 {
  font-size: 1.15rem;
  margin: 0;
}

.confirm-panel-body p {
  color: var(--muted);
  margin: 0;
}

.confirm-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.confirm-actions .button-secondary,
.confirm-actions .button-danger {
  width: 100%;
}

.order-success-body {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 28px 22px;
  text-align: center;
}

.order-success-icon {
  align-items: center;
  background: var(--success);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 1.7rem;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.order-success-body h2 {
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0;
}

.order-success-body p {
  color: var(--muted);
  margin: 0;
}

.order-success-body strong {
  color: var(--orange);
  font-size: 1.1rem;
}

.order-success-code-row {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

.order-success-code-row[hidden] {
  display: none;
}

.copy-order-code-button {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.copy-order-code-button img {
  filter: brightness(0) invert(1);
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.order-success-body .button {
  width: 100%;
}

.selected-product-actions .button:disabled,
.checkout-form .button:disabled,
.order-checkout-shortcut:disabled {
  opacity: .58;
}

.admin-layout {
  display: grid;
  gap: 0;
  grid-template-columns: var(--admin-sidebar-width, 220px) minmax(0, 1fr);
  min-height: 100dvh;
}

.admin-sidebar {
  background: var(--brown);
  border-radius: 0;
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-areas:
    "logo"
    "nav"
    "logout";
  grid-template-rows: auto 1fr auto;
  height: 100dvh;
  min-height: 100dvh;
  padding: 20px;
  position: sticky;
  top: 0;
}

.sidebar-toggle {
  align-items: center;
  background: var(--brown);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.sidebar-toggle span,
.sidebar-toggle::before,
.sidebar-toggle::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  width: 16px;
}

.sidebar-toggle {
  gap: 3px;
  flex-direction: column;
}

.admin-sidebar-logo {
  display: block;
  grid-area: logo;
  height: auto;
  justify-self: center;
  max-width: 126px;
  width: 100%;
}

.admin-sidebar nav {
  align-content: start;
  display: grid;
  gap: 8px;
  grid-area: nav;
}

.admin-sidebar form {
  align-self: end;
  grid-area: logout;
  margin: 0;
}

.admin-nav-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #fff;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 10px;
  text-decoration: none;
  width: 100%;
}

.admin-nav-link.is-active {
  background: var(--orange);
}

.admin-nav-link img {
  flex: 0 0 auto;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.admin-nav-link span {
  color: inherit;
  font-weight: 800;
}

.admin-sidebar .link-button {
  color: #fff;
  text-align: left;
}

.admin-content {
  display: grid;
  gap: 18px;
  grid-auto-rows: max-content;
  min-width: 0;
  overflow-x: hidden;
  padding: 24px;
}

.settings-page {
  display: grid;
  gap: 18px;
}

.settings-page > h1 {
  font-size: 1.45rem;
  margin: 0;
}

.settings-section {
  display: grid;
  gap: 14px;
}

.settings-section h2 {
  margin: 0;
}

.settings-section > .section-title-row {
  justify-content: flex-start;
}

.settings-general-time-form {
  align-items: end;
  display: flex;
  gap: 10px;
}

.settings-general-time-form label {
  display: grid;
  font-size: .8rem;
  gap: 5px;
  max-width: 220px;
  width: 100%;
}

.settings-general-time-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.settings-general-time-actions .button {
  min-height: 36px;
}

.settings-print-config-button {
  justify-self: start;
}

.settings-auto-cut-form {
  align-items: center;
  display: flex;
  gap: 12px;
}

.settings-switch {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
}

.settings-switch input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.settings-switch-track {
  background: #777;
  border-radius: 14px;
  display: inline-flex;
  height: 24px;
  padding: 3px;
  transition: background-color .2s ease;
  width: 44px;
}

.settings-switch-track span {
  background: #fff;
  border-radius: 50%;
  height: 18px;
  transition: transform .2s ease;
  width: 18px;
}

.settings-switch input:checked + .settings-switch-track {
  background: var(--orange);
}

.settings-switch input:checked + .settings-switch-track span {
  transform: translateX(20px);
}

.settings-switch input:focus-visible + .settings-switch-track {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.settings-create-form,
.settings-edit-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-create-form {
  background: #fff9ef;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.settings-create-form label,
.settings-edit-form label {
  display: grid;
  flex: 1 1 150px;
  font-size: .8rem;
  gap: 5px;
}

.settings-option-form label {
  flex-basis: 130px;
}

.settings-edit-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 42px;
}

.settings-measure-columns {
  color: var(--muted);
  display: grid;
  font-size: .8rem;
  font-weight: 700;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) 36px 36px;
}

.settings-column-headings {
  color: var(--muted);
  display: grid;
  font-size: .8rem;
  font-weight: 700;
  gap: 10px;
}

.settings-columns-single {
  grid-template-columns: 1fr;
}

.settings-columns-double {
  grid-template-columns: repeat(2, minmax(130px, 1fr));
}

.settings-addon-columns {
  padding-right: 92px;
}

.settings-status-columns {
  padding-right: 210px;
}

.settings-list {
  border-top: 1px solid var(--line);
  display: grid;
}

.settings-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 0;
}

.settings-row > form {
  margin: 0;
}

.settings-row > form:last-child {
  align-items: center;
  display: flex;
  min-height: 42px;
}

.settings-checkbox {
  align-items: center;
  display: flex !important;
  flex: 0 0 auto !important;
  grid-auto-flow: column;
  white-space: nowrap;
}

.settings-checkbox input {
  width: auto;
}

.settings-delete-button {
  align-items: center;
  background: var(--danger);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.settings-delete-button img {
  filter: brightness(0) invert(1);
  height: 17px;
  object-fit: contain;
  width: 17px;
}

.settings-save-button,
.settings-modal-save {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.settings-save-button:disabled {
  cursor: default;
  opacity: .38;
}

.settings-save-button img,
.settings-modal-save img {
  filter: brightness(0) invert(1);
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.settings-modal-save {
  height: 42px;
  width: 42px;
}

[data-settings-modal] .modal-form label {
  display: grid;
  gap: 6px;
}

@media (min-width: 701px) {
  .settings-row .settings-field-label {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .settings-addon-row .settings-edit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr)) 36px;
  }

  .settings-status-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr)) auto;
  }

  .settings-measure-row .settings-option-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr)) 36px;
  }

  .settings-measure-row .settings-edit-actions {
    min-height: 42px;
  }
}

@media (max-width: 700px) {
  .settings-measure-columns {
    display: none;
  }

  .settings-column-headings {
    display: none;
  }

  .settings-create-form,
  .settings-edit-form {
    align-items: end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .settings-edit-form > label:not(.settings-checkbox) {
    grid-column: 1 / -1;
  }

  .settings-edit-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .settings-row {
    align-items: end;
  }
}

.admin-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 32px;
}

.admin-header-controls {
  align-items: center;
  display: none;
  gap: 10px;
}

.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.metric-grid strong {
  font-size: 2rem;
}

.panel-section {
  min-width: 0;
  overflow-x: hidden;
  padding: 18px;
}

.admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label,
.admin-form button,
.admin-form textarea,
.admin-form .field-label-row,
.admin-form .input-action-row,
.admin-form .alert-panel {
  grid-column: 1 / -1;
}

.field-label-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: start;
}

.input-action-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.input-action-row select,
.input-action-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.input-action-row .icon-action {
  flex: 0 0 auto;
}

.section-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 0 0 14px;
}

.section-title-row h2 {
  margin: 0;
}

.cardapio-section-title {
  justify-content: flex-start;
}

.field-label-row label {
  margin: 0;
}

.image-upload-field {
  display: grid;
  gap: 12px;
}

.image-preview {
  aspect-ratio: 4 / 3;
  background: #f8eddd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  max-width: 220px;
  object-fit: cover;
  width: 100%;
}

.image-preview[hidden] {
  display: none;
}

.product-measures {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.measure-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--brown);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: start;
  padding: 0;
  text-align: left;
}

.chevron-icon {
  display: block;
  filter: brightness(0);
  flex: 0 0 auto;
  height: 14px;
  object-fit: contain;
  opacity: .72;
  transform: rotate(180deg);
  transition: transform 160ms ease;
  width: 14px;
}

.measure-toggle[aria-expanded="true"] .chevron-icon {
  transform: rotate(0);
}

.measure-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 10px;
}

.measure-panel[hidden] {
  display: none;
}

.measure-list {
  display: grid;
  gap: 10px;
}

.measure-empty {
  margin: 0;
}

.measure-empty[hidden] {
  display: none;
}

.measure-group {
  background: #fffaf5;
  border: 1px solid #f0dfce;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.measure-group-toggle,
.measure-option {
  align-items: center;
  display: flex;
  gap: 8px;
}

.measure-group-toggle {
  color: var(--brown);
  font-weight: 800;
}

.measure-group-toggle input,
.measure-option input {
  accent-color: var(--orange);
  width: auto;
}

.measure-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 26px;
}

.addon-options {
  padding-left: 0;
}

.measure-options[hidden] {
  display: none;
}

.measure-option {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
}

.measure-option span {
  font-weight: 700;
}

.measure-option small {
  color: var(--muted);
}

.measure-add-button {
  justify-self: start;
}

.measure-template-options {
  display: grid;
  gap: 8px;
}

.measure-template-option-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.icon-action {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 6px;
  width: 34px;
}

.icon-action:hover {
  background: #fff1e7;
}

.add-category-icon {
  background: var(--orange);
  display: block;
  height: 22px;
  mask: url("/images/icons/add.png") center / contain no-repeat;
  width: 22px;
  -webkit-mask: url("/images/icons/add.png") center / contain no-repeat;
}

.modal-backdrop {
  align-items: center;
  background: rgb(36 20 13 / 58%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 50;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgb(36 20 13 / 24%);
  max-height: calc(100dvh - 40px);
  max-width: 430px;
  overflow-y: auto;
  padding: 24px;
  width: 100%;
}

.modal-panel-wide {
  max-width: 640px;
}

.product-modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 0;
}

.product-modal-panel > h2 {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 20px 24px 16px;
}

.product-modal-panel .admin-form {
  display: contents;
}

.product-modal-body {
  display: grid;
  gap: 9px;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px 24px;
}

.product-modal-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 14px 24px;
  position: relative;
  z-index: 2;
}

.modal-panel h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.modal-form {
  display: grid;
  gap: 10px;
}

.form-message {
  color: var(--danger);
  font-weight: 700;
  margin: 0;
}

.form-message[hidden] {
  display: none;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: end;
  margin-top: 6px;
}

.button-secondary {
  background: #f3eee6;
  color: var(--brown);
}

.button-danger {
  background: var(--danger);
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
}

.sort-link {
  align-items: center;
  color: var(--brown);
  display: inline-flex;
  gap: 5px;
  font-weight: 800;
  text-decoration: none;
}

.sort-link:hover {
  color: var(--orange);
}

.sort-link span {
  color: var(--orange);
  min-width: 1ch;
}

.table-product {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 190px;
}

.table-product-block {
  display: grid;
  gap: 7px;
  min-width: 220px;
}

.table-product img {
  aspect-ratio: 1;
  background: #f8eddd;
  border: 1px solid var(--line);
  border-radius: 6px;
  flex: 0 0 auto;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.table-product span {
  font-weight: 800;
}

.table-product-description {
  color: #a99c92;
  font-size: .84rem;
  line-height: 1.35;
  margin: 0;
  max-width: 520px;
}

.table-product-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.table-product-meta {
  color: var(--muted);
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

.table-product-meta small {
  align-items: center;
  display: inline-flex;
  font-size: .78rem;
  gap: 6px;
  white-space: nowrap;
}

.table-product-meta small::before {
  color: var(--orange);
  content: "•";
  font-weight: 800;
}

.status-pill {
  background: #f3eee6;
  border-radius: 999px;
  color: var(--brown);
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  padding: 4px 9px;
}

.status-pill.is-active {
  background: #e6f7ed;
  color: var(--success);
}

.status-pill.is-paused {
  background: #fae9e6;
  color: var(--danger);
}

.status-pill.is-created {
  background: #ebe7e2;
  color: #3c3732;
}

.status-pill.is-warning {
  background: #fff1d6;
  color: #9b5c00;
}

.status-pill.is-info {
  background: #e3f2ff;
  color: #1b6ca8;
}

.status-select {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 800;
  min-width: 112px;
  padding: 7px 30px 7px 10px;
  width: auto;
}

.status-select.is-active {
  background: #e6f7ed;
  color: var(--success);
}

.status-select.is-paused {
  background: #fae9e6;
  color: var(--danger);
}

.status-select.is-created {
  background: #ebe7e2;
  color: #3c3732;
}

.status-select.is-warning {
  background: #fff1d6;
  color: #9b5c00;
}

.status-select.is-info {
  background: #e3f2ff;
  color: #1b6ca8;
}

.status-pill.is-orange,
.status-select.is-orange {
  background: #fff0e5;
  color: #b44e00;
}

.status-pill.is-purple,
.status-select.is-purple {
  background: #f1e9ff;
  color: #7042a1;
}

.status-pill.is-pink,
.status-select.is-pink {
  background: #ffe8f0;
  color: #a83b67;
}

.status-pill.is-cyan,
.status-select.is-cyan {
  background: #e2f7f8;
  color: #16727a;
}

.status-pill.is-brown,
.status-select.is-brown {
  background: #eee3dc;
  color: #6f4532;
}

.table-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.icon-table-action {
  align-items: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 33px;
  justify-content: center;
  padding: 0;
  width: 33px;
}

.icon-table-action span {
  display: block;
  height: 18px;
  width: 18px;
}

.icon-table-action.is-edit {
  background: var(--orange);
}

.icon-table-action.is-delete {
  background: #761c18;
}

.edit-icon {
  background: #fff;
  mask: url("/images/icons/edit.png") center / contain no-repeat;
  -webkit-mask: url("/images/icons/edit.png") center / contain no-repeat;
}

.trash-icon {
  background: #fff;
  mask: url("/images/icons/trash.png") center / contain no-repeat;
  -webkit-mask: url("/images/icons/trash.png") center / contain no-repeat;
}

.table-action {
  color: #fff;
  font-size: .85rem;
  padding: 7px 10px;
}

.order-list {
  display: grid;
  gap: 10px;
}

.order-list article {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 12px;
}

.order-list div {
  display: grid;
}

.order-list span {
  color: var(--muted);
}

.orders-admin-list {
  display: grid;
  gap: 14px;
}

.order-filters {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 6px;
  scrollbar-width: thin;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.order-filter-group {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 9px;
  flex: 0 0 auto;
  min-width: max-content;
  padding: 10px;
  white-space: nowrap;
}

.order-filter-group h3 {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: .76rem;
  letter-spacing: .04em;
  margin: 0;
  text-transform: uppercase;
}

.order-filter-date {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  margin: 0 0 0 auto;
}

.section-title-row .order-filter-date {
  margin: 0;
}

.order-filter-date input {
  width: 170px;
}

.order-filter-date input[type="hidden"] {
  display: none;
}

.order-refresh-button {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.order-refresh-button img {
  filter: brightness(0) invert(1);
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.order-filter-chip-row {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  overflow: visible;
  white-space: nowrap;
}

.filter-chip {
  background: #fff7ec;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown);
  flex: 0 0 auto;
  font-size: .86rem;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
}

.filter-chip.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.filter-chip-clear {
  background: #fff;
  color: var(--danger);
}

.order-admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 16px;
}

.order-admin-card > header {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.order-admin-card > header form {
  margin-top: 0;
}

.order-admin-card > header div,
.order-admin-grid section p {
  display: grid;
  gap: 3px;
}

.order-admin-card > header span,
.order-admin-grid span,
.order-admin-notes {
  color: var(--muted);
}

.order-client-name {
  color: var(--ink);
  font-weight: 800;
}

.order-admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, .7fr);
}

.order-admin-grid h3 {
  font-size: .82rem;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.order-admin-grid p,
.order-admin-grid dl,
.order-admin-notes {
  margin: 0;
}

.order-items {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-items li {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.order-items li div {
  display: grid;
  gap: 3px;
}

.order-admin-totals dl {
  display: grid;
  gap: 6px;
}

.order-admin-totals dl div {
  display: flex;
  justify-content: space-between;
}

.order-admin-totals dl div:last-child {
  color: var(--orange);
  font-weight: 800;
}

.order-admin-notes {
  background: #fff9ef;
  border-radius: 6px;
  padding: 10px;
}

.order-admin-footer {
  align-items: end;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.order-admin-customer {
  display: grid;
  gap: 3px;
}

.order-admin-customer span {
  color: var(--muted);
}

.order-admin-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.order-admin-actions form {
  margin: 0;
}

.order-print-button {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  font-weight: 800;
  min-height: 38px;
  padding: 9px 12px;
}

.order-print-button.is-loading {
  opacity: 0.78;
}

.order-print-button img {
  filter: brightness(0) invert(1);
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.print-preview-panel {
  max-width: 520px;
}

.print-preview-paper {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgb(36 20 13 / 10%);
  color: #111;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
  margin: 0 auto;
  max-height: 58dvh;
  overflow: auto;
  padding: 18px 14px;
  white-space: pre;
  width: min(384px, 100%);
}

.print-preview-paper .is-bold {
  font-weight: 800;
}

.print-preview-paper .is-large {
  font-size: 1.2em;
  line-height: 1;
}

.print-preview-footer {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 16px;
}

.print-preview-panel .modal-actions {
  margin-top: 0;
}

.print-zoom-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.print-zoom-actions button {
  align-items: center;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.print-zoom-actions button:disabled {
  cursor: default;
  opacity: .48;
}

.print-zoom-actions img {
  filter: brightness(0) invert(1);
  height: 20px;
  object-fit: contain;
  width: 20px;
}

.print-zoom-actions output {
  color: var(--brown);
  font-size: .82rem;
  font-weight: 800;
  min-width: 46px;
  text-align: center;
}

.order-print-status {
  align-items: center;
  color: var(--success);
  display: inline-flex;
  font-size: .9rem;
  font-weight: 800;
  gap: 6px;
}

.order-print-status[hidden] {
  display: none;
}

.order-print-status span,
.order-print-status strong {
  color: var(--success);
}

.checkmark-circle-icon {
  background: var(--success);
  display: inline-block;
  height: 18px;
  mask: url("/images/icons/checkmark.circle.png") center / contain no-repeat;
  width: 18px;
  -webkit-mask: url("/images/icons/checkmark.circle.png") center / contain no-repeat;
}

.page-loading {
  align-items: center;
  background: rgb(36 20 13 / 38%);
  color: #fff;
  display: flex;
  gap: 10px;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 80;
}

.page-loading[hidden] {
  display: none;
}

.page-loading span {
  animation: spin 700ms linear infinite;
  border: 3px solid currentcolor;
  border-right-color: transparent;
  border-radius: 999px;
  height: 24px;
  width: 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-copy {
  color: var(--muted);
  margin: 0;
}

.toast-stack {
  display: grid;
  gap: 8px;
  justify-items: center;
  left: 50%;
  pointer-events: none;
  position: fixed;
  top: 16px;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 24px));
  z-index: 100;
}

.app-toast {
  animation: toast-in 160ms ease-out;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--success);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgb(36 20 13 / 18%);
  color: var(--ink);
  font-weight: 800;
  padding: 12px 14px;
  pointer-events: auto;
  text-align: center;
  width: 100%;
}

.app-toast.is-error {
  border-left-color: var(--danger);
}

.app-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  main {
    padding: 16px 12px 34px;
  }

  .order-shell,
  .admin-layout,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    position: static;
  }

  .admin-sidebar {
    gap: 14px;
    grid-template-rows: auto 1fr auto;
    height: 100dvh;
    left: 0;
    min-height: 100dvh;
    overflow: hidden;
    padding: 14px 10px;
    position: fixed;
    top: 0;
    transform: translateX(-100%);
    transition: transform 160ms ease;
    width: 72px;
    z-index: 30;
  }

  .admin-sidebar.is-visible {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .admin-header-controls {
    display: flex;
  }

  .admin-sidebar-logo {
    display: block;
    max-width: 42px;
  }

  .admin-sidebar nav {
    align-content: start;
    display: grid;
    gap: 8px;
    overflow: visible;
  }

  .admin-sidebar form {
    display: block;
  }

  .admin-nav-link {
    justify-content: center;
    min-height: 42px;
    overflow: hidden;
    padding: 10px;
    width: 44px;
  }

  .admin-nav-link span {
    display: none;
  }

  .admin-content {
    padding: 18px 12px 34px;
  }

  .order-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  th:nth-child(2),
  th:nth-child(3),
  td:nth-child(2),
  td:nth-child(3) {
    display: none;
  }

  th,
  td {
    padding: 10px 6px;
  }

  .table-product {
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .table-product-block {
    min-width: 0;
  }

  .table-product img {
    height: 42px;
    width: 42px;
  }

  .table-product-meta {
    display: flex;
  }

  .status-select {
    min-width: 92px;
    padding-right: 24px;
  }

  .table-actions {
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .hero-band {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .order-list article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-sidebar {
    padding-inline: 8px;
    width: 64px;
  }
}

@media (max-width: 980px) {
  .public-order-page main {
    padding: 0;
  }

  .order-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100dvh;
  }

  .order-brand-bar {
    min-height: 106px;
    padding: 22px;
  }

  .order-brand-bar img {
    max-width: 110px;
  }

  .category-tabs {
    padding-inline: 18px;
  }

  .order-workspace {
    padding: 20px 18px 28px;
  }

  .selected-product-panel .order-modal-body {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .selected-product-panel .order-modal-body > img {
    height: 100%;
  }

  .selected-options,
  .selected-observation-field,
  .selected-product-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .order-brand-bar {
    min-height: 70px;
    padding: 12px 18px;
  }

  .order-brand-bar img {
    max-width: 64px;
  }

  .category-tabs {
    gap: 18px;
    padding: 14px 14px 0;
  }

  .order-workspace {
    gap: 18px;
    padding: 18px 14px 24px;
  }

  .product-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-product-panel .order-modal-body {
    grid-template-columns: 1fr;
  }

  .selected-product-panel .order-modal-body > img {
    height: auto;
  }

  .selected-product-actions {
    grid-template-columns: 1fr;
  }

  .checkout-panel-header {
    align-items: stretch;
    display: grid;
  }

  .quantity-stepper {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .fulfillment-options > div {
    grid-template-columns: 1fr;
  }

  .cart-line-side {
    align-items: end;
  }
}

@media print {
  body.is-printing-order * {
    visibility: hidden;
  }

  body.is-printing-order .order-admin-card.is-print-target,
  body.is-printing-order .order-admin-card.is-print-target * {
    visibility: visible;
  }

  body.is-printing-order .order-admin-card.is-print-target {
    border: 0;
    box-shadow: none;
    gap: 14px;
    left: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  body.is-printing-order .order-admin-actions,
  body.is-printing-order .order-admin-actions * {
    display: none;
  }
}
