:root {
  /* Retuned to the shop palette (2026-07-28): the modal spoke its own
     green-tinted dialect — near-black CTA, sage lines — while every other
     surface runs navy ink with one flat action green. */
  --hfpm-ink: #122b4c;
  --hfpm-muted: #59616b;
  --hfpm-line: #dfe3ea;
  --hfpm-surface: #ffffff;
  --hfpm-soft: #eef2f7;
  --hfpm-green: #2f9e44;
  --hfpm-green-2: #28893b;
  --hfpm-gold: #a9834f;
  --hfpm-error: #a33a32;
  --hfpm-shadow: 0 28px 80px rgba(21, 31, 25, 0.2);
  --hfpm-font: var(--hfh-font, "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

html.hfpm-open,
html.hfpm-open body {
  overflow: hidden;
}

.hfpm[hidden] {
  display: none !important;
}

.hfpm,
.hfpm * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.hfpm {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--hfpm-ink);
  font-family: var(--hfpm-font);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.hfpm.is-open {
  opacity: 1;
  visibility: visible;
}

.hfpm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 25, 21, 0.46);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.hfpm__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  width: min(1180px, calc(100vw - 48px));
  height: min(720px, calc(100vh - 64px));
  min-height: 600px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: var(--hfpm-surface);
  box-shadow: var(--hfpm-shadow);
  outline: none;
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  transition: opacity 200ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hfpm.is-open .hfpm__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hfpm__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--hfpm-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--hfpm-ink);
  font: 400 23px/1 var(--hfpm-font);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.hfpm__close:hover,
.hfpm__close:focus-visible {
  border-color: var(--hfpm-green);
  background: var(--hfpm-soft);
  outline: none;
  transform: scale(1.04);
}

.hfpm.is-busy .hfpm__close {
  opacity: 0.45;
  cursor: wait;
}

.hfpm__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #d9ddd8;
  isolation: isolate;
}

.hfpm__hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  background: #d9ddd8;
  transform: scale(1.002);
  transition: opacity 180ms ease, transform 260ms ease;
}

.hfpm__hero-image.is-loading {
  opacity: 0.68;
  transform: scale(1.012);
}

