:root {
  --crosta-red: #b20c12;
  --crosta-red-dark: #82080c;
  --crosta-blue: #123477;
  --crosta-blue-dark: #0a2459;
  --crosta-ink: #0d1f45;
  --crosta-white: #f9f1e9;
  --crosta-paper: #f1e6dc;
  --crosta-line: rgba(18, 52, 119, 0.28);
  --brand: "Rye", Georgia, serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--crosta-red);
}

body {
  margin: 0;
  color: var(--crosta-ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(18, 52, 119, 0.035) 0 1px, transparent 1.5px)
      0 0 / 9px 9px,
    var(--crosta-white);
  font-family: var(--serif);
  min-width: 300px;
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--crosta-red);
  outline-offset: 3px;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--crosta-white);
  background: var(--crosta-red);
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-checkers {
  position: absolute;
  inset: 0 0 auto;
  height: 54px;
  background:
    conic-gradient(
      from 90deg,
      var(--crosta-white) 25%,
      var(--crosta-red) 0 50%,
      var(--crosta-white) 0 75%,
      var(--crosta-red) 0
    )
    0 0 / 36px 36px;
}

.loader-hand-wrap {
  width: min(54vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.loader-hand {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.loader-copy {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.masthead {
  position: relative;
  background: var(--crosta-white);
  overflow: hidden;
}

.checkers,
.footer-checkers {
  height: 36px;
  background:
    conic-gradient(
      from 90deg,
      var(--crosta-white) 25%,
      var(--crosta-red) 0 50%,
      var(--crosta-white) 0 75%,
      var(--crosta-red) 0
    )
    0 0 / 24px 24px;
}

.brand-lockup {
  padding: 10px 14px 14px;
  text-align: center;
}

.brand-place,
.hero-note {
  margin: 0;
}

.brand-logo-link {
  display: block;
  width: 180px;
  max-width: 62vw;
  margin: 0 auto;
}

.brand-logo-frame {
  display: block;
  height: 145px;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.brand-place {
  margin-top: 3px;
  color: var(--crosta-blue);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-height);
  padding: 10px 0;
  background: rgba(249, 241, 233, 0.97);
  border-block: 2px solid var(--crosta-blue);
}

.category-scroll {
  display: flex;
  gap: 8px;
  height: 100%;
  padding-inline: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 7px 15px 7px 9px;
  border: 2px solid var(--crosta-blue);
  border-radius: 999px;
  color: var(--crosta-blue);
  background: var(--crosta-white);
  font-family: var(--display);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms var(--ease-out);
}

.category-button:active {
  transform: scale(0.97);
}

.category-button[aria-selected="true"] {
  color: var(--crosta-white);
  background: var(--crosta-blue);
}

.category-button[data-category="pizza"][aria-selected="true"],
.category-button[data-category="compose"][aria-selected="true"] {
  border-color: var(--crosta-red);
  background: var(--crosta-red);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.category-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-button[aria-selected="true"] .category-icon {
  animation: icon-nod 420ms var(--ease-out);
}

main {
  max-width: 1120px;
  margin: 0 auto;
}

.menu-stage {
  min-height: 62vh;
  padding: 24px 14px 92px;
}

.menu-view {
  animation: menu-enter 420ms var(--ease-out) both;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--section-color, var(--crosta-blue));
}

.section-heading h2 {
  margin: 0;
  color: var(--section-color, var(--crosta-blue));
  font-family: var(--brand);
  font-size: clamp(2rem, 9vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
  text-wrap: balance;
}

.section-heading p {
  margin: 0 0 2px;
  color: var(--crosta-red);
  font-family: var(--serif);
  font-size: 0.7rem;
  font-style: italic;
}

.menu-groups {
  display: grid;
  gap: 22px;
}

.menu-group {
  min-width: 0;
  overflow: visible;
  border: 3px solid var(--section-color, var(--crosta-blue));
  border-radius: 15px 14px 12px 12px;
  background: var(--crosta-white);
  transform-origin: top center;
  animation: frame-open 560ms var(--ease-out) both;
  animation-delay: var(--group-delay, 0ms);
}

.menu-group h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin: -3px -3px 0;
  padding: 8px 14px 8px 72px;
  color: var(--crosta-white);
  background: var(--section-color, var(--crosta-blue));
  border-radius: 13px 12px 0 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.menu-group-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--crosta-white);
  background: var(--section-color, var(--crosta-blue));
}

.menu-group-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-group-body {
  padding-inline: 12px;
}

.menu-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(18px, 1fr) auto 38px;
  column-gap: 8px;
  align-items: end;
  padding: 13px 0 12px;
  border-bottom: 1px solid var(--crosta-line);
}

.menu-item-copy {
  min-width: 0;
}

.menu-item-name {
  margin: 0;
  color: var(--section-color, var(--crosta-blue));
  font-family: var(--display);
  font-size: 1.13rem;
  font-weight: 600;
  line-height: 1.1;
  text-wrap: pretty;
}

.menu-item-description {
  grid-column: 1 / -1;
  margin: 5px 0 0;
  color: color-mix(in srgb, var(--crosta-ink) 84%, white);
  font-family: var(--serif);
  font-size: 0.74rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.price-leader {
  min-width: 18px;
  height: 4px;
  margin-bottom: 5px;
  background-image: radial-gradient(circle, var(--section-color, var(--crosta-blue)) 1.5px, transparent 1.8px);
  background-position: left center;
  background-size: 8px 4px;
  background-repeat: repeat-x;
  transform: scaleX(0);
  transform-origin: left center;
  animation: draw-dots 520ms var(--ease-out) forwards;
  animation-delay: calc(var(--row-index, 0) * 34ms + 80ms);
}

.menu-price {
  color: var(--crosta-red);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.add-item-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  align-self: end;
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;
  margin-bottom: -4px;
  border: 2px solid var(--section-color, var(--crosta-blue));
  border-radius: 50%;
  color: var(--section-color, var(--crosta-blue));
  background: var(--crosta-white);
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms var(--ease-out);
}

.add-item-button:hover,
.add-item-button:focus-visible {
  color: var(--crosta-white);
  background: var(--section-color, var(--crosta-blue));
}

.add-item-button:active {
  transform: scale(0.92);
}

.builder-intro {
  margin: -4px 0 22px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.builder-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px;
  color: var(--crosta-white);
  background: var(--crosta-red);
  border-radius: 10px;
}

.builder-base strong {
  font-family: var(--display);
  font-size: 1.1rem;
}

.builder-base span {
  font-family: var(--display);
  font-size: 1rem;
}

.ingredient-groups {
  display: grid;
  gap: 22px;
}

.ingredient-group {
  overflow: hidden;
  border: 3px solid var(--crosta-red);
  border-radius: 12px;
  background: var(--crosta-white);
  animation: frame-open 560ms var(--ease-out) both;
}

.ingredient-group:nth-child(2) {
  animation-delay: 70ms;
}

.ingredient-group:nth-child(3) {
  animation-delay: 140ms;
}

.ingredient-group:nth-child(4) {
  animation-delay: 210ms;
}

.ingredient-group h3 {
  margin: 0;
  color: var(--crosta-white);
  font-family: var(--display);
  font-size: 1.2rem;
}

.builder-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  color: var(--crosta-white);
  background: var(--crosta-red);
}

.builder-group-heading h3 {
  margin: 0;
}

.builder-group-heading span {
  color: var(--crosta-white);
  font: 700 0.72rem var(--display);
}

.builder-group-rule {
  margin: 0;
  padding: 10px 12px;
  color: #5d5a55;
  font-size: 0.66rem;
  line-height: 1.4;
}

.builder-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--crosta-line);
  background: var(--crosta-white);
}

