.natal.natal-cookie-pilot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cookie-page {
  flex: 1;
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 18px 54px;
}

.cookie-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}

.cookie-back:hover { text-decoration: underline; }
.cookie-back svg { width: 17px; height: 17px; transform: scaleX(-1); }

.cookie-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-block-start: 12px;
}

.cookie-layout > * { min-width: 0; }

.cookie-gallery { position: relative; min-width: 0; }
.cookie-gallery-note { display: none; color: var(--muted); font-size: .82rem; }
.cookie-gallery-stage { position: relative; }
.cookie-photos {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  border-radius: 18px;
}
.js-ready .cookie-photos { scrollbar-width: none; }
.js-ready .cookie-photos::-webkit-scrollbar { display: none; }

.cookie-photo {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: var(--cream);
  aspect-ratio: 1.2;
  scroll-snap-align: start;
}

.cookie-photo img {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.natal .cookie-gallery-arrows { inset-inline: 12px; }
.cookie-gallery-counter {
  position: absolute;
  inset: 14px 14px auto auto;
  min-width: 42px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--pine);
  font-size: .76rem;
  font-weight: 900;
  text-align: center;
}
.cookie-dots {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
  min-height: 28px;
  margin: -36px auto 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper);
}
.cookie-dots button { flex: 0 0 6px; width: 6px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--pine); }
.cookie-dots button::before { content: ""; display: block; width: 6px; height: 6px; margin: auto; border-radius: 50%; background: var(--muted); }
.cookie-dots button.is-active::before { width: 8px; height: 8px; background: var(--wine); }
.cookie-dots button.is-small::before { width: 3px; height: 3px; }
.cookie-dots button:focus-visible { outline: 2px solid var(--wine); outline-offset: -1px; }

.cookie-info { min-width: 0; }

.cookie-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 12px;
  color: var(--wine);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cookie-eyebrow svg { width: 17px; height: 17px; }

.cookie-heading h1 {
  max-width: 16ch;
  color: var(--pine);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.cookie-description {
  max-width: 44ch;
  margin-block-start: 14px;
  font-size: 1rem;
  line-height: 1.55;
}

.cookie-gift-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-block-start: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--pine);
  background: var(--pine-light);
  font-size: .88rem;
  line-height: 1.45;
}

.cookie-gift-note svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--wine); }

.cookie-form { display: grid; gap: 18px; margin-block-start: 24px; }

.cookie-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.cookie-options legend { margin-block-end: 10px; color: var(--pine); font-size: 1.05rem; font-weight: 900; }

.cookie-option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.cookie-option { position: relative; min-width: 0; cursor: pointer; }

.cookie-option-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 82px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--pine);
  background: var(--paper);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.cookie-option-card img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--cream);
}

.cookie-option-copy { display: grid; gap: 5px; min-width: 0; }
.cookie-option-copy strong { font-size: .84rem; line-height: 1.2; }
.cookie-option-copy small { color: var(--muted); font-size: .77rem; }

.cookie-option-mark {
  width: 18px;
  height: 18px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.cookie-option:has(input:checked) .cookie-option-card {
  border-color: var(--wine);
  background: var(--pine-light);
  box-shadow: 0 0 0 1px var(--wine);
}

.cookie-option:has(input:checked) .cookie-option-mark {
  border: 5px solid var(--wine);
  background: var(--paper);
}

.cookie-option:has(input:focus-visible) .cookie-option-card {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

.cookie-selected {
  padding: 14px 16px;
  border-inline-start: 3px solid var(--wine);
  border-radius: 0 10px 10px 0;
  background: var(--pine-light);
}

.cookie-selected > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cookie-selected h2 { margin-block: 5px 6px; color: var(--pine); font-size: 1.08rem; line-height: 1.25; }
.cookie-selected p { font-size: .86rem; line-height: 1.45; }

.cookie-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block-start: 15px;
  border-top: 1px solid var(--line);
}

.cookie-order-price { display: grid; gap: 2px; flex: 0 0 auto; }
.cookie-order-price small { color: var(--muted); font-size: .75rem; }
.cookie-order-price strong { color: var(--pine); font-size: 1.35rem; white-space: nowrap; }

.natal .cookie-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.cookie-order-button svg { width: 19px; height: 19px; }
.cookie-extra { margin-block-start: 22px; border-top: 1px solid var(--line); }
.cookie-extra summary { display: flex; align-items: center; gap: 8px; min-height: 46px; color: var(--pine); font-weight: 800; list-style: none; }
.cookie-extra summary::-webkit-details-marker { display: none; }
.cookie-extra summary svg:first-child { width: 18px; height: 18px; }
.cookie-extra summary svg:last-child { width: 16px; height: 16px; margin-inline-start: auto; }
.cookie-extra[open] summary svg:last-child { transform: rotate(180deg); }
.cookie-extra p { padding-block-end: 12px; font-size: .88rem; }

@media (min-width: 940px) {
  .cookie-gallery-stage {
    width: 480px;
    height: 480px;
    margin-inline: auto;
  }
  .cookie-photos {
    width: 480px;
    height: 480px;
    margin-inline: auto;
  }
  .cookie-photo {
    flex: 0 0 480px;
    width: 480px;
    height: 480px;
    aspect-ratio: 1;
  }
  .cookie-photo img {
    display: block;
    width: auto;
    height: 480px;
    max-width: none;
    max-height: none;
  }
}

@media (min-width: 960px) {
  .cookie-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
    gap: clamp(30px, 4vw, 64px);
  }
  .cookie-gallery { position: sticky; top: 18px; }
}

