:root {
  --muted: #5f6570;
  --line: #d9dde4;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  --header-nav-offset: 30%;

  position: relative;
  min-height: 100vh;
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-text);
  line-height: 1.25;
}

.order-page,
.order-page * {
  font-family: var(--font-text, "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.order-page h1,
.order-page h2,
.order-page h3,
.order-page .toppiez-heading {
  font-family: var(--font-text, "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-weight: 600;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

svg,
img {
  display: block;
}

.order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
}

h1 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1;
}

.order-header p,
.section-heading p,
.muted {
  margin-top: 7px;
  color: var(--muted);
  font-size: 1rem;
}

.order-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fbf2f3;
}

.order-card::before {
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  content: "";
  background: #fbf2f3;
  pointer-events: none;
}

.order-card + .order-card {
  margin-top: 12px;
}

.order-card-body {
  padding: clamp(26px, 3vw, 42px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 8px;
}

.section-heading h2 {
  color: #08090b;
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  font-weight: 700;
  line-height: 1.1;
}

.section-separator {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  pointer-events: none;
}

.section-separator__bar {
  height: 4px;
}

.section-separator__bar--white {
  background: #fff;
}

.section-separator__bar--pink {
  background: #fbf2f3;
}

.pack-showcase {
  --pack-gap: clamp(16px, 2.4vw, 40px);

  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  gap: var(--pack-gap);
  justify-content: center;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding:
    clamp(36px, 4.2vw, 64px)
    max(var(--page-gutter, clamp(22px, 4.9vw, 58px)), calc((100vw - var(--page-max-width, 1460px)) / 2 + var(--page-gutter, clamp(22px, 4.9vw, 58px))))
    clamp(36px, 4.2vw, 64px);
  background: #fff;
}

.pack-pair {
  display: block;
  flex: 0 1 calc((100% - (4 * var(--pack-gap))) / 5);
  color: inherit;
  text-decoration: none;
}

.pack-pair:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 8px;
  border-radius: 8px;
}

.pack-sticker {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(10px 16px 16px rgb(8 9 11 / 16%));
  user-select: none;
  -webkit-user-drag: none;
}

.tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff8ee;
  color: var(--ink);
  font-size: 0.95rem;
}

.quantity-grid + .tip {
  margin-top: 18px;
}

.tip img {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.order-selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  grid-template-areas:
    "plan-heading summary-heading"
    "plan summary"
    "quantity-heading summary"
    "quantity summary";
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 0;
  align-items: stretch;
}

.order-plan-heading {
  grid-area: plan-heading;
}

.order-card-body h3.selection-summary-heading {
  grid-area: summary-heading;
  align-self: end;
  margin: 0 0 8px;
  color: #08090b;
  font-family: var(--font-text, "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif);
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
}

.order-plan-heading,
.order-quantity-heading {
  min-width: 0;
}

.plan-grid {
  grid-area: plan;
}

.order-quantity-heading {
  grid-area: quantity-heading;
}

.quantity-grid {
  grid-area: quantity;
}

.selection-summary-card {
  position: sticky;
  top: 24px;
  grid-area: summary;
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  height: 100%;
  min-height: 396px;
  overflow: hidden;
  border: 2px solid #e4e6eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgb(8 9 11 / 6%);
  padding-bottom: 0;
}

.selection-summary-content {
  align-self: stretch;
  height: 100%;
  padding-top: 16px;
}

.selection-summary-card[data-contact-sales="true"] .selection-summary-content {
  display: flex;
  flex-direction: column;
}

.selection-summary-image {
  margin: 0 auto 14px;
  padding: 0 20px;
  width: 100%;
  object-fit: contain;
}

.selection-summary-contact-image {
  width: 30%;
  margin: auto auto;
  object-fit: contain;
}

.selection-summary-card[data-contact-sales="true"] dl,
.selection-summary-card[data-contact-sales="true"] .selection-summary-total,
.selection-summary-card[data-contact-sales="true"] .selection-summary-content > #selection-summary-shipping-row {
  display: none;
}

.selection-summary-custom-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 8px 24px 0;
  list-style: none;
}

.selection-summary-custom-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: #08090b;
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 600;
  line-height: 1.18;
}

.selection-summary-custom-list li::before {
  color: var(--hot);
  font-size: 1.22em;
  font-weight: 700;
  line-height: 1;
  content: "\2713";
}

.selection-summary-card dl {
  display: grid;
  margin: 0;
  padding: 0 24px;
}

.selection-summary-card dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 54px;
  border-top: 1px solid #e8eaee;
}

.selection-summary-content > #selection-summary-shipping-row {
  display: grid;
  gap: 16px;
  align-items: center;
  min-height: 54px;
  margin: 0 24px;
  border-top: 1px solid #e8eaee;
}

