.a10-specials {
  --specials-accent: #005e53;
  --specials-ink: #263b34;
  --specials-copy: #41554e;
  --specials-rule: #d7e5dc;
  --specials-gap: 13px;
  margin-block-start: clamp(14px, 1.45vw, 21px);
}

.a10-specials-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 8px;
  padding-inline: 3px;
}

.a10-specials-head h2 {
  min-width: 0;
  color: var(--specials-ink);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 610;
  line-height: 1.2;
  letter-spacing: -.024em;
}

.a10-specials-track {
  display: grid;
  grid-auto-columns: calc(100% - clamp(29px, 10vw, 43px));
  grid-auto-flow: column;
  gap: var(--specials-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-color: #a7c7ba transparent;
  scrollbar-width: thin;
}

.a10-specials-track:focus-visible {
  outline: 2px solid var(--specials-accent);
  outline-offset: 3px;
  border-radius: 22px;
}

.a10-specials[data-overflow="true"] .a10-specials-track {
  scrollbar-width: none;
}

.a10-specials[data-specials="1"] .a10-specials-track {
  grid-auto-columns: 100%;
}

.a10-specials-card {
  container-type: inline-size;
  min-width: 0;
  overflow-wrap: anywhere;
  scroll-snap-align: start;
  border: 1px solid var(--specials-rule);
  border-radius: 22px;
  background: #fff;
  color: var(--specials-ink);
}

.a10-specials-card[data-tone="mint"] {
  background: #e8f3ed;
}

.a10-specials-card[data-tone="sand"] {
  border-color: #e7e1d3;
  background: #f3efe5;
}

.a10-offer-layout {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  gap: 9px;
  height: 100%;
  padding: clamp(13px, 4.65cqw, 23px);
}

.a10-offer-summary {
  display: flex;
  align-items: start;
  gap: clamp(8px, 3cqw, 18px);
  width: 100%;
}

.a10-offer-message {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.a10-offer-name h3 {
  font-size: clamp(19px, 5.3cqw, 26px);
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -.031em;
  text-wrap: pretty;
}

.a10-specials-card:not(:has(.a10-offer-action)) .a10-offer-layout {
  justify-content: center;
}

.a10-specials-card:not(:has(.a10-offer-art, .a10-offer-metric)) .a10-offer-name h3 {
  font-size: clamp(22px, 6.35cqw, 30px);
}

.a10-offer-terms,
.a10-offer-metric span {
  color: var(--specials-copy);
  font-size: 15px;
  line-height: 1.34;
}

.a10-offer-metric {
  display: grid;
  gap: 2px;
  justify-items: start;
}

.a10-offer-metric strong {
  color: var(--specials-accent);
  font-size: clamp(26px, 7.4cqw, 36px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.038em;
  font-variant-numeric: tabular-nums;
}

.a10-offer-art {
  flex: 0 0 auto;
  align-self: center;
  width: clamp(52px, 23cqw, 108px);
  height: auto;
}

.a10-offer-sample {
  display: block;
  margin-bottom: 5px;
  color: #56675f;
  font-size: 13px;
  font-weight: 620;
}

.a10-offer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #c6d9cd;
  border-radius: 99px;
  background: #fff;
  color: var(--specials-accent);
  font-size: 14px;
  font-weight: 640;
  line-height: 1.28;
  text-align: center;
}

.a10-offer-action:hover {
  background: #f3f8f5;
}

.a10-offer-action .icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.a10-specials-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: var(--specials-copy);
}

.a10-specials-controls[hidden] {
  display: none;
}

.a10-specials-controls button {
  width: 44px;
  height: 44px;
  border-color: #c6d9cd;
  background: #fff;
  color: var(--specials-accent);
}

.a10-specials-controls button[aria-disabled="true"] {
  background: #f1f5f2;
  color: #7a8a82;
  cursor: default;
}

.a10-specials-controls output {
  min-width: 46px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 600px) {
  .a10-specials-track {
    grid-auto-columns: calc((100% - var(--specials-gap)) / 2);
  }
}

@media (min-width: 1000px) {
  .a10-specials-track {
    grid-auto-columns: calc((100% - 2 * var(--specials-gap)) / 3);
  }

  .a10-specials[data-specials="2"] .a10-specials-track {
    grid-auto-columns: calc((100% - var(--specials-gap)) / 2);
  }
}

@container (width < 515px) {
  .a10-offer-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    row-gap: 5px;
  }

  .a10-offer-summary:not(:has(.a10-offer-art)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .a10-offer-message {
    display: contents;
  }

  .a10-offer-name,
  .a10-offer-metric {
    grid-column: 1;
  }

  .a10-offer-terms {
    grid-column: 1 / -1;
  }

  .a10-offer-art {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 86px;
  }

  .a10-offer-summary:not(:has(.a10-offer-metric)) .a10-offer-art {
    grid-row: 1;
  }
}

@container (min-width: 515px) {
  .a10-offer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(12px, 3cqw, 38px);
    padding-block: 14px;
  }

  .a10-offer-layout:not(:has(.a10-offer-action)) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container (min-width: 760px) {
  .a10-offer-layout {
    padding: 13px clamp(18px, 3.2cqw, 42px);
  }

  .a10-offer-summary {
    flex-direction: row-reverse;
    align-items: center;
  }

  .a10-offer-message {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px clamp(18px, 3cqw, 42px);
  }

  .a10-offer-name,
  .a10-offer-terms {
    grid-column: 1;
  }

  .a10-offer-metric {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding-inline-start: clamp(16px, 2cqw, 28px);
    border-inline-start: 1px solid var(--specials-rule);
  }
}

@media (max-width: 599px) {
  .a10-specials {
    --specials-gap: 9px;
  }

  .a10-specials-card {
    border-radius: 18px;
  }

  .a10-specials-rail {
    position: relative;
  }

  .a10-specials[data-overflow="true"]:has(.a10-specials-controls button:last-child[aria-disabled="false"]) .a10-specials-rail:not(:focus-within)::after {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 12px;
    background: linear-gradient(90deg, transparent, #f2f2f1);
    pointer-events: none;
    content: "";
  }
}