.builder-option > div:first-child {
  display: grid;
  gap: 3px;
}

.builder-option > div:first-child strong {
  color: var(--crosta-blue);
  font: 700 0.76rem var(--display);
}

.builder-option > div:first-child span {
  color: var(--crosta-red);
  font: 700 0.66rem var(--display);
}

.builder-option-state {
  margin-top: 2px;
  color: currentColor;
  font: 600 0.6rem var(--display);
}

.builder-option.is-selected {
  border-color: var(--crosta-blue);
  color: var(--crosta-white);
  background: var(--crosta-blue);
}

.builder-option.is-selected > div:first-child strong,
.builder-option.is-selected > div:first-child span {
  color: var(--crosta-white);
}

.builder-option.is-selected .extra-stepper button {
  border-color: var(--crosta-white);
  color: var(--crosta-white);
}

.builder-option.is-selected .extra-stepper strong {
  color: var(--crosta-white);
}

.ingredient-list {
  display: grid;
  gap: 8px;
  padding: 10px 10px 12px;
}

.ingredient {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 11px;
  border: 2px solid var(--crosta-blue);
  border-radius: 8px;
  color: var(--crosta-blue);
  background: var(--crosta-white);
  font-family: var(--display);
  font-size: 0.86rem;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms var(--ease-out);
}

