/* Haptech B2B widgets. Fonts come from the theme; accent + corner from CMS > Widgets. */
.hp-widget {
  --hp-accent: #303030;
  --hp-radius: 10px;
  --hp-line: #e3e3e3;
  --hp-muted: #6b6b6b;
  --hp-save-bg: #dff5e8;
  --hp-save-fg: #0c5132;
  box-sizing: border-box;
  margin: 16px 0;
  /* Theme font family, but our own size/weight: some themes set body to 10.5px / 300 and
     size their text with classes, which made the widget unreadable. */
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  line-height: 1.4;
}
.hp-widget *,
.hp-widget *::before,
.hp-widget *::after {
  box-sizing: border-box;
}
.hp-heading {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hp-save {
  flex: none;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--hp-save-bg);
  color: var(--hp-save-fg);
  font-size: 0.8em;
  font-weight: 700;
  white-space: nowrap;
}
.hp-widget s {
  color: var(--hp-muted);
  font-size: 0.85em;
}

/* Quantity break: cards */
.hp-qb-options {
  display: grid;
  gap: 8px;
}
.hp-qb-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 2px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.hp-qb-option:hover {
  border-color: #b5b5b5;
}
.hp-qb-option[aria-checked="true"] {
  border-color: var(--hp-accent);
}
.hp-qb-option:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 2px;
}
.hp-qb-option.has-badge {
  margin-top: 8px;
}
.hp-radio {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid #8a8a8a;
  border-radius: 50%;
}
.hp-qb-option[aria-checked="true"] .hp-radio {
  border: 5px solid var(--hp-accent);
}
.hp-qb-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hp-qb-title {
  font-weight: 700;
}
.hp-qb-sub {
  color: var(--hp-muted);
  font-size: 0.85em;
}
.hp-qb-price {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
}
.hp-qb-total {
  font-weight: 700;
}
.hp-badge {
  position: absolute;
  top: 0;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 2px 8px;
  overflow: hidden;
  transform: translateY(-50%);
  border-radius: 6px;
  background: var(--hp-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Quantity break: buttons */
.hp-qb--buttons .hp-qb-options {
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
}
.hp-qb--buttons .hp-qb-option {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  text-align: center;
}
.hp-qb--buttons .hp-qb-option[aria-checked="true"] {
  background: var(--hp-accent);
  color: #fff;
}
.hp-qb-qty {
  font-weight: 700;
}
.hp-qb-off {
  font-size: 0.85em;
}

/* Quantity break: table */
.hp-qb-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--hp-radius);
  font-size: 0.9em;
}
.hp-qb-table th,
.hp-qb-table td {
  padding: 8px 10px;
  text-align: left;
}
.hp-qb-table th {
  background: #f7f7f7;
  font-weight: 600;
}
.hp-qb-table td {
  border-top: 1px solid var(--hp-line);
}
.hp-qb-table tr.is-active td {
  font-weight: 700;
}

.hp-countdown {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff1e3;
  color: #5e4200;
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* Bundle */
.hp-bundle {
  padding: 14px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: #fff;
}
.hp-bundle-items {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.hp-bundle-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hp-bundle-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f2f4;
}
.hp-bundle-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-bundle-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hp-bundle-name a {
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-bundle-name a:hover {
  text-decoration: underline;
}
.hp-bundle-each {
  color: var(--hp-muted);
  font-size: 0.85em;
}
.hp-bundle-plus {
  padding-left: 22px;
  color: var(--hp-muted);
  font-weight: 700;
  line-height: 1;
}
.hp-bundle-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 700;
}
.hp-bundle-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-left: auto;
}
.hp-button {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--hp-radius);
  background: var(--hp-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.hp-button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.hp-button:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 2px;
}
.hp-bundle-status:not(:empty) {
  margin-top: 8px;
  color: #8e1f0b;
  font-size: 0.85em;
}

