/* Alcohol 18+ (owner request 2026-10-28): the "18+" mark on alcohol in the menu, the note under the drinks and the
   question before an order with alcohol is sent. All layouts; light and dark. */
:root {
  --age-mark: #b42318;
  --age-mark-text: #b42318;
  --age-dialog-surface: #fffefa;
  --age-dialog-ink: #263028;
  --age-dialog-muted: #5b625a;
  --age-dialog-line: #dcded5;
  --age-dialog-primary: #2c4f29;
}
html[data-nova-public][data-theme="dark"] {
  --age-mark: #c4453a;
  --age-mark-text: var(--site-accent-text);
  --age-dialog-surface: var(--site-surface);
  --age-dialog-ink: var(--site-ink);
  --age-dialog-muted: var(--site-muted);
  --age-dialog-line: var(--site-line);
  --age-dialog-primary: #4f7a49;
}

/* The mark sits after the dish name: h3 on desktop, the title button on phone and portrait. */
.menu-item[data-age-limit="18"] > .menu-content > :is(h3, .touch-product-title-trigger)::after {
  content: "18+";
  display: inline-block;
  margin-left: 0.45em;
  padding: 0.05em 0.45em;
  border-radius: 999px;
  background: var(--age-mark);
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  vertical-align: 0.12em;
  white-space: nowrap;
}

.menu-note.age-note {
  margin-top: 4px !important;
}
.menu-note.age-note strong {
  color: var(--age-mark-text);
}

dialog.age-check-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 24px));
  max-height: min(85dvh, 560px);
  overflow-y: auto;
  margin: auto;
  padding: 22px;
  border: 1px solid var(--age-dialog-line);
  border-radius: 20px;
  box-shadow: 0 22px 70px #16211744;
  background: var(--age-dialog-surface);
  color: var(--age-dialog-ink);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}
dialog.age-check-dialog::backdrop {
  background: rgba(20, 22, 18, 0.55);
}
dialog.age-check-dialog .age-check-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--age-mark);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
dialog.age-check-dialog h2 {
  margin: 0 0 8px;
  font-size: 20px !important;
  line-height: 1.25;
  color: inherit;
}
dialog.age-check-dialog p {
  margin: 0 0 10px;
  font-size: 15px !important;
  color: inherit;
}
dialog.age-check-dialog .age-check-id {
  color: var(--age-dialog-muted);
}
/* "Ja" first and on top on a phone; side by side ("Nee" left, "Ja" right) when there is room. */
dialog.age-check-dialog .age-check-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
@media (min-width: 560px) {
  dialog.age-check-dialog .age-check-actions {
    flex-direction: row-reverse;
  }
  dialog.age-check-dialog .age-check-actions button {
    flex: 1 1 0;
  }
}
dialog.age-check-dialog .age-check-actions button {
  width: 100%;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 12px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
dialog.age-check-dialog .age-check-no {
  border: 1px solid var(--age-dialog-line);
  background: transparent;
  color: inherit;
}
dialog.age-check-dialog .age-check-yes {
  border: 1px solid var(--age-dialog-primary);
  background: var(--age-dialog-primary);
  color: #fff;
}
dialog.age-check-dialog button:focus-visible {
  outline: 3px solid #ffc1a3;
  outline-offset: 2px;
}