.ingredient:hover {
  transform: translateY(-1px);
}

.ingredient[aria-pressed="true"] {
  color: var(--crosta-white);
  background: var(--crosta-blue);
}

.ingredient-price {
  opacity: 0.82;
  font-size: 0.72rem;
}

.builder-total {
  position: sticky;
  bottom: 12px;
  z-index: 8;
  margin-top: 24px;
  padding: 13px 16px;
  overflow: hidden;
  color: var(--crosta-white);
  background: var(--crosta-red);
  border: 3px solid var(--crosta-white);
  box-shadow: 0 0 0 2px var(--crosta-red);
}

/* Distinct sweeping shine so users see this is where they add their focaccia. */
.builder-total::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 26%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 74%
  );
  transform: translateX(-100%);
  pointer-events: none;
  animation: cta-sweep 2.6s ease-in-out infinite;
}

@keyframes cta-sweep {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

body.is-builder .hand-button {
  display: none;
}

.builder-add-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 40px;
  padding: 5px 0;
  border: 0;
  color: var(--crosta-white);
  background: transparent;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.builder-add-button span {
  font-family: var(--display);
  font-size: 1.08rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.builder-add-button strong {
  font-family: var(--display);
  font-size: 1.35rem;
}

.hand-button {
  position: fixed;
  right: 14px;
  bottom: 12px;
  z-index: 30;
  width: 148px;
  height: 126px;
  padding: 0;
  overflow: visible;
  border: 0;
  color: var(--crosta-blue);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.hand-copy-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hand-copy-arc path {
  fill: none;
}

.hand-copy-arc text {
  fill: var(--crosta-blue);
  stroke: var(--crosta-white);
  stroke-width: 3px;
  paint-order: stroke fill;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.055em;
}

.hand-copy-arc .hand-copy-ciao {
  fill: var(--crosta-red);
}

.hand-art {
  position: absolute;
  right: 34px;
  bottom: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--crosta-white);
  filter: drop-shadow(0 3px 0 rgba(13, 31, 69, 0.16));
}

.hand-art video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hand-status-dot {
  position: absolute;
  right: 27px;
  bottom: 5px;
  width: 17px;
  height: 17px;
  border: 3px solid var(--crosta-white);
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 1px rgba(13, 31, 69, 0.12);
  animation: help-dot-trip 11s var(--ease-out) 2.8s infinite;
}

.has-cart .hand-button {
  bottom: 78px;
}

.has-cart .builder-total {
  bottom: 82px;
}

.cart-button {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 31;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 12px 16px;
  border: 3px solid var(--crosta-white);
  color: var(--crosta-white);
  background: var(--crosta-blue);
  box-shadow: 0 0 0 2px var(--crosta-blue);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-button[hidden] {
  display: none;
}

.cart-button strong {
  color: var(--crosta-white);
  font-size: 0.92rem;
  white-space: nowrap;
}

/* Translucency pulse so a filled cart / add button clearly signals "tap to continue". */
.cart-button::after,
#addCustomizedItem::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.42);
  opacity: 0;
  pointer-events: none;
  animation: cta-glow 2s ease-in-out infinite;
}

#addCustomizedItem {
  position: relative;
  overflow: hidden;
}

@keyframes cta-glow {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.cart-button-text {
  display: grid;
  gap: 1px;
  text-align: left;
}

.cart-button-label {
  font-size: 1rem;
  line-height: 1.05;
}

.cart-button-hint {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.82;
}

.cart-button.is-bumping {
  animation: cart-bump 460ms var(--ease-out);
}

@keyframes cart-bump {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 2px var(--crosta-blue);
  }
  28% {
    transform: scale(1.03);
    box-shadow: 0 0 0 2px var(--crosta-blue), 0 0 0 10px rgba(13, 31, 69, 0.16);
  }
  60% {
    box-shadow: 0 0 0 2px var(--crosta-blue), 0 0 0 16px rgba(13, 31, 69, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px var(--crosta-blue);
  }
}

.order-dialog {
  width: min(100%, 660px);
  max-width: none;
  height: min(92dvh, 820px);
  max-height: none;
  margin: auto auto 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px 16px 0 0;
  color: var(--crosta-ink);
  background: var(--crosta-white);
}

.order-dialog::backdrop {
  background: rgba(5, 13, 35, 0.68);
}

.customize-dialog {
  width: min(100%, 660px);
  max-width: none;
  height: min(94dvh, 860px);
  max-height: none;
  margin: auto auto 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px 18px 0 0;
  color: var(--crosta-ink);
  background: var(--crosta-paper);
}

.customize-dialog::backdrop {
  background: rgba(5, 13, 35, 0.72);
}

.customize-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.customize-header {
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px 13px;
  color: var(--crosta-white);
  background: var(--crosta-blue);
  border-bottom: 5px solid var(--crosta-red);
}

.customize-header h2 {
  margin: 2px 0 0;
  color: var(--crosta-white);
  font-family: var(--brand);
  font-size: clamp(1.45rem, 7vw, 2rem);
  font-weight: 400;
  line-height: 1;
}

.customize-header .order-kicker {
  color: var(--crosta-paper);
}

.customize-header p:last-child {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: 0.72rem;
}

.customize-header .dialog-close {
  flex: 0 0 auto;
  border-color: var(--crosta-white);
  color: var(--crosta-white);
}

.customize-content {
  padding: 0 16px 24px;
  overflow-y: auto;
  background: var(--crosta-paper);
}

.customize-section {
  padding: 20px 0;
  border-bottom: 1px solid rgba(17, 47, 111, 0.22);
}

.customize-section-heading {
  margin-bottom: 12px;
}

.customize-section-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.customize-section-heading h3 {
  margin: 0;
  color: var(--crosta-blue);
  font-family: var(--display);
  font-size: 1rem;
}

.customize-section-heading p {
  margin: 5px 0 0 35px;
  color: #5d5a55;
  font-size: 0.7rem;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  color: var(--crosta-white);
  background: var(--crosta-red);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
}

.removal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.removal-chip {
  min-height: 43px;
  padding: 8px 12px;
  border: 2px solid var(--crosta-blue);
  border-radius: 0;
  color: var(--crosta-blue);
  background: var(--crosta-white);
  font: 700 0.72rem var(--display);
  cursor: pointer;
}

.removal-chip[aria-pressed="true"] {
  border-color: var(--crosta-red);
  color: var(--crosta-red);
  background: #fff0e9;
  text-decoration: line-through;
}

.removal-mark {
  margin-right: 5px;
}

.extra-groups {
  display: grid;
  gap: 8px;
}

.extra-group {
  border: 2px solid var(--crosta-blue);
  background: var(--crosta-white);
}

.extra-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 12px;
  color: var(--crosta-blue);
  cursor: pointer;
  list-style: none;
}

.extra-group summary::-webkit-details-marker {
  display: none;
}

.extra-group summary > span:first-child {
  display: grid;
  gap: 2px;
}

.extra-group summary strong {
  font: 700 0.84rem var(--display);
  text-transform: uppercase;
}

.extra-group summary small {
  color: #66625c;
  font-size: 0.64rem;
}

.extra-group-count {
  color: var(--crosta-red);
  font: 700 0.68rem var(--display);
  white-space: nowrap;
}

.extra-group-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.extra-group-chevron {
  width: 20px;
  height: 20px;
  color: var(--crosta-blue);
  transition: transform 200ms var(--ease-out);
}

.extra-group[open] > summary .extra-group-chevron {
  transform: rotate(180deg);
}

.extra-group[open] {
  border-color: var(--crosta-red);
}

.extra-group[open] > summary {
  color: var(--crosta-red);
}

.extra-options {
  border-top: 1px dashed var(--crosta-red);
}

.extra-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--crosta-line);
}

