:root {
  --dock-h: 4.75rem;
  --moss: #2a6b52;
}

.price__panel[hidden] {
  display: none;
}

.price input {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
}

.price {
  padding-top: clamp(2.2rem, 6vh, 4.2rem);
}

.price__pair {
  padding-bottom: 0.4rem;
}

.flash {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 2rem);
  margin: 0;
  padding: 0.15rem 0.35rem;
  transform: translateX(-50%);
  background: rgba(244, 247, 245, 0.9);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
}

.flash[hidden] {
  display: none;
}

.price.is-away .flash {
  bottom: calc(var(--dock-h) + 1.4rem + env(safe-area-inset-bottom, 0px));
}

.flash .is-up {
  color: var(--sand);
}

.flash .is-down {
  color: var(--moss);
}

.flash__sep {
  margin: 0 0.4rem;
  color: var(--ink-soft);
}

.price__pair strong.is-up,
.dock strong.is-up {
  color: var(--sand);
  animation: price-pulse 0.7s ease;
}

.price__pair strong.is-down,
.dock strong.is-down {
  color: var(--moss);
  animation: price-pulse 0.7s ease;
}

@keyframes price-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  max-width: 36rem;
  margin: 2.2rem auto 0;
}

.path button {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.25;
}

.path button:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0.32rem;
  left: calc(50% + 0.85rem);
  width: calc(100% - 1.7rem);
  height: 1px;
  background: rgba(26, 51, 44, 0.2);
}

.path button.is-done:not(:last-child)::before {
  background: var(--lake);
}

.path__drop {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid rgba(26, 51, 44, 0.35);
  border-radius: 50%;
  background: #eef6f4;
}

.path button.is-done .path__drop,
.path button.is-on .path__drop {
  border-color: var(--lake);
  background: var(--lake);
}

.path button.is-on .path__drop {
  box-shadow: 0 0 0 5px rgba(47, 134, 163, 0.18);
}

.path button.is-on {
  color: var(--ink);
}

.qty-scene {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.6rem, 5vw, 3.6rem);
  max-width: 34rem;
  margin: 3rem auto 0;
}

.qty-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.qty {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 1;
}

.qty input {
  width: 3.2ch;
  margin: 0;
  padding: 0;
  text-align: center;
}

.qty button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  font-size: 0.7em;
  color: var(--ink-soft);
}

.qty button:disabled {
  opacity: 0.28;
  cursor: default;
}

.qty__bottle {
  width: clamp(8.5rem, 22vw, 13.5rem);
  height: auto;
  flex: none;
}

.qty__note,
.order__hint,
.order__pay,
.order__when > span,
.slots button {
  color: var(--ink-soft);
}

.qty__note {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  text-align: left;
}

.paths {
  align-items: flex-start;
  gap: clamp(1.4rem, 4vw, 3.2rem);
  max-width: 46rem;
  margin: 2.8rem auto 2.8rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(26, 51, 44, 0.12);
}

.paths button {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 15rem;
  padding: 0.35rem 0.4rem 0.2rem;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 1rem;
  text-align: center;
}

.paths__price {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
}

.paths__name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
}

.paths button .paths__note {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.35;
}

.paths [data-path="balance"] {
  color: rgba(26, 51, 44, 0.72);
}

.paths button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.paths button[aria-pressed="true"] .paths__name {
  box-shadow: inset 0 -1px 0 currentColor;
}

.paths [data-path="cheap"][aria-pressed="true"] {
  color: var(--sand);
}

.paths [data-path="balance"][aria-pressed="true"] {
  color: var(--ink);
}

.paths [data-path="ideal"][aria-pressed="true"] {
  color: var(--lake);
}

.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 20rem));
  justify-content: center;
  gap: 2.4rem 3.6rem;
  max-width: 72rem;
  margin: 0 auto;
  text-align: left;
}

.options__group h3 {
  margin: 0 0 0.35rem;
  padding-bottom: 0.55rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 rgba(26, 51, 44, 0.12);
}

.options__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.15rem 0.2rem;
  min-height: 2.75rem;
  margin-top: 0;
  padding: 0.65rem 0;
  box-shadow: inset 0 -1px 0 rgba(26, 51, 44, 0.12);
}

