/* Per-store availability panel on pool-product PDPs */

.hh-store-avail {
  margin: 1.25rem 0;
  border: 1px solid var(--hh-gray-200, #e2e2e2);
  border-left: 3px solid var(--hh-yellow);
  border-radius: 4px;
  background: var(--hh-white);
  font-size: 0.9rem;
}

.hh-store-avail__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-display, inherit);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  background: var(--hh-black-deep);
  color: var(--hh-white);
}

.hh-store-avail__head svg {
  color: var(--hh-yellow);
  flex-shrink: 0;
}

.hh-store-avail__list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
}

.hh-store-avail__list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--hh-gray-100, #f0f0f0);
}

.hh-store-avail__list li:last-child {
  border-bottom: 0;
}

.hh-store-avail__store {
  font-weight: 600;
  flex: 1 1 auto;
}

.hh-store-avail__qty {
  color: #1a7d36;
  font-weight: 600;
  white-space: nowrap;
}

.hh-store-avail__tel {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hh-store-avail__tel:hover {
  color: var(--hh-yellow-dark);
  text-decoration: underline;
}

/* Holding stock: store 000 (Alabaster, Corporate) or the bare "Warehouse"
   code. Deliberately outside .hh-store-avail__list and without a phone link —
   it is not a place a customer collects from, and the list above is the
   pickup list. */
.hh-store-avail__warehouse {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding: 0.45rem 1rem;
  border-top: 1px solid var(--hh-gray-100, #f0f0f0);
  background: var(--hh-gray-50, #fafafa);
}

.hh-store-avail__wh-note {
  flex-basis: 100%;
  font-size: 0.78rem;
  color: var(--hh-gray-600, #666);
}

.hh-store-avail__more {
  border-top: 1px solid var(--hh-gray-100, #f0f0f0);
}

.hh-store-avail__more summary {
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--hh-black-soft);
}

.hh-store-avail__more summary:hover {
  color: var(--hh-black);
}

.hh-store-avail__note {
  margin: 0;
  padding: 0.6rem 1rem 0.75rem;
  font-size: 0.8rem;
  color: var(--hh-gray-600, #666);
}

@media (max-width: 480px) {
  .hh-store-avail__list li {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }

  .hh-store-avail__tel {
    flex-basis: 100%;
  }
}

/* ===== The buy-box stock line =====
   Two spans, because the line carries a claim and the source of that claim.
   The claim stays inline so it shares the first line with whatever go-dot the
   surrounding theme or the bridge puts on p.stock::before; the source drops
   underneath and resets the display-face treatment it would otherwise
   inherit from the p. */
.hh-stockline__claim {
  display: inline;
}

.hh-stockline__src {
  display: block;
  margin-top: 6px;
  max-width: 46ch;
  font-family: var(--font-body, inherit);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  color: var(--hh-gray-600, #666);
}

/* ===== Ships Fast (non-bridge products) =====
   Fallback styling for the case where the bridge plugin is not active and its
   catalog.css is therefore not loaded. When the bridge IS active it renders
   .hhpfb-ships-fast-row and styles it itself; these rules only cover the
   theme's own copy so the badge can never appear at its full 360px. */
.hh-ships-fast-row {
    min-height: 42px;
    margin: 4px 0 14px;
}

/* img.hh-ships-fast, not the bare class: WooCommerce's
   `.woocommerce img { height: auto }` is 0,1,1 and outranks a lone class, so
   a bare selector here would lose the height the same way the bridge's did. */
.hh-ships-fast-row img.hh-ships-fast {
    display: block;
    height: 42px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 600px) {
    .hh-ships-fast-row { min-height: 34px; }
    .hh-ships-fast-row img.hh-ships-fast { height: 34px; }
}
