.phfs-box {
  --phfs-bg: #f7f5ff;
  --phfs-accent: #6d28d9;
  --phfs-text: #17141f;
  --phfs-border: #d8ccf5;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0;
  padding: 13px 16px;
  border: 1px solid var(--phfs-border);
  border-radius: 16px;
  background: var(--phfs-bg);
  color: var(--phfs-text);
  box-shadow: 0 5px 18px rgba(31, 26, 22, .06);
}

/* Theme-neutral mode deliberately avoids applying PrestaHeroes colors to the shop. */
.phfs-box.phfs-palette-theme {
  background: transparent;
  color: inherit;
  border-color: rgba(127, 127, 127, .30);
  box-shadow: none;
}

.phfs-promo { justify-content: center; min-height: 58px; }
.phfs-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--phfs-accent);
  color: #fff;
}
.phfs-palette-theme .phfs-icon {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.phfs-icon svg { width: 23px; height: 23px; fill: currentColor; }
.phfs-copy { display: flex; flex-direction: column; gap: 2px; }
.phfs-message { font-size: 15px; line-height: 1.35; }
.phfs-meta { font-size: 12px; opacity: .72; }
.phfs-dismiss {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.phfs-dismiss:hover,
.phfs-dismiss:focus { background: rgba(0, 0, 0, .07); outline: none; }
.phfs-progress { display: block; }
.phfs-progress-heading,
.phfs-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phfs-threshold { font-weight: 700; white-space: nowrap; color: var(--phfs-accent); }
.phfs-palette-theme .phfs-threshold { color: inherit; }
.phfs-track {
  overflow: hidden;
  height: 8px;
  margin: 10px 0 7px;
  border-radius: 99px;
  background: rgba(109, 40, 217, .16);
}
.phfs-palette-theme .phfs-track { background: rgba(127, 127, 127, .24); }
.phfs-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--phfs-accent);
  transition: width .28s ease;
}
.phfs-palette-theme .phfs-fill { background: currentColor; }
.phfs-progress.is-unlocked .phfs-fill { width: 100% !important; }
.phfs-meta { font-size: 11px; }
.phfs-box[hidden] { display: none !important; }

.phfs-product-message {
  --phfs-accent: #6d28d9;
  --phfs-text: #17141f;
  --phfs-border: #d8ccf5;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 10px;
  color: var(--phfs-text);
  font-size: 14px;
  line-height: 1.35;
}
.phfs-product-message.phfs-palette-theme { color: inherit; }
.phfs-product-message .phfs-message { font-size: inherit; font-weight: 700; }
.phfs-delivery-window {
  display: block;
  margin-top: 4px;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  opacity: .82;
}
.phfs-product-message .phfs-delivery-window { margin-top: 3px; }
.phfs-progress .phfs-delivery-window { margin: 6px 0 8px; }

@media (max-width: 767px) {
  .phfs-box { padding: 12px 13px; border-radius: 14px; }
  .phfs-promo { justify-content: flex-start; padding-right: 46px; }
  .phfs-message { font-size: 14px; }
  .phfs-progress-heading { align-items: flex-start; }
  .phfs-product-message { margin-top: 7px; font-size: 13px; }
}

.phfs-mini-cart-progress {
  margin: 12px 0;
  padding: 12px 13px;
  border-radius: 13px;
}
.phfs-mini-cart-progress .phfs-progress-heading { align-items: flex-start; }
.phfs-mini-cart-progress .phfs-message { font-size: 13px; line-height: 1.3; }
.phfs-mini-cart-progress .phfs-threshold { font-size: 13px; }
.phfs-mini-cart-progress .phfs-track { height: 7px; margin: 8px 0 6px; }
.phfs-mini-cart-progress .phfs-meta { gap: 8px; font-size: 10px; }
@media (max-width: 420px) {
  .phfs-mini-cart-progress .phfs-progress-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; }
}