.selection-summary-card dt,
.selection-summary-card dd {
  margin: 0;
  color: #4f5661;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.15;
}

.selection-summary-card dt strong {
  color: #25a96f;
  font-weight: 700;
}

.selection-summary-card dd {
  color: #707781;
  text-align: right;
  white-space: nowrap;
}

.selection-summary-card dd small {
  font-size: 0.74rem;
  font-weight: 700;
}

.selection-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  margin: 0 24px;
  padding: 0;
  border-top: 1px solid #e8eaee;
  color: #08090b;
  font-weight: 700;
}

.selection-summary-total > span {
  display: grid;
  gap: 4px;
}

.selection-summary-total > span small {
  max-width: 145px;
  color: #707781;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
}

.selection-summary-total strong {
  color: var(--hot);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.selection-summary-total small {
  font-size: 0.8rem;
  font-weight: 800;
}

.selection-summary-checkout {
  align-self: end;
  min-height: 46px;
  width: calc(100% - 48px);
  margin: 0 24px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.selection-summary-checkout:hover,
.selection-summary-checkout:focus-visible {
  background: var(--hot-hover);
  transform: translateY(-1px);
}

.plan-grid,
.quantity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.option-card,
.quantity-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 18px 18px;
  border: 2px solid #e4e6eb;
  border-radius: 9px;
  background: #fff;
  color: #08090b;
  text-align: center;
  box-shadow: 0 1px 4px rgb(8 9 11 / 4%);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.option-card {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  align-items: center;
  column-gap: 14px;
  row-gap: 0;
  text-align: left;
}

.option-card[data-mode="subscription"] {
  min-height: 86px;
  padding: 18px;
}

.option-card[data-mode="subscription"] .radio {
  display: none;
}

.option-card[data-mode="one-time"] .radio {
  display: none;
}

.option-card.selected,
.quantity-card.selected {
  border-color: var(--hot);
  background: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--hot) 8%, transparent);
}

.option-card:hover,
.option-card:focus-visible,
.quantity-card:hover,
.quantity-card:focus-visible {
  border-color: color-mix(in srgb, var(--hot) 60%, #e4e6eb);
  box-shadow: 0 8px 20px rgb(8 9 11 / 8%);
  transform: translateY(-1px);
}

.radio {
  position: absolute;
  top: 26px;
  left: 26px;
  width: 18px;
  height: 18px;
  border: 2px solid #c9cdd4;
  border-radius: 50%;
}

.selected .radio {
  border-color: var(--hot);
}

.selected .radio::after {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  content: "";
  background: var(--hot);
}

.option-card b,
.quantity-card b {
  display: block;
  margin: 0 0 6px;
  color: #08090b;
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  font-weight: 600;
  line-height: 1;
}

.option-card b {
  grid-column: 2;
}

.option-card-copy {
  display: grid;
  grid-column: 2;
  gap: 8px;
  align-self: center;
}

.option-card-copy b,
.option-card-copy small {
  grid-column: auto;
}

.option-card small,
.quantity-card small {
  display: block;
  /*grid-column: 2;*/
  color: var(--muted);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 500;
  line-height: 1.2;
}

.option-card-icon {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: auto;
  height: 100%;
  max-height: 83px;
  object-fit: contain;
}

.plan-display-image,
.check {
  display: none;
}

.popular {
  position: absolute;
  top: -13px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
}

.check::before,
.savings::before {
  margin-right: 9px;
  color: var(--success);
  content: "\2713";
}

.order-card h3 {
  margin: 28px 0 0;
  color: #08090b;
  font-family: var(--font-text, "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif);
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  font-weight: 700;
  line-height: 1.1;
}

.quantity-heading {
  margin-top: 0;
}

.quantity-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.quantity-card {
  min-height: 126px;
  padding: 24px 16px 20px;
}

.quantity-card b {
  margin-bottom: 16px;
  font-size: clamp(1.15rem, 1.6vw, 1.52rem);
  line-height: 1.08;
  font-weight: 600;
}

.quantity-card small {
  display: block;
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.quantity-card .radio {
  display: none;
}

.quantity-pack-image {
  display: none;
}

.quantity-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 112px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--hot);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.quantity-feature {
  display: none;
}

.quantity-feature::before {
  margin-right: 10px;
  color: var(--success);
  font-weight: 600;
  content: "\2713";
}

.mix-table {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.mix-table-head,
.mix-row,
.mix-total-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 0.8fr) minmax(120px, 0.45fr);
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}

.mix-table-head {
  color: #3e444d;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.mix-row + .mix-row,
.mix-total-row {
  border-top: 1px solid var(--color-border);
}

.mix-design {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mix-design img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
}

.counter-control {
  display: inline-grid;
  grid-template-columns: 56px 64px 56px;
  width: max-content;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 9px;
}

.counter-control button,
.counter-control span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  background: #fff;
  font-weight: 700;
}

.counter-control span {
  border-inline: 1px solid var(--color-border);
}

.counter-control button:disabled {
  color: #c7ccd4;
  cursor: not-allowed;
}

.mix-sticker-count {
  color: var(--muted);
  font-weight: 600;
}

.mix-total-row {
  background: #fff;
}

#mix-status {
  justify-self: stretch;
  padding: 12px 16px;
  border-radius: 7px;
  background: #effaf4;
  color: var(--success);
  font-weight: 600;
}