.options__item.is-on {
  margin-inline: -0.7rem;
  padding-inline: 0.7rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(26, 51, 44, 0.1);
}

.options__item.is-on .options__name {
  color: var(--ink);
}

.options__main {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
  color: var(--ink-soft);
  text-align: left;
}

.options__item.is-on .options__main {
  color: var(--ink);
}

.options__main:hover {
  color: var(--ink);
}

.options__icon {
  color: var(--lake);
  font-size: 0.95rem;
  text-align: center;
}

.options__name {
  min-width: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.options__price {
  color: var(--lake);
  white-space: nowrap;
}

.options__item.is-on .options__price {
  color: var(--ink);
}

.options__help {
  color: var(--lake);
  font-size: 0.95rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.35rem;
}

.options__tip {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0.2rem 1.7rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.options__tip[hidden] {
  display: none;
}

.options__count {
  width: 3ch;
  margin-left: 0.45rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
}

.order {
  display: grid;
  grid-template-columns: minmax(16rem, 28rem) minmax(7rem, 12rem);
  gap: 2.5rem 3rem;
  align-items: end;
  justify-content: center;
  max-width: 48rem;
  margin: 2.4rem auto 0;
  text-align: left;
}

.order__still {
  align-self: start;
  color: var(--ink);
}

.order__still img {
  display: block;
  width: 100%;
  height: auto;
}

.order__pick > span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.order__pick ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.order__pick li,
.order__pick li.order__pick-opt {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.order__pick li + li {
  margin-top: 0.12rem;
}

.order__pick p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.order label,
.order__when {
  display: block;
  margin-top: 1.55rem;
}

.order label:first-child {
  margin-top: 0;
}

.order label span,
.order__when > span {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.order input {
  width: 100%;
  margin: 0;
  padding: 0.35rem 0 0.4rem;
  border-bottom: 1px solid rgba(26, 51, 44, 0.22);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  text-align: left;
}

.order input::placeholder {
  color: rgba(26, 51, 44, 0.32);
}

.order input:focus {
  border-bottom-color: var(--ink);
}

.order__hint {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
}

.slots {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  transition: grid-template-rows 0.5s ease, margin-top 0.5s ease;
}

.slots[hidden] {
  display: none;
}

.slots.is-open {
  grid-template-rows: 1fr;
  margin-top: 0.75rem;
}

.slots__clip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
  min-height: 0;
  overflow: hidden;
}

@keyframes slot-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.slots.is-reveal.is-open .slots__clip > button {
  animation: slot-in 0.45s ease both;
}

.slots.is-reveal.is-open .slots__clip > button:nth-child(1) { animation-delay: 0.04s; }
.slots.is-reveal.is-open .slots__clip > button:nth-child(2) { animation-delay: 0.08s; }
.slots.is-reveal.is-open .slots__clip > button:nth-child(3) { animation-delay: 0.12s; }
.slots.is-reveal.is-open .slots__clip > button:nth-child(4) { animation-delay: 0.16s; }
.slots.is-reveal.is-open .slots__clip > button:nth-child(5) { animation-delay: 0.2s; }
.slots.is-reveal.is-open .slots__clip > button:nth-child(6) { animation-delay: 0.24s; }
.slots.is-reveal.is-open .slots__clip > button:nth-child(7) { animation-delay: 0.28s; }
.slots.is-reveal.is-open .slots__clip > button:nth-child(8) { animation-delay: 0.32s; }
.slots.is-reveal.is-open .slots__clip > button:nth-child(9) { animation-delay: 0.36s; }
.slots.is-reveal.is-open .slots__clip > button:nth-child(10) { animation-delay: 0.4s; }

.slots button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.48rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.slots button:hover,
.slots button:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.slots button:focus-visible {
  outline: 1px solid rgba(47, 134, 163, 0.45);
  outline-offset: 2px;
}

.slots button[aria-pressed="true"] {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--lake);
  color: var(--ink);
}

.slots button[aria-pressed="true"] .slots__when::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--lake);
  transform: translateY(-0.08em);
}

.slots__when {
  min-width: 0;
}

