@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Canonical semantic colours. Statuses deliberately keep the same meaning
   and contrast in every Foodev surface and in both colour schemes. */
:root {
  --foodev-status-success: #14834a;
  --foodev-status-warning: #956500;
  --foodev-status-danger: #d73737;
  --foodev-switch-active: #19c85a;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Shared Foodev bottom-sheet primitive. The restaurant's “Más” sheet,
   Reservas and Foodev Center all inherit the same geometry and motion. */
.foodev-standard-sheet {
  --foodev-sheet-surface: var(--surface, var(--card, #fff));
  --foodev-sheet-line: var(--line, var(--border, #8080801a));
  --foodev-sheet-muted: var(--muted, var(--text-secondary, #6f6f6f));
  --foodev-sheet-danger: var(--foodev-status-danger);
  color: var(--text, CanvasText);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-stretch: normal;
  font-synthesis: none;
  font-variant: normal;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.action-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  align-items: end;
  justify-items: center;
  overflow: hidden;
  overscroll-behavior: none;
  background: transparent;
  opacity: 1;
  pointer-events: none;
  transition: none;
}

.action-sheet-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #00000080;
  opacity: 0;
  transition: opacity .5s ease;
}

.action-sheet-backdrop.is-open {
  pointer-events: auto;
}

.action-sheet-backdrop.is-open::before {
  opacity: 1;
}

.action-sheet-backdrop.is-closing {
  pointer-events: none;
}

.action-sheet {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 92px);
  padding: 0 24px 48px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 12px 12px 0 0;
  background: var(--foodev-sheet-surface);
  color: var(--text);
  transform: translate3d(0, 100%, 0);
  transition: transform .5s cubic-bezier(.15, 1, .4, 1), background-color .3s ease;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  will-change: transform;
}

.action-sheet-backdrop.is-open .action-sheet {
  transform: translate3d(0, 0, 0);
}

.action-sheet-backdrop.is-closing .action-sheet {
  transition: transform 250ms cubic-bezier(.18, .86, .18, 1), background-color .22s ease;
}

.action-sheet > .sheet-drag-bar {
  position: sticky;
  top: 8px;
  z-index: 4;
  display: block;
  width: 48px;
  height: 6px;
  min-height: 6px;
  margin: 8px auto -14px;
  border-radius: 999px;
  background: #e0e0e0;
  opacity: .75;
  pointer-events: none;
}

.action-sheet > .sheet-drag-hit-area {
  position: sticky;
  top: 0;
  z-index: 5;
  display: block;
  width: 100%;
  height: 32px;
  min-height: 32px;
  margin: 0 0 -32px;
  padding: 0;
  background: transparent;
  touch-action: none;
  cursor: grab;
}

.action-sheet.sheet-swipe-dragging > .sheet-drag-hit-area {
  cursor: grabbing;
}

.action-sheet-header {
  height: 72px;
  min-height: 72px;
  margin: 0 -24px;
  padding: 0 24px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
}

.action-sheet-header h2 {
  width: 100%;
  margin: 26px 0 0;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.action-sheet-row {
  position: relative;
  width: calc(100% + 16px);
  min-height: 58px;
  margin-inline: -8px;
  border: 0;
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: none;
  -webkit-tap-highlight-color: transparent;
}

.action-sheet-row::after {
  content: "";
  position: absolute;
  left: 54px;
  right: 12px;
  bottom: 0;
  height: 1px;
  background: var(--foodev-sheet-line);
  pointer-events: none;
}

.action-sheet-row:last-child::after {
  display: none;
}

.action-sheet-row:active,
.action-sheet-row:hover,
.action-sheet-row:focus-visible {
  background: transparent !important;
  outline: 0 !important;
  outline-offset: 0 !important;
}

.action-sheet-row-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-stretch: normal;
  font-synthesis: none;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
}

.action-sheet-icon,
.action-sheet-row-main > .icon,
.action-sheet-row-main > svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  color: currentColor;
}

.action-sheet-icon > svg,
.action-sheet-row-main > .icon > svg,
.action-sheet-row-main > svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legend-chevron-svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--foodev-sheet-muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .72;
}

.legend-chevron-svg polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.action-sheet-row .theme-icon {
  display: none;
}

:root[data-theme="light"] .action-sheet-row .theme-icon-moon,
:root[data-theme="dark"] .action-sheet-row .theme-icon-sun {
  display: block;
}

.action-sheet-row.is-danger,
.action-sheet-row.is-danger .action-sheet-icon {
  color: var(--foodev-sheet-danger);
}

.standard-sheet-chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.foodev-language-trigger-trailing {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--foodev-sheet-muted);
  font-size: 1rem;
  font-weight: 400;
}

.foodev-language-trigger-trailing .standard-sheet-chevron {
  opacity: .72;
}

.foodev-language-sheet .action-sheet-header {
  margin-bottom: 2px;
}

.foodev-language-sheet {
  --primary-ink: var(--text);
}

.foodev-language-options {
  margin-top: 0;
}

.foodev-language-sheet .lang-option {
  position: relative;
  width: calc(100% + 16px);
  margin-inline: -8px;
  border: 0;
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.foodev-language-sheet .lang-option::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1px;
  background: var(--foodev-sheet-line);
  pointer-events: none;
}

.foodev-language-sheet .lang-option:last-child::after {
  display: none;
}

.foodev-language-sheet .lang-option:hover,
.foodev-language-sheet .lang-option:active,
.foodev-language-sheet .lang-option:focus-visible {
  background: transparent;
  outline: 0;
}

.foodev-language-sheet .lang-name {
  color: var(--text);
  font-weight: 400;
}

.foodev-language-sheet .lang-option.active .lang-name {
  color: var(--primary-ink, var(--primary, var(--text)));
  font-weight: 600;
}

.foodev-language-sheet .lang-check {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: 0;
}

.foodev-language-sheet .lang-option.active .lang-check {
  opacity: 1;
}

.action-sheet-switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex: 0 0 46px;
  border-radius: 999px;
  background: #8080804d;
  transition: background-color .22s ease;
}

.action-sheet-switch > span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(0);
  transition: transform .22s ease;
}

.action-sheet-row[aria-pressed="true"] .action-sheet-switch {
  background: var(--foodev-switch-active);
}

.action-sheet-row[aria-pressed="true"] .action-sheet-switch > span {
  transform: translateX(18px);
}

.action-sheet-build {
  margin: 38px 0 0;
  padding: 0;
  border: 0;
  color: var(--foodev-sheet-muted);
  font-size: .88rem;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  opacity: .6;
}

.action-sheet-build span {
  display: block;
}

.action-sheet-build span + span::before {
  content: none;
}

.action-sheet-build span + span {
  margin-top: 4px;
}

@media (max-width: 759px) {
  .action-sheet {
    width: 100%;
    max-height: 100dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action-sheet-backdrop::before,
  .action-sheet,
  .action-sheet-backdrop.is-closing .action-sheet {
    transition-duration: .01ms;
  }
}
