/* Keep unconfigured restaurants and legacy palettes on their existing layout. */
.menu-hero-copy > p:last-child {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  margin: 22px 0 0;
}

:is([data-menu-theme="clean"], [data-menu-theme="modern"], [data-menu-theme="fresh"]) :is(.menu-hero h1, .menu-category h2, .customer-empty h2) {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
}

:is([data-menu-theme="clean"], [data-menu-theme="modern"], [data-menu-theme="fresh"], [data-menu-theme="luxury"]) .menu-grid {
  gap: 20px;
  padding-top: 20px;
}

:is([data-menu-theme="clean"], [data-menu-theme="modern"], [data-menu-theme="fresh"], [data-menu-theme="luxury"]) .customer-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

[data-menu-theme="warm"] :is(.menu-hero h1, .menu-category h2) {
  font-family: Georgia, "Times New Roman", var(--font);
  font-weight: 500;
}

[data-menu-theme="warm"] :is(.customer-item-image, .item-image-placeholder, .menu-controls) {
  border-radius: 10px;
}

[data-menu-theme="modern"] .customer-item {
  border-radius: 12px;
}

[data-menu-theme="modern"] :is(.menu-category h2, .customer-item h3) {
  font-weight: 900;
}

[data-menu-theme="luxury"] :is(.menu-hero h1, .menu-category h2) {
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", var(--font);
  font-weight: 400;
}

[data-menu-theme="luxury"] :is(.customer-item, .menu-controls, .customer-item-image, .item-image-placeholder) {
  border-radius: 5px;
}

[data-menu-theme="luxury"] .add-cart-button {
  border-radius: 5px;
}

[data-menu-theme="fresh"] .customer-item {
  border-radius: 26px;
}

[data-menu-theme="fresh"] :is(.customer-item-image, .item-image-placeholder) {
  border-radius: 18px;
}

.customer-page .menu-hero--cover {
  border: 1px solid var(--line);
  border-radius: 24px;
  isolation: isolate;
  margin-bottom: 28px;
  max-width: none;
  min-height: 320px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  position: relative;
  display: flex;
  align-items: center;
}

.menu-cover-photo {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.menu-hero--cover::before {
  background: #000;
  content: "";
  inset: 0;
  opacity: var(--cover-opacity, .75);
  position: absolute;
  z-index: -1;
}

.menu-hero--cover .menu-hero-copy {
  max-width: 720px;
}

.customer-page .menu-hero--cover :is(h1, p, .eyebrow) {
  color: #fff;
}

.menu-hero--cover[data-cover-overlay="light"]::before {
  background: #fff;
}

.customer-page .menu-hero--cover[data-cover-overlay="light"] :is(h1, p, .eyebrow) {
  color: #20242b;
}

@media (max-width: 600px) {
  .customer-page .menu-hero--cover {
    border-radius: 18px;
    min-height: 280px;
    padding: 26px 22px;
  }

  .menu-hero--cover h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
    overflow-wrap: anywhere;
  }
}