#mix-status.is-warning {
  background: #fff8ee;
  color: #9c5a00;
}

.savings {
  margin-top: 8px;
  color: var(--success);
}

.savings.is-warning {
  color: #9c5a00;
}

.add-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  border: 0;
  border-radius: 7px;
  background: var(--hot);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 600;
  transform: translateY(0);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.add-cart-button:hover,
.add-cart-button:focus-visible {
  background: var(--hot-hover);
  transform: translateY(-2px);
}

.selection-summary-card .selection-summary-checkout {
  width: calc(100% - 48px);
  min-height: 46px;
  margin: 0 24px 16px;
  border-radius: 999px;
}

.selection-summary-card .selection-summary-checkout:hover,
.selection-summary-card .selection-summary-checkout:focus-visible {
  transform: translateY(-1px);
}

.add-cart-button:active {
  transform: translateY(0);
}

.add-cart-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.add-cart-button:hover svg,
.add-cart-button:focus-visible svg {
  transform: translateX(3px);
}

@media (max-width: 1500px) {
  .order-card-body {
    /*padding-inline: clamp(24px, 3vw, 36px);*/
  }

  .order-selection-layout {
    grid-template-columns: minmax(0, 1fr) minmax(248px, 300px);
    column-gap: clamp(24px, 3vw, 36px);
  }

  .quantity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 980px) {
  .order-selection-layout {
    grid-template-columns: minmax(0, 1fr) minmax(232px, 280px);
    column-gap: 24px;
  }

  .order-card-body {
    padding: 24px 0;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .option-card,
  .option-card[data-mode="subscription"] {
    min-height: 78px;
    padding: 14px 16px;
  }

  .option-card-icon {
    max-height: 64px;
  }

  .quantity-grid {
    margin-top: 10px;
  }

  .quantity-card {
    min-height: 108px;
    padding: 20px 12px 16px;
  }
}

@media (max-width: 860px) {
  .order-header {
    grid-template-columns: 1fr;
  }

  .order-header {
    display: grid;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .pack-showcase {
    --pack-gap: 12px;
  }

  .pack-pair {
    flex-basis: calc((100% - (2 * var(--pack-gap))) / 3);
  }

  .order-selection-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "plan-heading"
      "plan"
      "quantity-heading"
      "quantity"
      "summary-heading"
      "summary";
    row-gap: 0;
  }

  .order-card-body h3.selection-summary-heading {
    width: min(100%, 420px);
    margin: 20px auto 4px;
    text-align: left;
  }

  .selection-summary-card {
    position: static;
    align-self: start;
    height: auto;
    width: min(100%, 420px);
    margin-top: 10px;
    margin-inline: auto;
  }

  .quantity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mix-table-head {
    display: none;
  }

  .mix-row,
  .mix-total-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .counter-control {
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .order-card-body {
    padding: 20px 0;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .quantity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .selection-summary-card {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .order-card-body {
    padding: 18px 0;
  }

  .quantity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pack-showcase {
    --pack-gap: 8px;
  }

  .pack-pair {
    flex-basis: calc((100% - var(--pack-gap)) / 2);
  }

  .option-card,
  .option-card[data-mode="subscription"] {
    min-height: 76px;
    padding: 14px;
  }

  .quantity-card {
    min-height: 112px;
    padding: 20px 10px 16px;
  }
}

@media (max-width: 500px) {
  .order-header {
    gap: 14px;
    margin-bottom: 22px;
  }

  .order-header h1 {
    font-size: clamp(1.65rem, 8vw, 2.05rem);
  }

  .order-card-body {
    padding: 16px 0;
  }

  .quantity-card {
    min-height: 104px;
  }

  .order-quantity-heading .muted {
    margin-bottom: 16px;
  }

  .quantity-badge {
    min-width: 88px;
    padding: 6px 10px;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .next-button,
  .back-button,
  .add-cart-button {
    width: 100%;
    justify-content: center;
  }

  .option-card b,
  .quantity-card b {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .quantity-card small {
    font-size: 0.95rem;
  }
}