.extra-option:last-child {
  border-bottom: 0;
}

.extra-option > div:first-child {
  display: grid;
  gap: 3px;
}

.extra-option > div:first-child strong {
  color: var(--crosta-blue);
  font: 700 0.76rem var(--display);
}

.extra-option > div:first-child span {
  color: var(--crosta-red);
  font: 700 0.68rem var(--display);
}

.extra-stepper {
  display: flex;
  align-items: center;
  gap: 9px;
}

.extra-stepper button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid var(--crosta-blue);
  border-radius: 50%;
  color: var(--crosta-blue);
  background: transparent;
  font: 700 1rem var(--display);
  cursor: pointer;
}

.extra-stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.extra-stepper strong {
  min-width: 15px;
  color: var(--crosta-blue);
  font-family: var(--display);
  text-align: center;
}

.item-note-field > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.item-note-field textarea {
  margin-top: 10px;
}

.customize-footer {
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  background: var(--crosta-white);
  border-top: 3px solid var(--crosta-blue);
  box-shadow: 0 -8px 24px rgba(5, 13, 35, 0.12);
}

.customize-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--crosta-blue);
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 700;
}

.customize-footer strong {
  color: var(--crosta-red);
}

.cart-modification {
  color: var(--crosta-ink);
}

.cart-modification strong {
  color: var(--crosta-red);
}