.hfpm__media-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 3px;
  width: min(230px, calc(100% - 36px));
  min-height: 100px;
  align-content: center;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(25, 31, 27, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hfpm__media-card strong {
  overflow: hidden;
  color: var(--hfpm-ink);
  font-family: var(--hfpm-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hfpm__media-card span {
  overflow: hidden;
  color: var(--hfpm-muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hfpm__media-card span:last-child {
  margin-top: 5px;
  color: var(--hfpm-ink);
  font-weight: 700;
}

.hfpm__content {
  min-width: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  background: var(--hfpm-surface);
}

.hfpm__view {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 48px 38px 24px;
}

.hfpm__heading > span {
  display: block;
  margin-bottom: 10px;
  color: var(--hfpm-gold);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.hfpm__heading h2,
.hfpm__status-head h2 {
  margin: 0;
  color: var(--hfpm-ink);
  font-family: var(--hfpm-font);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.08;
}

.hfpm__heading h2 em {
  color: var(--hfpm-green);
  font-weight: 400;
}

.hfpm__heading p,
.hfpm__status-head p {
  max-width: 540px;
  margin: 8px 0 0;
  color: var(--hfpm-muted);
  font-size: 12px;
  line-height: 1.6;
}

.hfpm__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hfpm__option {
  position: relative;
  display: grid;
  grid-template-rows: 104px auto;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--hfpm-line);
  border-radius: 6px;
  background: var(--hfpm-surface);
  color: var(--hfpm-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hfpm__option:hover,
.hfpm__option:focus-visible {
  border-color: #aab6ad;
  box-shadow: 0 8px 22px rgba(25, 46, 34, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.hfpm__option.is-selected {
  border-color: var(--hfpm-green-2);
  box-shadow: 0 0 0 2px rgba(36, 88, 63, 0.12), 0 8px 22px rgba(25, 46, 34, 0.1);
}

.hfpm__option img {
  display: block;
  width: 100%;
  height: 104px;
  object-fit: cover;
  background: var(--hfpm-soft);
  transition: transform 180ms ease;
}

.hfpm__option > span {
  display: grid;
  gap: 3px;
  min-height: 64px;
  align-content: center;
  padding: 10px 12px;
}

.hfpm__option strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.hfpm__option small {
  color: var(--hfpm-muted);
  font-size: 11px;
  line-height: 1.3;
}

.hfpm__option i {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hfpm-green);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 160ms ease, transform 160ms ease;
}

.hfpm__option.is-selected i {
  opacity: 1;
  transform: scale(1);
}

.hfpm__error,
.hfpm__notify-message {
  margin-top: 12px;
  color: var(--hfpm-error);
  font-size: 12px;
  line-height: 1.45;
}

.hfpm__order-row {
  display: grid;
  grid-template-columns: 130px minmax(100px, 1fr) minmax(180px, 1.2fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 18px;
}

.hfpm__quantity-wrap {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
}


.hfpm__quantity {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  height: 50px;
  overflow: hidden;
  border: 1px solid var(--hfpm-line);
  border-radius: 6px;
}

.hfpm__quantity button {
  border: 0;
  background: var(--hfpm-surface);
  color: var(--hfpm-ink);
  font-size: 18px;
  cursor: pointer;
}

.hfpm__quantity button:disabled {
  background: var(--hfpm-soft);
  color: #a8aea9;
  cursor: not-allowed;
}

.hfpm__quantity button:hover,
.hfpm__quantity button:focus-visible {
  background: var(--hfpm-soft);
  outline: none;
}

.hfpm__quantity output {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--hfpm-line);
  border-left: 1px solid var(--hfpm-line);
  font-size: 13px;
  font-weight: 700;
}

.hfpm__total {
  display: grid;
  min-width: 0;
  align-content: center;
  padding: 0 14px;
  border: 1px solid var(--hfpm-line);
  border-radius: 6px;
}

.hfpm__total span,
.hfpm__checkout span {
  color: var(--hfpm-muted);
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hfpm__total strong {
  overflow: hidden;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hfpm__add,
.hfpm__notify button,
.hfpm__continue,
.hfpm__cart-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--hfpm-green);
  border-radius: 6px;
  background: var(--hfpm-green);
  color: #fff;
  font: 700 11px/1 var(--hfpm-font);
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hfpm__add:hover,
.hfpm__notify button:hover,
.hfpm__continue:hover,
.hfpm__cart-link:hover,
.hfpm__add:focus-visible,
.hfpm__notify button:focus-visible,
.hfpm__continue:focus-visible,
.hfpm__cart-link:focus-visible {
  border-color: var(--hfpm-green-2);
  background: var(--hfpm-green-2);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.hfpm__related {
  margin-top: 18px;
  padding-top: 0;
}

.hfpm__related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.hfpm__related-head h3 {
  margin: 0;
  color: var(--hfpm-ink);
  font-family: var(--hfpm-font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.hfpm__related-head > div {
  display: flex;
  gap: 6px;
}

.hfpm__related:not(.has-overflow) .hfpm__related-head > div {
  visibility: hidden;
}

.hfpm__related-head button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--hfpm-line);
  border-radius: 50%;
  background: #fff;
  color: var(--hfpm-ink);
  cursor: pointer;
}

.hfpm__related-head button:disabled {
  opacity: 0.35;
  cursor: default;
}

.hfpm__related-head button:not(:disabled):hover,
.hfpm__related-head button:not(:disabled):focus-visible {
  border-color: var(--hfpm-green);
  background: var(--hfpm-soft);
  outline: none;
}

.hfpm__related-track {
  display: grid;
  grid-auto-columns: calc(25% - 7.5px);
  grid-auto-flow: column;
  gap: 10px;
  overflow: auto hidden;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hfpm__related-track::-webkit-scrollbar {
  display: none;
}

.hfpm__related-card {
  display: grid;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hfpm-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: start;
}

.hfpm__related-card:hover img,
.hfpm__related-card:focus-visible img {
  transform: scale(1.025);
}

.hfpm__related-card:focus-visible {
  outline: 2px solid var(--hfpm-green);
  outline-offset: 3px;
  border-radius: 6px;
}

.hfpm__related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.15 / 1;
  border-radius: 5px;
  object-fit: cover;
  background: var(--hfpm-soft);
}

.hfpm__related-card > span {
  display: grid;
  gap: 2px;
  padding-top: 7px;
}

.hfpm__related-card strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hfpm__related-card small {
  overflow: hidden;
  color: var(--hfpm-muted);
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hfpm__status-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hfpm__spinner,
.hfpm__success-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
}

.hfpm__spinner {
  border: 2px solid #dce5df;
  border-top-color: var(--hfpm-green);
  animation: hfpm-spin 760ms linear infinite;
}

.hfpm__success-icon {
  background: var(--hfpm-green);
  color: #fff;
  font-size: 22px;
}

.hfpm__view--sample-limit .hfpm__success-icon {
  background: var(--hfpm-gold);
  font-size: 18px;
  font-weight: 800;
}

.hfpm__summary {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  margin-top: 24px;
  padding: 10px;
  border: 1px solid var(--hfpm-line);
  border-radius: 6px;
}

.hfpm__summary img {
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--hfpm-soft);
}

.hfpm__summary > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.hfpm__summary strong {
  overflow: hidden;
  font-family: var(--hfpm-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hfpm__summary span,
.hfpm__summary small {
  color: var(--hfpm-muted);
  font-size: 10px;
  line-height: 1.35;
}

.hfpm__summary b {
  padding-right: 6px;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.hfpm__progress {
  height: 3px;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 2px;
  background: #e7ece8;
}

.hfpm__progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--hfpm-green-2);
  animation: hfpm-progress 1.1s ease-in-out infinite;
}

.hfpm__checkout {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 1fr 1.15fr;
  gap: 10px;
  align-items: stretch;
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
  background: var(--hfpm-green);
}

.hfpm__checkout > div {
  display: grid;
  align-content: center;
  padding: 0 6px;
}

.hfpm__checkout span {
  color: rgba(255, 255, 255, 0.68);
}

.hfpm__checkout strong {
  overflow: hidden;
  margin-top: 3px;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hfpm__checkout .hfpm__cart-link {
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
}

.hfpm__checkout .hfpm__continue {
  border-color: var(--hfpm-gold);
  background: var(--hfpm-gold);
}

.hfpm__view--sample-limit .hfpm__checkout .hfpm__cart-link {
  border-color: #fff;
  background: #fff;
  color: var(--hfpm-green);
}

.hfpm__view--sample-limit .hfpm__checkout .hfpm__cart-link:hover,
.hfpm__view--sample-limit .hfpm__checkout .hfpm__cart-link:focus-visible {
  border-color: #fff;
  background: var(--hfpm-soft);
  color: var(--hfpm-green);
}

.hfpm__view--sample-limit .hfpm__checkout .hfpm__continue {
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
}

.hfpm__notify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 8px;
  margin-top: 22px;
}

.hfpm__notify input[type="email"] {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--hfpm-line);
  border-radius: 6px;
  background: #fff;
  color: var(--hfpm-ink);
  font: 400 12px/1 var(--hfpm-font);
}

.hfpm__notify input[type="email"]:focus {
  border-color: var(--hfpm-green-2);
  box-shadow: 0 0 0 3px rgba(36, 88, 63, 0.11);
  outline: none;
}

.hfpm__notify input[name="hp_web"] {
  position: absolute;
  left: -9999px;
}

.hfpm__secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.hfpm__secondary a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--hfpm-line);
  border-radius: 6px;
  color: var(--hfpm-ink);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.hfpm__secondary a:hover,
.hfpm__secondary a:focus-visible {
  border-color: var(--hfpm-green-2);
  background: var(--hfpm-soft);
  outline: none;
}

@keyframes hfpm-spin {
  to { transform: rotate(360deg); }
}

@keyframes hfpm-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(340%); }
}

@media (max-width: 900px) {
  .hfpm {
    align-items: end;
    padding: 0;
  }

  .hfpm__panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 30vh) minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .hfpm__media-card {
    display: none;
  }

  .hfpm__view {
    padding: 32px 20px 22px;
  }

  .hfpm__heading h2,
  .hfpm__status-head h2 {
    font-size: 29px;
  }

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

  .hfpm__order-row {
    grid-template-columns: 1fr 1fr;
  }

  .hfpm__quantity-wrap {
    min-width: 0;
  }

  .hfpm__add {
    grid-column: 1 / -1;
  }

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

  .hfpm__related-track {
    grid-auto-columns: minmax(142px, 42%);
  }
}

@media (max-width: 520px) {
  .hfpm__panel {
    grid-template-rows: minmax(150px, 26vh) minmax(0, 1fr);
  }

  .hfpm__view {
    padding: 28px 16px 18px;
  }

  .hfpm__options {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hfpm__option {
    grid-template-rows: 86px auto;
  }

  .hfpm__option img {
    height: 86px;
  }

  .hfpm__order-row,
  .hfpm__notify,
  .hfpm__secondary {
    grid-template-columns: 1fr;
  }

  .hfpm__add {
    grid-column: auto;
  }

  .hfpm__summary {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .hfpm__summary img {
    width: 58px;
    height: 58px;
  }

  .hfpm__summary b {
    grid-column: 2;
    padding: 0;
  }

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

  .hfpm__checkout .hfpm__cart-link,
  .hfpm__checkout .hfpm__continue {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hfpm,
  .hfpm *,
  .hfpm *::before,
  .hfpm *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.hf-atc.is-hfpm-loading,
.hf-sf-atc.is-hfpm-loading {
  pointer-events: none;
  opacity: 0.72;
}


/* 0.8.7 — consistent modal geometry on homepage, PDP, archives and landing pages. */
html body .hfpm .hfpm__panel{
  grid-template-columns:minmax(0,42%) minmax(0,58%) !important;
  width:min(1480px,calc(100vw - 40px)) !important;
  height:min(900px,calc(100vh - 40px)) !important;
  min-height:min(640px,calc(100vh - 40px)) !important;
}
html body .hfpm .hfpm__media{
  position:relative !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  align-self:stretch !important;
  overflow:hidden !important;
}
html body .hfpm .hfpm__hero-image{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  min-width:100% !important;
  min-height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center center !important;
  margin:0 !important;
  padding:0 !important;
}
html body .hfpm .hfpm__content{height:100% !important;min-height:0 !important;}
html body .hfpm .hfpm__view--selection{justify-content:flex-start !important;}
html body .hfpm .hfpm__view--selection .hfpm__related,
html body .hfpm .hfpm__view--unavailable .hfpm__related{
  margin-top:14px !important;
  padding-top:0 !important;
}
html body .hfpm .hfpm__related-track{
  scroll-snap-type:x mandatory !important;
  scroll-padding-left:0 !important;
  overscroll-behavior-inline:contain !important;
}
html body .hfpm .hfpm__related-card{scroll-snap-align:start !important;scroll-snap-stop:always !important;}
@media (max-width:900px){
  html body .hfpm .hfpm__panel{width:100% !important;height:100% !important;min-height:0 !important;grid-template-columns:1fr !important;grid-template-rows:minmax(190px,32vh) minmax(0,1fr) !important;}
}


/* 0.8.9 — slightly smaller premium modal while preserving full-bleed media. */
@media (min-width:901px){
  html body .hfpm{padding:32px!important;}
  html body .hfpm .hfpm__panel{
    width:min(1320px,calc(100vw - 64px))!important;
    height:min(800px,calc(100vh - 64px))!important;
    min-height:min(590px,calc(100vh - 64px))!important;
  }
}


/* 1.0.5 — compact product modal: less screen takeover, tighter cards and checkout area. */
@media (min-width: 901px) {
  html body .hfpm {
    padding: 28px !important;
  }

  html body .hfpm .hfpm__panel {
    grid-template-columns: minmax(0, 36%) minmax(0, 64%) !important;
    width: min(1080px, calc(100vw - 72px)) !important;
    height: min(640px, calc(100vh - 72px)) !important;
    min-height: min(500px, calc(100vh - 72px)) !important;
    border-radius: 10px !important;
  }

  html body .hfpm .hfpm__view {
    padding: 34px 32px 22px !important;
  }

  html body .hfpm .hfpm__heading > span {
    margin-bottom: 7px !important;
    font-size: 9px !important;
  }

  html body .hfpm .hfpm__heading h2,
  html body .hfpm .hfpm__status-head h2 {
    font-size: 29px !important;
    line-height: 1.05 !important;
  }

  html body .hfpm .hfpm__heading p,
  html body .hfpm .hfpm__status-head p {
    margin-top: 6px !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  html body .hfpm .hfpm__options {
    gap: 9px !important;
    margin-top: 18px !important;
  }

  html body .hfpm .hfpm__option {
    grid-template-rows: 78px auto !important;
    border-radius: 7px !important;
  }

  html body .hfpm .hfpm__option img {
    height: 78px !important;
  }

  html body .hfpm .hfpm__option > span {
    min-height: 54px !important;
    padding: 8px 10px !important;
  }

  html body .hfpm .hfpm__option strong {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  html body .hfpm .hfpm__option small {
    font-size: 10px !important;
  }

  html body .hfpm .hfpm__option i {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }

  html body .hfpm .hfpm__order-row {
    grid-template-columns: 112px minmax(100px, 1fr) minmax(160px, 1.12fr) !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  html body .hfpm .hfpm__quantity,
  html body .hfpm .hfpm__add,
  html body .hfpm .hfpm__notify button,
  html body .hfpm .hfpm__continue,
  html body .hfpm .hfpm__cart-link {
    min-height: 44px !important;
    height: 44px !important;
  }

  html body .hfpm .hfpm__quantity {
    grid-template-columns: 34px 1fr 34px !important;
  }

  html body .hfpm .hfpm__total {
    padding: 0 12px !important;
  }

  html body .hfpm .hfpm__related {
    margin-top: 14px !important;
  }

  html body .hfpm .hfpm__related-head {
    margin-bottom: 8px !important;
  }

  html body .hfpm .hfpm__related-track {
    grid-auto-columns: calc(25% - 6px) !important;
    gap: 8px !important;
  }

  html body .hfpm .hfpm__related-card img {
    aspect-ratio: 1.22 / 1 !important;
    border-radius: 6px !important;
  }

  html body .hfpm .hfpm__related-card > span {
    padding-top: 5px !important;
  }

  html body .hfpm .hfpm__media-card {
    left: 16px !important;
    bottom: 16px !important;
    width: min(210px, calc(100% - 32px)) !important;
    min-height: 82px !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
  }

  html body .hfpm .hfpm__media-card strong {
    font-size: 15px !important;
  }

  html body .hfpm .hfpm__close {
    top: 12px !important;
    right: 12px !important;
    width: 34px !important;
    height: 34px !important;
  }
}

@media (min-width: 901px) and (max-height: 700px) {
  html body .hfpm {
    padding: 18px !important;
  }

  html body .hfpm .hfpm__panel {
    height: calc(100vh - 36px) !important;
    min-height: 0 !important;
  }

  html body .hfpm .hfpm__view {
    padding-top: 26px !important;
  }

  html body .hfpm .hfpm__heading h2,
  html body .hfpm .hfpm__status-head h2 {
    font-size: 25px !important;
  }

  html body .hfpm .hfpm__options {
    margin-top: 14px !important;
  }
}

@media (max-width: 900px) {
  html body .hfpm .hfpm__panel {
    grid-template-rows: minmax(140px, 24vh) minmax(0, 1fr) !important;
  }

  html body .hfpm .hfpm__view {
    padding: 26px 18px 18px !important;
  }
}


/* 1.0.6 — tighter premium modal and richer related-product cards. */
@media (min-width: 901px) {
  html body .hfpm {
    padding: 24px !important;
  }

  html body .hfpm .hfpm__panel {
    grid-template-columns: minmax(0, 35%) minmax(0, 65%) !important;
    width: min(1060px, calc(100vw - 84px)) !important;
    height: min(570px, calc(100vh - 64px)) !important;
    min-height: 0 !important;
    border-radius: 10px !important;
  }

  html body .hfpm .hfpm__content {
    overflow: hidden auto !important;
  }

  html body .hfpm .hfpm__view,
  html body .hfpm .hfpm__view--selection {
    min-height: 0 !important;
    padding: 28px 30px 18px !important;
  }

  html body .hfpm .hfpm__heading > span {
    margin-bottom: 6px !important;
    font-size: 8px !important;
    letter-spacing: .07em !important;
  }

  html body .hfpm .hfpm__heading h2,
  html body .hfpm .hfpm__status-head h2 {
    font-size: 27px !important;
    line-height: 1.02 !important;
  }

  html body .hfpm .hfpm__options {
    gap: 8px !important;
    margin-top: 16px !important;
  }

  html body .hfpm .hfpm__option {
    grid-template-rows: 72px auto !important;
  }

  html body .hfpm .hfpm__option img {
    height: 72px !important;
  }

  html body .hfpm .hfpm__option > span {
    min-height: 50px !important;
    padding: 8px 10px !important;
  }

  html body .hfpm .hfpm__order-row {
    grid-template-columns: 110px minmax(130px, 1fr) minmax(160px, 1.18fr) !important;
    margin-top: 12px !important;
    gap: 8px !important;
  }

  html body .hfpm .hfpm__quantity,
  html body .hfpm .hfpm__add,
  html body .hfpm .hfpm__notify button,
  html body .hfpm .hfpm__continue,
  html body .hfpm .hfpm__cart-link {
    min-height: 42px !important;
    height: 42px !important;
  }

  html body .hfpm .hfpm__total {
    min-height: 42px !important;
    padding: 0 12px !important;
  }

  html body .hfpm .hfpm__total span {
    font-size: 8px !important;
    letter-spacing: .08em !important;
  }

  html body .hfpm .hfpm__total strong {
    font-size: 16px !important;
  }

  html body .hfpm .hfpm__related {
    margin-top: 14px !important;
    padding-top: 0 !important;
  }

  html body .hfpm .hfpm__related-head {
    margin-bottom: 7px !important;
  }

  html body .hfpm .hfpm__related-head h3 {
    font-size: 12px !important;
  }

  html body .hfpm .hfpm__related-head button {
    width: 26px !important;
    height: 26px !important;
  }

  html body .hfpm .hfpm__related-track {
    grid-auto-columns: calc(25% - 7px) !important;
    gap: 9px !important;
    padding-bottom: 1px !important;
  }

  html body .hfpm .hfpm__related-card {
    overflow: hidden !important;
    border: 1px solid rgba(31, 52, 39, .10) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 7px 18px rgba(25, 46, 34, .055) !important;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
  }

  html body .hfpm .hfpm__related-card:hover,
  html body .hfpm .hfpm__related-card:focus-visible {
    border-color: rgba(36, 88, 63, .32) !important;
    box-shadow: 0 10px 24px rgba(25, 46, 34, .10) !important;
    transform: translateY(-1px) !important;
  }

  html body .hfpm .hfpm__related-card img {
    aspect-ratio: 1.48 / 1 !important;
    border-radius: 0 !important;
  }

  html body .hfpm .hfpm__related-card > span {
    min-height: 56px !important;
    padding: 7px 8px 8px !important;
    gap: 3px !important;
    background: #fff !important;
  }

  html body .hfpm .hfpm__related-card strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    white-space: normal !important;
    font-size: 10.5px !important;
    line-height: 1.18 !important;
  }

  html body .hfpm .hfpm__related-card small {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    white-space: normal !important;
    color: var(--hfpm-muted) !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  html body .hfpm .hfpm__media-card {
    bottom: 14px !important;
    left: 14px !important;
    width: min(205px, calc(100% - 28px)) !important;
    min-height: 78px !important;
    padding: 11px 13px !important;
  }
}

@media (min-width: 901px) and (max-height: 690px) {
  html body .hfpm {
    padding: 14px !important;
  }

  html body .hfpm .hfpm__panel {
    height: calc(100vh - 28px) !important;
    width: min(1040px, calc(100vw - 48px)) !important;
  }

  html body .hfpm .hfpm__view,
  html body .hfpm .hfpm__view--selection {
    padding: 22px 26px 16px !important;
  }

  html body .hfpm .hfpm__heading h2,
  html body .hfpm .hfpm__status-head h2 {
    font-size: 24px !important;
  }

  html body .hfpm .hfpm__option {
    grid-template-rows: 62px auto !important;
  }

  html body .hfpm .hfpm__option img {
    height: 62px !important;
  }

  html body .hfpm .hfpm__related-card img {
    aspect-ratio: 1.7 / 1 !important;
  }

  html body .hfpm .hfpm__related-card > span {
    min-height: 48px !important;
  }
}

/* 1.0.8 — inline sample-limit pill removed; quantity cap remains enforced in JS/server logic. */

/* ===== flat + square pass (2026-07-28) =====================================
   The dialog joins the shop's surface language: hairlines instead of drop
   shadows, square corners on every control, the one flat action green.
   Appended last so it wins over the scattered radius/shadow rules above.
   The spinner keeps its circle — a square cannot visibly spin. */
.hfpm__panel,.hfpm__media-card,.hfpm__option,.hfpm__options,.hfpm__add,.hfpm__secondary,
.hfpm__quantity,.hfpm__quantity-wrap,.hfpm__quantity-wrap button,.hfpm__total,.hfpm__summary,
.hfpm__related-card,.hfpm__related-card img,.hfpm__close,.hfpm__related-head button,
.hfpm__continue,.hfpm__checkout,.hfpm__cart-link,.hfpm__notify,.hfpm__error,
.hfpm__media-card figcaption,.hfpm__hero-image,.hfpm__success-icon,
.hfpm__option .hfpm__option-check,.hfpm__option::after,.hfpm__option span{border-radius:0 !important}
.hfpm__panel{box-shadow:none !important;border:1px solid rgba(18,43,76,.12) !important}
.hfpm__option,.hfpm__media-card,.hfpm__related-card,.hfpm__total,.hfpm__add,.hfpm__close,
.hfpm__related-head button,.hfpm__quantity-wrap,.hfpm__secondary{box-shadow:none !important}
.hfpm__option.is-selected,.hfpm__option[aria-pressed="true"]{box-shadow:inset 0 0 0 1.5px var(--hfpm-ink) !important;border-color:var(--hfpm-ink) !important}
.hfpm__add{background:var(--hfpm-green) !important;color:#fff !important;transition:background .15s ease !important;transform:none !important}
.hfpm__add:hover{background:var(--hfpm-green-2) !important;box-shadow:none !important;transform:none !important}
.hfpm__close,.hfpm__related-head button{border:1px solid rgba(18,43,76,.18) !important;background:#fff !important;color:var(--hfpm-ink) !important}
.hfpm__close:hover,.hfpm__related-head button:hover{background:var(--hfpm-soft) !important}
/* even stepper cells, ink feedback — no filled minus, no green wash */
.hfpm__quantity-wrap{border:1px solid rgba(18,43,76,.22) !important;overflow:hidden !important}
.hfpm__quantity-wrap button{background:#fff !important;color:var(--hfpm-ink) !important;border:0 !important;width:40px !important;flex:0 0 40px !important}
.hfpm__quantity-wrap button:hover{background:rgba(18,43,76,.06) !important}
.hfpm__quantity-wrap button:disabled{color:rgba(18,43,76,.3) !important;background:#fff !important}
/* the total reads as a receipt line, not a second card */
.hfpm__total{border:0 !important;border-left:1px solid rgba(18,43,76,.12) !important;background:transparent !important}
.hfpm__related-card{border:1px solid rgba(18,43,76,.12) !important}
.hfpm__related-card:hover{border-color:rgba(18,43,76,.35) !important;transform:none !important}
@media (prefers-reduced-motion:reduce){.hfpm__add,.hfpm__related-card,.hfpm__option{transition:none !important}}
/* stragglers that carried higher-specificity rules of their own */
html body .hfpm .hfpm__media-card{border-radius:0 !important;box-shadow:none !important}
html body .hfpm .hfpm__option i{border-radius:0 !important;background:var(--hfpm-ink) !important;color:#fff !important}
html body .hfpm .hfpm__option img{border-radius:0 !important}
html body .hfpm .hfpm__panel{border-radius:0 !important;box-shadow:none !important}
html body .hfpm .hfpm__hero-image,html body .hfpm .hfpm__media{border-radius:0 !important}
html body .hfpm .hfpm__related-card,html body .hfpm .hfpm__related-card img{border-radius:0 !important}
html body .hfpm .hfpm__quantity,html body .hfpm .hfpm__quantity-wrap,html body .hfpm .hfpm__total,html body .hfpm .hfpm__add,html body .hfpm .hfpm__option,html body .hfpm .hfpm__close{border-radius:0 !important}
html body .hfpm .hfpm__related-card{box-shadow:none !important}
