/* Product prices on cards and the item pop-up. Amounts come from the same
   catalog retail / retailCents the cart already uses. No stock counts. */

.hivebox-product-price {
  display: block;
  margin-top: 4px;
  font: 650 clamp(12px, 2.8vw, 15px)/1.25 var(--body, system-ui, sans-serif);
  color: var(--ink, #382717);
  letter-spacing: 0;
}

.kiosk-stepwise .hivebox-product-price {
  font-size: clamp(11px, calc(var(--canvas, 390px) * .022), 14px);
  color: #382717;
}

#hiveboxQuickView .hivebox-modal-price {
  display: block;
  margin: 8px 0 0;
  font: 700 clamp(20px, 5vw, 26px)/1.15 var(--body, system-ui, sans-serif);
  color: var(--ink, #382717);
  letter-spacing: 0;
}

#hiveboxQuickView .hivebox-modal-price[hidden] {
  display: none;
}

#hiveboxQuickView .hivebox-modal-price.is-pack {
  font-size: clamp(16px, 4.2vw, 20px);
  font-weight: 650;
}

/* Under the open HiveBox, above the Box 1 / Box 2 tabs. Uses the reserved
   --box-caption-space so the illustration does not sit on the text. */
.hivebox-box-caption {
  display: block;
  flex: none;
  box-sizing: border-box;
  width: 100%;
  margin: 4px 0 0;
  padding: 0 4px;
  min-height: 21px;
  text-align: center;
  font: 650 clamp(11px, 2.7vw, 14px)/1.25 var(--body, system-ui, sans-serif);
  letter-spacing: 0;
  color: #5c4a3a;
}

.kiosk-stepwise .kiosk-story > .hivebox-visual-panel {
  --box-caption-space: 28px;
}

.kiosk-stepwise .hivebox-box-caption {
  font-size: clamp(11px, calc(var(--canvas, 390px) * .025), 14px);
  color: #5c4a3a;
}


/* The shelf locks the name block at 2.4em so jars stay aligned. When a price
   is present, grow that block the same way a size line already does.
   !important beats later mini-card copy height rules in the page stylesheet. */
.kiosk-stepwise #hiveboxProductGrid .hivebox-product-card .hivebox-product-copy:has(.hivebox-product-price) {
  /* Auto height so the price sits in the name block instead of under Add.
     The 2.4em lock is based on a smaller em than the name font, so a fixed
     calc cannot fit name + size + price on Mini cards. */
  height: auto !important;
  min-height: calc(2.4em + 20px) !important;
}
.kiosk-stepwise #hiveboxProductGrid .hivebox-product-card .hivebox-product-copy:has(.hivebox-product-size):has(.hivebox-product-price) {
  height: auto !important;
  min-height: calc(2.4em + 21px + 20px) !important;
}
.kiosk-stepwise #hiveboxProductGrid .hivebox-product-price {
  margin-top: 1px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