.order-shell {
  height: 100%;
  padding: 0 18px 30px;
  overflow-y: auto;
}

.order-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 13px;
  background: var(--crosta-white);
  border-bottom: 3px solid var(--crosta-red);
}

.order-header h2 {
  margin: 2px 0 0;
  color: var(--crosta-red);
  font-family: var(--brand);
  font-size: 1.8rem;
  font-weight: 400;
}

.order-kicker {
  margin: 0;
  color: var(--crosta-blue);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dialog-close {
  width: 42px;
  height: 42px;
  border: 2px solid var(--crosta-blue);
  border-radius: 50%;
  color: var(--crosta-blue);
  background: transparent;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.cart-items {
  padding-top: 8px;
}

.empty-cart {
  padding: 42px 12px;
  text-align: center;
}

.empty-cart strong {
  display: block;
  color: var(--crosta-blue);
  font-family: var(--brand);
  font-size: 1.35rem;
  font-weight: 400;
}

.empty-cart p {
  margin: 8px 0 0;
  font-size: 0.78rem;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--crosta-line);
}

.cart-line h3 {
  margin: 0;
  color: var(--crosta-blue);
  font-family: var(--display);
  font-size: 1.05rem;
}

.cart-line p {
  margin: 4px 0 0;
  font-size: 0.68rem;
  line-height: 1.4;
}

.cart-line-price {
  color: var(--crosta-red);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.quantity-control {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-control button {
  width: 34px;
  height: 34px;
  border: 2px solid var(--crosta-blue);
  border-radius: 50%;
  color: var(--crosta-blue);
  background: transparent;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.quantity-control strong {
  min-width: 20px;
  font-family: var(--display);
  text-align: center;
}

.remove-line {
  margin-left: auto;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--crosta-red) !important;
  font-family: var(--display);
  font-size: 0.78rem !important;
  width: auto !important;
}

.cart-total,
.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  color: var(--crosta-red);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}

.delivery-fee-hint {
  margin-top: 18px;
  padding: 14px;
  border: 2px solid var(--crosta-blue);
  background: var(--crosta-paper);
}

.delivery-fee-hint strong {
  display: block;
  color: var(--crosta-blue);
  font: 700 0.9rem var(--display);
  text-transform: uppercase;
}

.delivery-fee-hint p {
  margin: 6px 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
}

.primary-action,
.secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  color: var(--crosta-white);
  background: var(--crosta-red);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.secondary-action {
  margin-top: 10px;
  border: 2px solid var(--crosta-blue);
  color: var(--crosta-blue);
  background: transparent;
}

.back-button {
  margin: 16px 0 18px;
  padding: 0;
  border: 0;
  color: var(--crosta-blue);
  background: transparent;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.fulfilment-fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.fulfilment-fieldset legend {
  margin-bottom: 10px;
  color: var(--crosta-blue);
  font-family: var(--brand);
  font-size: 1.05rem;
}

.payment-fieldset {
  margin: 16px 0 0;
}

.momo-field {
  margin-top: 12px;
}

.momo-same {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--crosta-blue);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.momo-same input {
  width: 18px;
  height: 18px;
  accent-color: var(--crosta-blue);
  flex: 0 0 auto;
}

.momo-field.is-same .form-field {
  opacity: 0.65;
}

.momo-field.is-same input[name="momoNumber"] {
  background: rgba(0, 0, 0, 0.04);
  cursor: not-allowed;
}

.momo-hint {
  margin: 6px 0 0;
  color: var(--crosta-blue);
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0.85;
}

.fulfilment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fulfilment-options label {
  position: relative;
  cursor: pointer;
}

.fulfilment-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fulfilment-options span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 2px solid var(--crosta-blue);
  color: var(--crosta-blue);
  font-family: var(--display);
  font-weight: 700;
}

.fulfilment-options input:checked + span {
  color: var(--crosta-white);
  background: var(--crosta-blue);
}

.fulfilment-options input:focus-visible + span {
  outline: 3px solid var(--crosta-red);
  outline-offset: 2px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.form-field > span {
  color: var(--crosta-blue);
  font-family: var(--display);
  font-size: 0.84rem;
  font-weight: 700;
}

.form-field small {
  font-family: var(--serif);
  font-size: 0.62rem;
  font-style: italic;
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 2px solid rgba(18, 52, 119, 0.58);
  border-radius: 0;
  color: var(--crosta-ink);
  background: white;
  font: inherit;
  /* 16px keeps iOS Safari from auto-zooming when a field is focused. */
  font-size: 16px;
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: var(--crosta-red);
  background: #fff4f0;
}

.form-field.is-invalid > span {
  color: var(--crosta-red);
}

.req {
  color: var(--crosta-red);
  font-weight: 700;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--crosta-blue);
  outline: 2px solid transparent;
}

.delivery-fields {
  margin: 4px 0 18px;
}

.saved-addresses {
  margin-bottom: 14px;
}

.saved-addresses[hidden] {
  display: none;
}

.saved-addresses-label {
  display: block;
  margin-bottom: 8px;
  color: var(--crosta-blue);
  font: 700 0.72rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.saved-address-chip {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--crosta-blue);
  background: var(--crosta-white);
}

.saved-address-chip.is-selected {
  outline: 2px solid var(--crosta-blue);
  outline-offset: 1px;
}

.saved-address-pick {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.saved-address-chip.is-selected .saved-address-pick {
  background: var(--crosta-blue);
}

.saved-address-pick strong {
  color: var(--crosta-blue);
  font: 700 0.82rem var(--display);
}

.saved-address-pick small {
  overflow: hidden;
  color: #66625c;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-address-chip.is-selected .saved-address-pick strong,
.saved-address-chip.is-selected .saved-address-pick small {
  color: var(--crosta-white);
}

.saved-address-remove {
  flex: 0 0 auto;
  width: 40px;
  border: 0;
  border-left: 2px solid var(--crosta-blue);
  color: var(--crosta-blue);
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.location-box {
  margin-bottom: 18px;
  padding: 15px;
  border: 2px solid var(--crosta-red);
}

.location-box strong {
  color: var(--crosta-red);
  font-family: var(--display);
  font-size: 1rem;
}

.location-box p {
  margin: 4px 0 12px;
  font-size: 0.7rem;
  line-height: 1.45;
}

.location-button {
  min-height: 46px;
  padding: 10px 13px;
  border: 2px solid var(--crosta-blue);
  color: var(--crosta-blue);
  background: transparent;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.location-button.is-complete {
  color: var(--crosta-white);
  background: #1f8a4c;
  border-color: #1f8a4c;
}

.location-status {
  min-height: 1em;
  color: var(--crosta-blue);
  font-family: var(--serif);
  font-style: italic;
}

.location-status.is-complete {
  color: #1f8a4c;
  font-weight: 700;
  font-style: normal;
  font-family: var(--display);
}

/* Keep "Create order" pinned so it's always reachable without scrolling. */
#checkoutForm .primary-action {
  position: sticky;
  bottom: 10px;
  margin-top: 8px;
  box-shadow:
    0 0 0 8px var(--crosta-white),
    0 10px 22px rgba(5, 13, 35, 0.2);
}

.form-error {
  min-height: 1.2em;
  margin: 0 0 10px;
  color: var(--crosta-red);
  font-family: var(--serif);
  font-size: 0.74rem;
  line-height: 1.4;
}

.confirmation-view {
  padding-top: 24px;
}

.confirmation-view h3 {
  margin: 7px 0 10px;
  color: var(--crosta-red);
  font-family: var(--brand);
  font-size: 1.75rem;
  font-weight: 400;
}

.confirmation-view > p:not(.order-kicker) {
  font-size: 0.78rem;
  line-height: 1.5;
}

.delivery-confirmation-notice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px 10px;
  margin: 16px 0;
  padding: 14px;
  border: 2px solid var(--crosta-red);
  background: #fff0e9;
}

.delivery-confirmation-notice[hidden] {
  display: none;
}

.delivery-confirmation-notice > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--crosta-white);
  background: var(--crosta-red);
  font: 700 0.72rem var(--display);
}

.delivery-confirmation-notice p {
  align-self: center;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.order-summary-toggle {
  margin-top: 14px;
}

.order-summary-toggle > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--crosta-blue);
  color: var(--crosta-blue);
  font: 700 0.8rem var(--display);
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.order-summary-toggle > summary::-webkit-details-marker {
  display: none;
}

.order-summary-chevron {
  width: 20px;
  height: 20px;
  transition: transform 200ms var(--ease-out);
}

.order-summary-toggle[open] > summary .order-summary-chevron {
  transform: rotate(180deg);
}

.order-message {
  max-height: 290px;
  margin: 10px 0 0;
  padding: 14px;
  overflow: auto;
  border: 2px solid var(--crosta-blue);
  color: var(--crosta-ink);
  background: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.whatsapp-action[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
}

.hand-button:active .hand-art {
  transform: scale(0.97);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 150px;
  z-index: 40;
  max-width: min(78vw, 260px);
  padding: 10px 16px;
  color: var(--crosta-white);
  background: var(--crosta-blue);
  border: 2px solid var(--crosta-white);
  box-shadow: 0 6px 18px rgba(13, 31, 69, 0.28);
  font-family: var(--serif);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 260ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

footer {
  padding: 0 0 32px;
  color: var(--crosta-white);
  background: var(--crosta-blue);
  text-align: center;
}

footer p {
  margin: 24px 0 0;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

footer .footer-serif {
  margin: 6px 20px 0;
  font-family: var(--serif);
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0;
}

@keyframes italian-hand {
  0% {
    transform: rotate(-8deg) translate3d(-3px, 9px, 0) scale(0.96);
  }
  22% {
    transform: rotate(5deg) translate3d(2px, -3px, 0) scale(1);
  }
  42% {
    transform: rotate(-3deg) translate3d(-1px, 1px, 0) scale(0.99);
  }
  61% {
    transform: rotate(3deg) translate3d(1px, -2px, 0) scale(1);
  }
  78% {
    transform: rotate(-1.5deg) translate3d(0, 1px, 0) scale(1);
  }
  100% {
    transform: rotate(0) translate3d(0, 0, 0) scale(1);
  }
}

@keyframes hand-wrist {
  0% {
    transform: scale(1.32) rotate(0deg) translate3d(0, 0, 0);
  }
  18% {
    transform: scale(1.32) rotate(-5deg) translate3d(-1px, 3px, 0);
  }
  38% {
    transform: scale(1.32) rotate(7deg) translate3d(2px, -4px, 0);
  }
  56% {
    transform: scale(1.32) rotate(-3.5deg) translate3d(-1px, 1px, 0);
  }
  73% {
    transform: scale(1.32) rotate(3deg) translate3d(1px, -2px, 0);
  }
  88% {
    transform: scale(1.32) rotate(-1deg) translate3d(0, 1px, 0);
  }
  100% {
    transform: scale(1.32) rotate(0deg) translate3d(0, 0, 0);
  }
}

@keyframes help-dot-trip {
  0%,
  14%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  20% {
    transform: translate3d(-12px, 10px, 0) scale(0.92);
  }
  27% {
    transform: translate3d(-25px, 12px, 0) scale(0.86);
  }
  34% {
    transform: translate3d(-12px, 10px, 0) scale(0.92);
  }
  42% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes icon-nod {
  0%,
  100% {
    transform: rotate(0) translateY(0);
  }
  45% {
    transform: rotate(-8deg) translateY(-2px);
  }
}

@keyframes menu-enter {
  from {
    opacity: 0.4;
    transform: translateY(14px);
    clip-path: inset(0 0 14% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0);
  }
}

@keyframes frame-open {
  from {
    opacity: 0;
    transform: translateY(10px) scaleY(0.9);
    clip-path: inset(0 0 100% 0 round 12px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    clip-path: inset(0 round 12px);
  }
}

@keyframes draw-dots {
  to {
    transform: scaleX(1);
  }
}

@media (min-width: 720px) {
  .brand-logo-frame {
    height: 160px;
  }

  .menu-stage {
    padding: 36px 24px 110px;
  }

  .section-heading {
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
  }

  .menu-groups,
  .ingredient-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(28px, 5vw, 70px);
  }

  .category-scroll {
    justify-content: center;
  }

  .hand-button {
    right: 26px;
    bottom: 18px;
  }

  .has-cart .hand-button {
    bottom: 82px;
  }

  .cart-button {
    right: 26px;
    bottom: 24px;
    left: 26px;
    max-width: 610px;
    margin-inline: auto;
  }

  .order-dialog {
    height: min(88dvh, 820px);
    margin: auto;
    border-radius: 14px;
  }

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

  .builder-total {
    padding-right: 94px;
  }
}

@media (min-width: 1040px) {
  .brand-lockup {
    padding-block: 10px 18px;
  }

  .section-heading p {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