/* Bundle popup */
.hp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}
.hp-modal {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 12px;
  background: #fff;
}
.hp-modal .hp-bundle {
  margin: 0;
  padding-top: 20px;
  border: 0;
}
.hp-modal-close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* Cart progress */
.hp-progress {
  margin: 0 0 12px;
}
.hp-progress-text {
  margin-bottom: 6px;
  font-size: 0.9em;
}
.hp-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #ebebeb;
}
.hp-progress-bar span {
  display: block;
  height: 100%;
  background: var(--hp-accent);
  transition: width 0.3s ease;
}

/* Banner, price label, guest message */
.hp-banner {
  position: relative;
  font-size: 14px;
  padding: 10px 44px;
  background: var(--hp-accent, #303030);
  color: #fff;
  font-weight: 600;
  text-align: center;
}
.hp-banner-close {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}
.haptech-old-price {
  margin-right: 8px;
  color: #8a8a8a;
  font-size: 0.8em;
  font-weight: 400;
  text-decoration: line-through;
}
.hp-price-label {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f2f4;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}
.hp-guest a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}
/* "Log in to see wholesale prices" on every product card, where the price was */
.hp-guest--card {
  margin: 6px 0 2px;
  font-size: 13px;
  line-height: 1.35;
}
.hp-guest--card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f2f4;
  color: #303030;
  text-decoration: none;
}
.hp-guest--card a:hover {
  background: #e3e5e8;
}

@media (prefers-reduced-motion: reduce) {
  .hp-qb-option,
  .hp-progress-bar span {
    transition: none;
  }
}

