.restock-page {
  --restock-ink: #183328;
  --restock-paper: #f7f4ee;
  --restock-line: rgba(24, 51, 40, .2);
  --restock-accent: #a4463e;
  background: #fff;
  color: var(--restock-ink);
}

.restock-intro {
  border-bottom: 1px solid var(--restock-line);
  background: var(--restock-paper);
}

.restock-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 64px;
  align-items: end;
  padding-block: 54px 42px;
}

.restock-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--restock-accent);
  font-size: .78rem;
  font-weight: 800;
}

.restock-intro h1 {
  max-width: 720px;
  font-size: clamp(3rem, 5.7vw, 5.6rem);
  line-height: .91;
}

.restock-intro p {
  max-width: 35rem;
  color: #53635b;
  font-size: 1rem;
  line-height: 1.65;
}

.restock-builder {
  padding: 42px 0 64px;
}

.restock-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  gap: 42px;
  align-items: start;
}

.restock-layout fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.restock-layout legend {
  width: 100%;
  color: var(--restock-ink);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
}

.restock-layout legend span,
.restock-selection > span,
.restock-email-field > label {
  display: block;
  margin-bottom: 6px;
  color: var(--restock-accent);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 800;
}

.restock-field-help {
  max-width: 58ch;
  margin: 10px 0 20px;
  color: #66726c;
  font-size: .88rem;
  line-height: 1.55;
}

.restock-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.restock-product-option {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 22px;
  min-height: 116px;
  overflow: hidden;
  border: 1px solid var(--restock-line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.restock-product-option:hover {
  border-color: rgba(24, 51, 40, .48);
}

.restock-product-option.is-selected {
  border-color: var(--restock-ink);
  box-shadow: inset 0 0 0 1px var(--restock-ink);
}

.restock-product-option input,
.restock-goal-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.restock-product-option img {
  width: 92px;
  height: 116px;
  object-fit: cover;
  background: var(--restock-paper);
}

.restock-product-copy {
  align-self: center;
  min-width: 0;
  padding: 14px 10px 14px 14px;
}

.restock-product-copy strong,
.restock-product-copy span,
.restock-product-copy small {
  display: block;
}

.restock-product-copy strong {
  color: var(--restock-ink);
  font-size: .88rem;
  line-height: 1.22;
}

.restock-product-copy span {
  margin-top: 7px;
  color: #52635b;
  font-size: .73rem;
}

.restock-product-copy small {
  margin-top: 5px;
  color: var(--restock-accent);
  font-size: .68rem;
  font-weight: 800;
}

.restock-radio-mark {
  align-self: center;
  width: 18px;
  height: 18px;
  border: 1px solid #7b8982;
  border-radius: 50%;
}

.is-selected .restock-radio-mark {
  border: 5px solid var(--restock-accent);
}

.restock-line-option {
  grid-column: 1 / -1;
  grid-template-columns: 92px minmax(0, 1fr) 22px;
  min-height: 92px;
  background: var(--restock-ink);
  color: #fff;
}

.restock-line-option .restock-line-mark {
  display: grid;
  place-items: center;
  width: 92px;
  height: 100%;
  background: #d6b775;
  color: var(--restock-ink);
  font-family: var(--font-display);
  font-size: 2.35rem;
}

.restock-line-option .restock-product-copy strong,
.restock-line-option .restock-product-copy span {
  color: #fff;
}

.restock-line-option .restock-product-copy small {
  color: #ecd8a8;
}

.restock-line-option .restock-radio-mark {
  border-color: rgba(255, 255, 255, .72);
}

.restock-details {
  position: sticky;
  top: var(--header-offset, 130px);
  padding: 24px;
  border: 1px solid var(--restock-line);
  border-radius: 4px;
  background: var(--restock-paper);
}

.restock-selection {
  margin: -24px -24px 24px;
  padding: 20px 24px;
  background: var(--restock-ink);
  color: #fff;
}

.restock-selection > span {
  color: #d9bd7d;
}

.restock-selection strong,
.restock-selection small {
  display: block;
}

.restock-selection strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.05;
}

.restock-selection small {
  margin-top: 8px;
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
}

.restock-goal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.restock-goal-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--restock-line);
  border-radius: 3px;
  background: #fff;
  color: var(--restock-ink);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 750;
}

.restock-goal-option.is-selected {
  border-color: var(--restock-accent);
  background: #fff7f5;
  color: #7c302a;
  box-shadow: inset 3px 0 var(--restock-accent);
}

.restock-email-field {
  margin-top: 22px;
}

.restock-email-field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--restock-line);
  border-radius: 3px;
  background: #fff;
  padding: 12px 14px;
  color: var(--restock-ink);
}

.restock-email-field input:focus,
.restock-product-option:focus-within,
.restock-goal-option:focus-within,
.restock-consent:focus-within {
  outline: 3px solid rgba(164, 70, 62, .22);
  outline-offset: 2px;
}

.restock-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 16px;
  color: #53635b;
  font-size: .76rem;
  line-height: 1.45;
}

.restock-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--restock-accent);
}

.restock-consent a {
  color: var(--restock-ink);
  text-decoration: underline;
}

.restock-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
}

.restock-status {
  margin-top: 9px;
  color: #66726c;
  font-size: .72rem;
  text-align: center;
}

.restock-success {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #a9c09d;
  background: #f4f8f0;
}

.restock-success:not([hidden]) {
  display: grid;
}

.restock-success > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #31512d;
  color: #fff;
  font-weight: 900;
}

.restock-success strong {
  color: #294728;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.restock-success p {
  margin-top: 4px;
  color: #486346;
  font-size: .78rem;
  line-height: 1.45;
}

.restock-assurance {
  border-top: 1px solid var(--restock-line);
  background: var(--restock-ink);
  color: #fff;
}

.restock-assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.restock-assurance-grid > div {
  min-height: 150px;
  padding: 30px;
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.restock-assurance-grid > div:last-child {
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.restock-assurance-grid b {
  color: #e1c88d;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.restock-assurance-grid p {
  margin-top: 8px;
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .restock-intro-inner,
  .restock-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .restock-intro-inner {
    align-items: start;
  }

  .restock-details {
    position: static;
  }
}

@media (max-width: 640px) {
  .restock-intro-inner {
    gap: 16px;
    padding-block: 34px 28px;
  }

  .restock-intro h1 {
    font-size: 3rem;
  }

  .restock-builder {
    padding: 30px 0 44px;
  }

  .restock-layout legend {
    font-size: 1.7rem;
  }

  .restock-product-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 3px 16px 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .restock-product-option,
  .restock-line-option {
    flex: 0 0 78%;
    grid-template-columns: 84px minmax(0, 1fr) 22px;
    scroll-snap-align: center;
  }

  .restock-product-option img,
  .restock-line-option .restock-line-mark {
    width: 84px;
  }

  .restock-details {
    padding: 20px 16px;
  }

  .restock-selection {
    margin: -20px -16px 22px;
    padding: 18px 16px;
  }

  .restock-goal-grid {
    grid-template-columns: 1fr;
  }

  .restock-assurance-grid {
    grid-template-columns: 1fr;
  }

  .restock-assurance-grid > div {
    min-height: 0;
    padding: 24px 20px;
    border-right: 1px solid rgba(255, 255, 255, .16);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .restock-product-grid {
    scroll-behavior: auto;
  }
}