.slots__fee {
  flex: none;
  color: var(--lake);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.slots__fee.is-free {
  color: var(--ink-soft);
}

.slots button[aria-pressed="true"] .slots__fee {
  color: var(--ink);
}

.order__pay {
  margin: 1.6rem 0 0;
  font-size: 0.95rem;
}

.order__go,
.price__next {
  display: inline-block;
  font-family: "Source Serif 4", Georgia, serif;
  border-bottom: 1px solid currentColor;
}

.order__go {
  margin-top: 1.8rem;
  padding: 0.9rem 1.7rem;
  border-bottom: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.order__go:hover {
  background: #24483e;
}

.order__go:active {
  transform: translateY(1px);
}

.order__go:disabled {
  opacity: 0.45;
  cursor: default;
}

.order__status {
  margin: 1rem 0 0;
}

.top--plain {
  position: relative;
  padding-bottom: 0;
}

.top--plain::before {
  content: none;
}

.done-page {
  min-height: 100svh;
  background:
    radial-gradient(ellipse 42% 55% at 28% 42%, rgba(47, 134, 163, 0.16), transparent 70%),
    radial-gradient(ellipse 36% 48% at 74% 58%, rgba(165, 107, 69, 0.12), transparent 72%),
    linear-gradient(180deg, var(--paper), #e7f3f4 42%, #f7f4ef);
}

.done {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) var(--space) 4.5rem;
  text-align: center;
}

.done h1 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.done__lead,
.done__note {
  margin: 1.15rem auto 0;
  max-width: 62rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.5;
}

.done .price__pair {
  margin-top: 2.6rem;
}

.done__facts {
  max-width: 62rem;
  margin: 2.6rem auto 0;
  text-align: left;
}

.done__facts div + div {
  margin-top: 1.35rem;
}

.done__facts dt {
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.done__facts dd {
  margin: 0.15rem 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
}

.done__facts dd.is-id {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: var(--ink-soft);
  word-break: break-all;
}

.done__lines {
  max-width: 62rem;
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.done__lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  color: var(--ink-soft);
}

.done__lines .is-minus strong {
  color: var(--lake);
}

.done__back {
  display: inline-block;
  margin-top: 2.6rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  border-bottom: 1px solid currentColor;
}

.done__back:focus-visible {
  outline: 1px solid rgba(47, 134, 163, 0.45);
  outline-offset: 3px;
}

.price__next {
  margin-top: 2.4rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.price__next[hidden] {
  display: none;
}

.path button:focus-visible,
.qty button:focus-visible,
.qty input:focus-visible,
.paths button:focus-visible,
.price__next:focus-visible,
.options button:focus-visible,
.options__help:focus-visible,
.order input:focus-visible,
.order__go:focus-visible,
.slots button:focus-visible,
.top a:focus-visible,
.hero__order:focus-visible {
  outline: 2px solid var(--lake);
  outline-offset: 3px;
}

.dock {
  position: fixed;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 8vw, 5rem);
  padding: 0.75rem 1.2rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(26, 51, 44, 0.1);
  background: rgba(244, 247, 245, 0.94);
  transform: translateY(110%);
  transition: transform 0.35s ease;
  pointer-events: none;
}

.dock.is-on {
  transform: none;
}

.dock p {
  margin: 0;
}

.dock strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.dock__later strong {
  color: var(--lake);
}

.dock span {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

body:has(.dock.is-on) {
  padding-bottom: var(--dock-h);
}

@media (max-width: 860px) {
  .options {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }

  .order {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .order__still {
    order: -1;
    width: 7rem;
  }
}

@media (max-width: 720px) {
  .qty-scene {
    flex-direction: column;
    gap: 0.4rem;
  }

  .qty-copy {
    align-items: center;
  }

  .qty {
    gap: 1.2rem;
  }

  .qty__note {
    text-align: center;
  }

  .path button {
    font-size: 0.86rem;
  }

  .flash {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock,
  .slots {
    transition: none;
  }

  .slots.is-reveal.is-open .slots__clip > button {
    animation: none;
  }

  .slots button {
    transition: none;
  }

  .price__pair strong.is-up,
  .price__pair strong.is-down,
  .dock strong.is-up,
  .dock strong.is-down {
    animation: none;
  }
}
