.popup {
  max-width: 640px;
}

.pn-hero--menu .pn-hero-inner {
  gap: 1.25rem;
  padding-block: 128px 3rem;
}

.pn-hero--menu .pn-lead {
  gap: 0.75rem;
}

.pn-hero--menu .pn-dates {
  flex-wrap: wrap;
  row-gap: 8px;
}

.popup-main {
  min-width: 0;
}

.popup [hidden],
[hidden].popup-banner {
  display: none;
}

.popup h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.popup .pn-lead h1 {
  margin: 0;
}

.popup h1.pn-bubble {
  margin: 0 0 22px;
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.popup-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 14px 0 6px;
  background: #f2f2f7;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.3);
}

.popup-banner img {
  border-radius: 9px;
}

.popup-banner-close {
  width: 32px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 20px;
  color: #636366;
  cursor: pointer;
}

.popup-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 16px;
  color: #636366;
}

.popup-banner-text strong {
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
}

.popup-banner-open {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ember-deep);
  text-decoration: none;
}

.popup-quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.popup-steps {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.popup-steps li {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  background: rgba(243, 233, 210, 0.22);
}

.popup-steps li.is-on {
  background: var(--ember);
}

.popup-skip,
.popup-neither {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: #d6cab4;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.popup-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 108px;
  padding: 4px 16px;
  border: 0;
  border-radius: 14px;
  background: #f3e9d2;
  color: #1a1614;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.popup-choice:hover {
  background: #fbf3df;
}

.popup-choice img {
  width: 66px;
  height: 100px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.popup-choice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: #6f5545;
}

.popup-choice-text strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  color: #1a1614;
}

.popup-or {
  margin: 6px 0;
  font-size: 13px;
  color: #b8a98f;
}

.popup-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.popup-row {
  border-bottom: 1px solid rgba(243, 233, 210, 0.12);
}

.popup-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 7px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.popup-row-static {
  cursor: default;
}

.popup-chevron {
  display: none;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-right: 2px solid #b8a98f;
  border-bottom: 2px solid #b8a98f;
  transform: rotate(45deg);
}

.popup-js .popup-chevron {
  display: block;
}

.popup-row-main[aria-expanded='true'] .popup-chevron {
  transform: rotate(225deg);
}

.popup-row-flavor {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 12px;
}

.popup-row-flavor[hidden] {
  display: none;
}

.popup-legend {
  display: flex;
  gap: 16px;
  margin: 2px 0 0;
  font-size: 13px;
  color: #c9bca5;
}

.popup-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.popup-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.popup-order-head.has-taste {
  display: flex;
  align-items: center;
  gap: 4px;
}

.popup-order-head.has-taste .popup-order-title {
  flex: 0 0 auto;
  width: clamp(104px, 34%, 240px);
}

.popup-order-head.has-taste h1 {
  margin: 0;
  font-size: clamp(29px, 7.4vw, 44px);
}

.popup-taste-caption {
  margin: 6px 0 0;
  font-size: 13px;
  color: #c9bca5;
}

.popup-taste {
  flex: 1;
  min-width: 0;
}

.popup-taste svg {
  display: block;
  width: 100%;
  max-width: 232px;
  height: auto;
  margin: 0 auto;
}

.popup-taste[hidden],
.popup-taste-caption[hidden] {
  display: none;
}

.popup-chart {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.popup-row img {
  box-sizing: border-box;
  width: 40px;
  height: 52px;
  padding: 4px 3px;
  border-radius: 8px;
  background: #f3e9d2;
  object-fit: contain;
}

.popup-rank {
  width: 18px;
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  color: var(--gold);
}

.popup-row:first-child .popup-rank {
  color: #ff8a5c;
}

.popup-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 13px;
  line-height: 18px;
  color: #c9bca5;
}

.popup-row-main:not(.popup-row-static)[aria-expanded='false'] .popup-row-text span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.popup-row-text strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  line-height: 21px;
  color: #f3e9d2;
}

.popup-price {
  font-size: 15px;
  color: #e4dac6;
}

.popup-after {
  max-width: 640px;
  padding-block: 2.5rem 3.5rem;
}

.popup .popup-menu-title {
  margin: 0 0 4px;
  font-family: inherit;
}

@media (min-width: 900px) {
  .popup {
    max-width: none;
  }

  .pn-hero--menu .pn-hero-inner {
    grid-template-areas:
      'lead panel'
      'main panel';
    grid-template-rows: auto 1fr;
    row-gap: 1.25rem;
    padding-block: 112px 5rem;
  }

  .pn-hero--menu .pn-scene {
    height: min(100%, 780px);
  }

  .pn-hero--menu .pn-lead {
    grid-area: lead;
  }

  .pn-hero--menu .popup-main {
    grid-area: main;
  }

  .pn-hero--menu .pn-panel {
    grid-area: panel;
    position: sticky;
    top: 104px;
  }

  .popup h1.pn-bubble {
    margin-bottom: 16px;
    padding: 0.75rem 1.25rem 0.9rem;
    font-size: 2rem;
  }

  .popup-after {
    max-width: none;
  }
}

@media (max-width: 899px) and (max-height: 760px) {
  .pn-hero--menu .pn-scene {
    height: 120px;
  }

  .pn-hero--menu .pn-hero-inner {
    padding-top: 100px;
  }
}