/* ---------- Templates ---------- */
.hp-widget {
  --hp-tint: color-mix(in srgb, var(--hp-accent) 9%, #fff);
}
@supports not (background: color-mix(in srgb, red 50%, #fff)) {
  .hp-widget {
    --hp-tint: #f4f4f5;
  }
}

/* Heading with a rule on both sides: —— BUY MORE, SAVE MORE —— */
.hp-heading--lines {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.hp-heading--lines::before,
.hp-heading--lines::after {
  flex: 1;
  height: 1px;
  background: var(--hp-line);
  content: "";
}

.hp-qb-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.hp-qb-spacer {
  flex: 1;
}
.hp-badge--inline {
  position: static;
  flex: none;
  max-width: 12em;
  transform: none;
}
/* compact / soft: struck price under the total, so long prices ("$408.00 USD") fit */
.hp-qb-price--inline {
  gap: 0;
}
.hp-qb--compact .hp-qb-title,
.hp-qb--soft .hp-qb-title,
.hp-qb--cards .hp-qb-title,
.hp-qb--spotlight .hp-qb-title {
  white-space: nowrap;
}
.hp-qb--compact .hp-qb-option,
.hp-qb--soft .hp-qb-option {
  flex-wrap: wrap;
  row-gap: 4px;
}

/* Cards: the selected tier gets a light tint of the accent */
.hp-qb--cards .hp-qb-option[aria-checked="true"],
.hp-qb--spotlight .hp-qb-option[aria-checked="true"] {
  background: var(--hp-tint);
}

/* Spotlight: unselected tiers stay quiet, the chosen one stands out */
.hp-qb--spotlight .hp-qb-option {
  border-width: 1px;
  background: #fafafa;
}
.hp-qb--spotlight .hp-qb-option[aria-checked="true"] {
  border-width: 2px;
  padding-block: 14px;
}
.hp-qb-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--hp-radius);
  background: var(--hp-tint);
  font-size: 0.9em;
}

/* Soft: borderless rows, the chosen row is a tinted pill */
.hp-qb--soft .hp-qb-options {
  gap: 4px;
}
.hp-qb--soft .hp-qb-option {
  border-color: transparent;
  background: transparent;
}
.hp-qb--soft .hp-qb-option:hover {
  border-color: transparent;
  background: #f6f6f7;
}
.hp-qb--soft .hp-qb-option[aria-checked="true"] {
  border-color: transparent;
  background: var(--hp-tint);
}
.hp-qb--soft .hp-qb-option[aria-checked="true"] .hp-radio {
  border-color: var(--hp-accent);
}

/* Compact: one tight line per tier */
.hp-qb--compact .hp-qb-options {
  gap: 6px;
}
.hp-qb--compact .hp-qb-option {
  min-height: 40px;
  padding: 6px 10px;
  border-width: 1px;
}
.hp-qb--compact .hp-qb-option[aria-checked="true"] {
  box-shadow: inset 0 0 0 1px var(--hp-accent);
}

/* Tiles: side by side, everything centred */
.hp-qb--tiles .hp-qb-options {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.hp-qb--tiles .hp-qb-option {
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  padding: 12px 8px;
  text-align: center;
}
.hp-qb--tiles .hp-qb-option[aria-checked="true"] {
  background: var(--hp-tint);
}
.hp-qb--tiles .hp-qb-total {
  font-size: 1.1em;
}

/* Bundle: row = products side by side; compact = text only */
.hp-bundle--row .hp-bundle-items {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}
.hp-bundle--row .hp-bundle-item {
  flex: 1 1 0;
  flex-direction: column;
  min-width: 84px;
  text-align: center;
}
.hp-bundle--row .hp-bundle-thumb {
  width: 72px;
  height: 72px;
}
.hp-bundle--row .hp-bundle-name {
  align-items: center;
  max-width: 100%;
  font-size: 0.85em;
}
.hp-bundle--row .hp-bundle-plus {
  align-self: center;
  padding: 0;
  margin-top: -18px;
}
.hp-bundle--compact .hp-bundle-thumb {
  display: none;
}
.hp-bundle--compact .hp-bundle-plus {
  display: none;
}
.hp-bundle--compact .hp-bundle-item {
  padding: 6px 0;
  border-bottom: 1px dashed var(--hp-line);
}
.hp-bundle--compact .hp-bundle-name {
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

/* Per-unit variant picks under the tiers */
.hp-picks {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--hp-radius);
  background: var(--hp-tint);
}
.hp-picks-title {
  color: var(--hp-muted);
  font-size: 0.85em;
}
.hp-pick {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-pick-index {
  flex: none;
  min-width: 24px;
  color: var(--hp-muted);
  font-size: 0.85em;
  font-weight: 600;
}
.hp-pick-select {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 32px 0 10px;
  border: 1px solid #c9c9c9;
  border-radius: calc(var(--hp-radius) * 0.6);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23616161' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  color: inherit;
  font: inherit;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.hp-pick-select:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 1px;
}
.hp-picks-status:not(:empty) {
  margin-top: 6px;
  color: #8e1f0b;
  font-size: 0.85em;
}
.hp-bundle-item .hp-pick-select {
  height: 32px;
  margin-top: 4px;
  font-size: 13px;
}

/* ---------- Option pickers (swatches / buttons / dropdowns) ---------- */
.hp-vc {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.hp-vc > .hp-pick-select,
.hp-select {
  flex: 1 1 96px;
  min-width: 0;
}
.hp-select {
  position: relative;
  display: flex;
}
.hp-select .hp-pick-select {
  width: 100%;
}
.hp-select--dot .hp-pick-select {
  padding-left: 30px;
}
.hp-select-dot {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

/* colour swatches: dots in one framed group */
.hp-swatches {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px;
  border: 1px solid #d4d4d4;
  border-radius: calc(var(--hp-radius) * 0.6);
  background: #fff;
}
.hp-swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: calc(var(--hp-radius) * 0.5);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.hp-swatch--text {
  padding: 0 8px;
}
.hp-swatch[aria-checked="true"] {
  border-color: var(--hp-accent);
  box-shadow: inset 0 0 0 1px var(--hp-accent);
}
.hp-swatch-dot {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
}
.hp-swatch.is-unavailable::after,
.hp-pill.is-unavailable::after {
  position: absolute;
  inset: 50% 4px auto;
  height: 1px;
  transform: rotate(-35deg);
  background: #9a9a9a;
  content: "";
}
.hp-swatch:focus-visible,
.hp-pill:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 1px;
}

/* text buttons (S, M, L) */
.hp-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.hp-pill {
  position: relative;
  min-width: 36px;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #d4d4d4;
  border-radius: calc(var(--hp-radius) * 0.6);
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.hp-pill[aria-checked="true"] {
  border-color: var(--hp-accent);
  background: var(--hp-accent);
  color: #fff;
}
.hp-pill.is-unavailable {
  color: #9a9a9a;
}

/* bundle items: compact pickers under the name */
.hp-bundle-picker {
  display: flex;
  margin-top: 4px;
}
.hp-bundle-picker .hp-swatch {
  min-width: 26px;
  height: 26px;
}
.hp-bundle-picker .hp-swatch-dot {
  width: 16px;
  height: 16px;
}
.hp-bundle-picker .hp-pill {
  height: 28px;
  font-size: 12px;
}
.hp-bundle--row .hp-bundle-picker,
.hp-bundle--row .hp-vc {
  justify-content: center;
}

/* Picks opened inside the chosen tier: the button is the top half of the card, the
   panel the bottom half (same frame and background). */
.hp-qb-options {
  --hp-gap: 8px;
  gap: var(--hp-gap);
}
.hp-qb--soft .hp-qb-options {
  --hp-gap: 4px;
}
.hp-qb--compact .hp-qb-options {
  --hp-gap: 6px;
}
.hp-qb-option.has-picks {
  border-bottom-width: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.hp-picks--attached {
  margin-top: calc(-1 * var(--hp-gap));
  padding: 2px 12px 12px;
  border: 2px solid var(--hp-accent);
  border-top: 0;
  border-radius: 0 0 var(--hp-radius) var(--hp-radius);
  background: var(--hp-tint);
}
.hp-qb--compact .hp-picks--attached {
  border-width: 1px;
  background: #fff;
  box-shadow: inset 1px 0 0 var(--hp-accent), inset -1px 0 0 var(--hp-accent), inset 0 -1px 0 var(--hp-accent);
}
.hp-qb--compact .hp-qb-option.has-picks {
  box-shadow: inset 1px 0 0 var(--hp-accent), inset -1px 0 0 var(--hp-accent), inset 0 1px 0 var(--hp-accent);
}
.hp-qb--soft .hp-picks--attached {
  border: 0;
}
.hp-qb--spotlight .hp-picks--attached {
  padding-bottom: 14px;
}
.hp-picks--attached .hp-picks-title {
  padding-top: 2px;
}
.hp-bundle--compact .hp-bundle-name {
  flex-wrap: wrap;
}
.hp-bundle--compact .hp-bundle-picker {
  flex-basis: 100%;
}

/* ---------- Countdown (urgency bar) ---------- */
.hp-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: var(--hp-radius);
  background: var(--hp-tint);
  color: var(--hp-accent);
  font-size: 0.9em;
  font-weight: 600;
  text-align: center;
}
.hp-countdown-icon {
  display: inline-flex;
  flex: none;
}
.hp-countdown-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------- Bundle: per-item prices ---------- */
.hp-bundle-each {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.hp-bundle-each strong {
  color: var(--hp-text, inherit);
  font-weight: 600;
}
.hp-bundle-each s {
  font-size: 0.95em;
}
.hp-bundle-this {
  color: var(--hp-muted);
  font-size: 0.85em;
  font-weight: 400;
}
.hp-bundle--row .hp-bundle-each {
  justify-content: center;
}
.hp-bundle--compact .hp-bundle-each {
  margin-left: auto;
}

/* ---------- Cart progress ---------- */
.hp-progress {
  padding: 12px 14px 10px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: #fff;
}
.hp-progress-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.hp-progress-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hp-tint);
  color: var(--hp-accent);
}
.hp-progress.is-complete .hp-progress-icon {
  background: transparent;
  color: #1a7f4b;
}
.hp-progress-text {
  margin: 0;
  font-size: 0.95em;
}
.hp-progress-text strong {
  color: var(--hp-accent);
}
.hp-progress-track {
  position: relative;
  height: 8px;
  margin: 0 8px;
  border-radius: 999px;
  background: #ececec;
}
.hp-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--hp-accent);
  transition: width 0.4s ease;
}
.hp-progress.is-complete .hp-progress-fill {
  background: #1a7f4b;
}
.hp-progress-step {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border: 2px solid #d0d0d0;
  border-radius: 50%;
  background: #fff;
}
.hp-progress-step.is-done {
  border-color: var(--hp-accent);
  background: var(--hp-accent);
}
.hp-progress.is-complete .hp-progress-step.is-done {
  border-color: #1a7f4b;
  background: #1a7f4b;
}
.hp-progress-labels {
  position: relative;
  height: 32px;
  margin: 6px 8px 0;
}
.hp-progress-label {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  color: var(--hp-muted);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}
.hp-progress-label:last-child {
  align-items: flex-end;
  transform: translateX(-100%);
}
.hp-progress-label strong {
  color: inherit;
  font-size: 12px;
}
.hp-progress-label.is-done {
  color: var(--hp-accent);
}
@media (prefers-reduced-motion: reduce) {
  .hp-progress-fill {
    transition: none;
  }
}
/* bundle item: name column takes the free width so swatches + size stay on one line */
.hp-bundle--list .hp-bundle-name,
.hp-bundle--compact .hp-bundle-name {
  flex: 1;
}
.hp-bundle-picker .hp-vc {
  flex-wrap: wrap;
}
.hp-bundle-picker .hp-select {
  flex: 0 1 120px;
}

/* ---------- BOGO rows in the cart (virtual split) ---------- */
.hp-line-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}
.hp-line-free {
  background: #e8f7ef;
  color: #0c5132;
}
.hp-line-free strong {
  font-weight: 700;
}
.hp-line-extra-icon {
  display: inline-flex;
  flex: none;
}
.hp-line-extra-text {
  flex: 1 1 auto;
  min-width: 0;
}
.hp-line-extra-price {
  display: inline-flex;
  flex: none;
  align-items: baseline;
  gap: 6px;
  margin-left: auto;
}
.hp-line-extra-price s {
  color: #6b8f7c;
  font-size: 12px;
}
.hp-line-hint {
  border: 1px dashed #c9c9c9;
  background: #fafafa;
  color: #4a4a4a;
}
.hp-enter {
  animation: hp-row-in 0.22s ease-out;
}
@keyframes hp-row-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* "1 free item unlocked" toast */
.hp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 2147483000;
  margin: 0;
  padding: 10px 16px;
  transform: translate(-50%, 16px);
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.hp-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hp-enter {
    animation: none;
  }
  .hp-toast {
    transition: none;
  }
}

