@import url('./components.css');

html { background: var(--gusto-browser-surface); }
body {
  margin: 0;
  color: #000;
  background: var(--gusto-browser-surface);
  font-family: var(--gusto-font);
  padding-inline: var(--gusto-safe-left) var(--gusto-safe-right);
  padding-bottom: var(--gusto-safe-bottom);
}
.menu-shell {
  box-sizing: border-box;
  width: 403px;
  max-width: 100%;
  margin-inline: auto;
  padding-top: 0;
  background: #fff;
}
.menu-skip {
  position: fixed;
  z-index: 20;
  top: calc(8px + var(--gusto-safe-top));
  left: 8px;
  padding: 10px 15px;
  color: #fff;
  background: #000;
  transform: translateY(-200%);
}
.menu-skip:focus { transform: none; }
.menu-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: calc(100% - 1px);
  padding: calc(15px + var(--gusto-safe-top)) 9px 8px;
  background: #fff;
}
.menu-logo {
  position: relative; display: block; flex: none;
  width: 62px; height: 36px; overflow: hidden;
}
.menu-logo__image {
  position: absolute; display: block;
  width: 78px; height: 78px; max-width: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.menu-categories {
  display: flex;
  align-items: flex-start;
  flex: none;
  width: 392px;
  max-width: calc(100vw - 1px);
  padding-top: 4px;
  margin-top: -4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-categories::-webkit-scrollbar { display: none; }
.menu-categories .gusto-category { flex: 0 0 98px; }
.menu-content {
  touch-action: pan-y pinch-zoom;
  width: calc(100% - 1px);
  padding-top: 10px;
  margin-bottom: 1px;
  scroll-margin-top: calc(175px + var(--gusto-safe-top));
}
.menu-content:focus { outline: none; }
.menu-products-viewport { position: relative; overflow: clip; }
.menu-grid--outgoing { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; }
.menu-products-viewport[data-transitioning] .menu-grid { will-change: transform, opacity; }
.menu-grid { display: flex; flex-direction: column; }
.menu-product-row {
  display: flex; align-items: stretch; justify-content: center;
  width: 100%; gap: 2.5px; margin-bottom: -1px; overflow: clip;
}
.menu-product-row:last-child { margin-bottom: 0; }
.menu-product-row > .gusto-product { flex: 0 0 201.5px; max-width: none; }
.menu-product-row[data-sizing='fill'] > .gusto-product { flex: 1 0 0; min-width: 0; }
.menu-product-row > .gusto-product:focus-visible { outline-offset: -2px; }
.menu-grid .gusto-badge { border-width: 1px; }
.menu-grid--empty { min-height: 310px; }
.menu-empty { align-self: center; margin: 40px 25px; text-align: center; font: 400 14px/22px var(--gusto-font); color: #555; }
.menu-footer {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 1px);
  padding: 50px 25px;
  margin-left: .5px;
}
.menu-footer .gusto-button { width: 352px; }
.menu-footer .gusto-button:disabled { opacity: 1; }
@media (max-width: 401px) {
  .menu-product-row > .gusto-product { flex: 1 0 0; min-width: 0; }
  .menu-product-row > .gusto-product .gusto-product__media { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.menu-footer[hidden] { display: none; }

.menu-state {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 1fr;
  justify-items: center;
  gap: 24px;
  width: 403px;
  max-width: 100%;
  min-height: 100dvh;
  margin-inline: auto;
  padding: 24px;
  padding-top: max(24px, var(--gusto-safe-top));
  padding-bottom: max(24px, var(--gusto-safe-bottom));
  text-align: center;
}
.menu-state__logo { display: block; width: 100px; height: 100px; object-fit: contain; }
.menu-state__message h1 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; }
.menu-state__message p { margin: 12px 0 0; font-size: 15px; line-height: 22px; color: var(--gusto-muted); }
.menu-state > .gusto-button { width: 100%; }

.menu-state--error { grid-template-rows: 1fr auto; }
.menu-state__content { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; width: 100%; }