@media (max-width: 759px) {
  .natal.natal-cookie-pilot { padding-block-end: 96px; }
  .cookie-page { width: 100%; padding-block: 8px 112px; }
  .cookie-back { margin-inline: 16px; }
  .cookie-layout { gap: 16px; margin-block-start: 8px; }
  .cookie-gallery { width: 100%; }
  .cookie-photos { aspect-ratio: auto; border-radius: 0; }
  .cookie-photo { aspect-ratio: 1; }
  .cookie-photo img { padding: 14px; }
  .cookie-gallery-counter { inset: 22px 22px auto auto; }
  .cookie-zoom { right: 24px; bottom: 24px; }
  .cookie-gallery-note { display: block; margin: 5px 18px 0; text-align: center; }
  .cookie-info { padding-inline: 18px; }
  .cookie-heading h1 { max-width: 18ch; font-size: clamp(2rem, 9vw, 2.65rem); }
  .cookie-description { margin-block-start: 10px; font-size: .94rem; }
  .cookie-gift-note { margin-block-start: 13px; }
  .cookie-form { gap: 15px; margin-block-start: 20px; }
  .cookie-option-list {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 3px 2px 9px;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cookie-option-list::-webkit-scrollbar { display: none; }
  .cookie-option { flex: 0 0 min(82%, 300px); scroll-snap-align: start; }
  .cookie-option-card { min-height: 82px; }
  .cookie-order {
    position: fixed;
    z-index: 30;
    inset: auto 0 0;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--paper);
  }
  .cookie-order-price strong { font-size: 1.12rem; }
  .natal .cookie-order-button { flex: 1; min-height: 50px; padding: 10px 12px; }
  .cookie-extra { margin-block-start: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-option-card, .cookie-photo { transition: none; }
}

.cookie-product .cookie-layout {
  grid-template-areas: "heading" "photos" "info";
}

.cookie-product .cookie-heading { grid-area: heading; }
.cookie-product .cookie-gallery { grid-area: photos; }
.cookie-product .cookie-info { grid-area: info; }
.cookie-product .cookie-heading h1 { max-width: 19ch; overflow-wrap: anywhere; }
.cookie-product .cookie-description { max-width: 58ch; }
.cookie-product .cookie-form { margin-block-start: 16px; }
.cookie-product .cookie-info > .cookie-gift-note { margin-block-start: 0; }
.cookie-product .cookie-option-card--text { grid-template-columns: minmax(0, 1fr) 18px; }
.cookie-product .cookie-dots button { width: 24px; flex-basis: 24px; }
.cookie-product .cookie-extra li { margin-block: 8px; }
.cookie-gallery-empty { padding: 28px; border-radius: 12px; background: var(--cream); }

.cookie-flavors {
  display: grid;
  gap: 8px;
  color: var(--pine);
  font-weight: 900;
}

.cookie-flavors select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--pine);
  background: var(--paper);
  font: inherit;
}

.cookie-flavors select:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.cookie-flavors[hidden], body:not(.js-ready) .cookie-product :is(.cookie-flavors, .cookie-interactive) { display: none; }
.cookie-product--corporate .cookie-gift-note { background: var(--cream); }
.cookie-product--corporate .cookie-photo { background: var(--paper); }

@media (min-width: 940px) {
  .cookie-product .cookie-gallery-stage { width: min(100%, 480px); height: auto; }
  .cookie-product--kit .cookie-gallery-stage { width: min(100%, 540px); }
  .cookie-product .cookie-photos { width: 100%; height: auto; }
  .cookie-product .cookie-photo { flex-basis: 100%; width: 100%; height: auto; }
  .cookie-product .cookie-photo img { width: 100%; height: 100%; }
}

@media (min-width: 960px) {
  .cookie-product .cookie-layout {
    grid-template-areas: "photos heading" "photos info";
    grid-template-rows: auto 1fr;
    row-gap: 18px;
  }
}

@media (max-width: 759px) {
  .cookie-product .cookie-heading { padding-inline: 18px; }
  .cookie-product .cookie-option-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    padding: 2px;
  }
  .cookie-product .cookie-option-card { min-height: 64px; }
  .cookie-product .cookie-photo { aspect-ratio: 1.15; }
  .cookie-product--kit .cookie-photo { aspect-ratio: 1; }
}