/* ---------- Free gift card ---------- */
.hp-gift {
  padding: 12px 14px;
  border: 1px dashed var(--hp-accent);
  border-radius: var(--hp-radius);
  background: var(--hp-tint);
}
.hp-gift.is-locked {
  border-color: #c9c9c9;
  background: #fafafa;
}
.hp-gift-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 10px;
}
.hp-gift-icon {
  display: inline-flex;
  color: var(--hp-accent);
}
.hp-gift-heading {
  font-weight: 700;
}
.hp-gift-status {
  margin-left: auto;
  color: var(--hp-muted);
  font-size: 0.85em;
}
.hp-gift:not(.is-locked) .hp-gift-status {
  color: #1a7f4b;
  font-weight: 600;
}
.hp-gift-tiles {
  display: grid;
  gap: 8px;
}
.hp-gift-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--hp-line);
  border-radius: calc(var(--hp-radius) * 0.8);
  background: #fff;
}
.hp-gift-tile.is-pickable {
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.hp-gift-tile.is-pickable:hover {
  border-color: #b5b5b5;
}
.hp-gift-tile.is-pickable.is-selected {
  border-color: var(--hp-accent);
  box-shadow: inset 0 0 0 1px var(--hp-accent);
}
.hp-gift-tile:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 2px;
}
.hp-gift.is-locked .hp-gift-tile {
  opacity: 0.7;
}
.hp-gift-free {
  position: absolute;
  top: -8px;
  left: 10px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #1a7f4b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hp-gift.is-locked .hp-gift-free {
  background: #8a8a8a;
}
.hp-gift-thumb {
  flex: none;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f2f4;
}
.hp-gift-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-gift-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hp-gift-title {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-gift-was {
  color: var(--hp-muted);
  font-size: 0.85em;
}
.hp-gift-picker {
  display: flex;
  margin-top: 4px;
}
.hp-gift-picker .hp-swatch {
  min-width: 26px;
  height: 26px;
}
.hp-gift-picker .hp-swatch-dot {
  width: 16px;
  height: 16px;
}
.hp-gift-picker .hp-pill {
  height: 28px;
  font-size: 12px;
}
.hp-gift-lines {
  margin: 12px 0;
}
.hp-gift-lines .hp-gift {
  margin: 0 0 10px;
}

/* ---------- Gift milestones ---------- */
.hp-gift-progress {
  margin: 0 0 12px;
}
.hp-gift-progress-text {
  margin-bottom: 8px;
  font-size: 0.92em;
}
.hp-gift-progress-text strong {
  color: var(--hp-accent);
}
.hp-gift-progress .hp-progress-track {
  margin: 0 7px;
}
.hp-gift-level + .hp-gift-level {
  margin-top: 12px;
}
.hp-gift-level-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.9em;
  font-weight: 600;
}
.hp-gift-level-icon {
  display: inline-flex;
  color: var(--hp-muted);
}
.hp-gift-level.is-reached .hp-gift-level-icon {
  color: #1a7f4b;
}
.hp-gift-level-note {
  padding: 1px 6px;
  border-radius: 6px;
  background: #fff;
  color: var(--hp-muted);
  font-size: 11px;
  font-weight: 600;
}
.hp-gift-level-note.is-done {
  margin-left: auto;
  background: #e8f7ef;
  color: #0c5132;
}
.hp-gift-level.is-locked .hp-gift-tile {
  opacity: 0.6;
  filter: grayscale(0.4);
}
.hp-gift-level.is-locked .hp-gift-free {
  background: #8a8a8a;
}
.hp-gift--levels.is-locked {
  border-color: var(--hp-accent);
  background: var(--hp-tint);
}

/* cross-product BOGO: "You earned 1 × Cap free  [Add]" */
.hp-line-earned {
  border-style: solid;
  border-color: #b7e4c9;
  background: #e8f7ef;
  color: #0c5132;
}
.hp-line-add {
  flex: none;
  margin-left: auto;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: #1a7f4b;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.hp-line-add:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* cross-product BOGO card */
.hp-cross .hp-button {
  margin-top: 10px;
}
.hp-cross-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.hp-cross-price strong {
  color: #1a7f4b;
}

/* Free gift "grid" layout: tiles side by side, image on top */
.hp-gift--grid .hp-gift-tiles {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.hp-gift--grid .hp-gift-tile {
  flex-direction: column;
  align-items: stretch;
  padding: 18px 10px 10px;
  text-align: center;
}
.hp-gift--grid .hp-gift-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.hp-gift--grid .hp-gift-info {
  align-items: center;
}
.hp-gift--grid .hp-gift-title {
  white-space: normal;
}
.hp-gift--grid .hp-gift-picker {
  justify-content: center;
}
.hp-gift--grid .hp-gift-picker .hp-vc {
  justify-content: center;
}
