.sc-hub.sc-hub-code-search {
  margin: 1.5rem 0 2rem;
}

.sc-hub-code-search__panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.sc-hub-code-search__row + .sc-hub-code-search__row {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sc-hub-code-search__main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(110px, 0.8fr) minmax(120px, 1fr) minmax(120px, 0.9fr);
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
}

.sc-hub-code-search__title {
  display: block;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.sc-hub-code-search__title:hover,
.sc-hub-code-search__mpn:hover {
  text-decoration: underline;
}

.sc-hub-code-search__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  color: #475569;
  font-size: 0.95rem;
}

.sc-hub-code-search__brand {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sc-hub-code-search__mpn {
  color: #0f172a;
  text-decoration: none;
}

.sc-hub-code-search__from-price {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
}

.sc-hub-code-search__single-price {
  font-weight: 700;
  color: #0f172a;
}

.sc-hub-code-search__availability {
  color: #334155;
}

.sc-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sc-hub-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.sc-hub-btn--primary {
  background: #111827;
  color: #fff;
}

.sc-hub-btn--primary:hover:not(:disabled) {
  background: #000;
}

.sc-hub-btn--secondary {
  background: #fff;
  color: #111827;
  border-color: rgba(15, 23, 42, 0.18);
}

.sc-hub-btn--secondary:hover:not(:disabled) {
  border-color: rgba(15, 23, 42, 0.35);
}

.sc-hub-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sc-hub-code-search__cart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.sc-hub-code-search__qty {
  width: 4.25rem;
  min-height: 44px;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 10px;
  font: inherit;
}

.sc-hub-code-search__cart-error {
  flex-basis: 100%;
  margin: 0;
  color: #b91c1c;
  font-size: 0.9rem;
}

.sc-hub-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.sc-hub-code-search__offers {
  background: #f8fafc;
  padding: 0.75rem 1.25rem 1rem;
}

.sc-hub-code-search__offer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.75rem 0;
}

.sc-hub-code-search__offer + .sc-hub-code-search__offer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sc-hub-product-detail {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

.sc-hub-product-detail__title {
  margin-bottom: 0.5rem;
}

.sc-hub-product-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #475569;
}

.sc-hub-product-detail__offer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sc-hub-pickup,
.sc-hub-adbaltic-pickup {
  grid-column: 1 / -1;
  margin: 0.75rem 0 0;
}

.sc-hub-pickup ul,
.sc-hub-adbaltic-pickup {
  list-style: none;
  padding: 0;
}

.sc-hub-pickup li,
.sc-hub-adbaltic-pickup__option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.5rem 0;
}

.sc-hub-pickup span,
.sc-hub-adbaltic-pickup__option span span {
  display: block;
  color: #475569;
}

.sc-hub-adbaltic-pickup {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
}

.sc-hub-adbaltic-pickup--blocked {
  border-color: #b45309;
}

.sc-hub-fulfillment-group {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
  color: inherit;
}

.sc-hub-fulfillment-group h3 {
  margin: 0 0 0.35rem;
  color: inherit;
}

.sc-hub-fulfillment-group p {
  margin: 0;
  color: inherit;
}

.sc-hub-tyre-overlap__purchase-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
  margin: 0.65rem 0 0.75rem;
}

.sc-hub-tyre-overlap__purchase-row .sc-hub-tyre-overlap__cta {
  flex: 1 1 12rem;
  align-self: stretch;
  min-height: 44px;
}

.sc-hub-tyre-overlap__cart-controls {
  margin: 0;
  flex: 0 0 auto;
}

.sc-hub-tyre-overlap__pickup-block {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.sc-hub-tyre-overlap__purchase-row .sc-hub-tyre-overlap__cta {
  min-height: 44px;
  align-self: center;
}

.sc-hub-cart-line-fulfillment {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #86efac;
}

.sc-hub-overlap-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.2);
}

.sc-hub-overlap-qty__btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.65rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.sc-hub-overlap-qty__btn:hover {
  background: rgba(148, 163, 184, 0.15);
}

.sc-hub-overlap-qty__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
}

.sc-hub-overlap-qty__label {
  display: flex;
  align-items: center;
}

.sc-hub-overlap-qty__input {
  width: 3.25rem;
  min-height: 44px;
  margin: 0;
  padding: 0.35rem 0.25rem;
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.25);
  border-right: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: center;
  font: inherit;
  -moz-appearance: textfield;
}

.sc-hub-overlap-qty__input::-webkit-outer-spin-button,
.sc-hub-overlap-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sc-hub-ad-warehouse-stock {
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
  font-size: 0.92rem;
}

.sc-hub-tyre-overlap .sc-hub-ad-warehouse-stock {
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

.sc-hub-tyre-overlap .sc-hub-ad-warehouse-stock__heading,
.sc-hub-tyre-overlap .sc-hub-ad-warehouse-stock__name,
.sc-hub-tyre-overlap .sc-hub-ad-warehouse-stock__qty {
  color: inherit;
}

.sc-hub-ad-warehouse-stock__heading {
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.sc-hub-ad-warehouse-stock__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-hub-ad-warehouse-stock__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.sc-hub-ad-warehouse-stock__qty {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sc-hub-ad-warehouse-stock__qty--unknown {
  color: rgba(148, 163, 184, 0.85);
  font-variant-numeric: normal;
}

.sc-hub-tyre-pickup__section-heading {
  margin: 0.75rem 0 0.35rem;
  font-weight: 600;
}

.sc-hub-tyre-pickup__section-lead {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.88);
}

.sc-hub-tyre-pickup--pdp .sc-hub-tyre-pickup__stock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sc-hub-tyre-pickup__toggle--pdp {
  background: rgba(15, 23, 42, 0.35);
  color: inherit;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-weight: 600;
}

.sc-hub-tyre-pickup__toggle--pdp:hover {
  background: rgba(148, 163, 184, 0.18);
}

.sc-hub-tyre-overlap__pickup-heading {
  margin: 0.75rem 0 0.25rem;
  font-weight: 600;
}

.sc-hub-tyre-overlap__availability--in-stock {
  color: #15803d;
  font-weight: 600;
}

.sc-hub-overlap-delivery-badge {
  margin: 0.35rem 0 0.75rem;
  color: #15803d;
  font-weight: 600;
}

body.sc-hub-overlap-ad-selected .sc-hub-overlap-delivery-badge {
  display: none !important;
}

body.sc-hub-overlap-juta-selected .sc-hub-overlap-delivery-badge {
  display: block;
}

.sc-hub-tyre-overlap__secondary {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sc-hub-tyre-overlap__secondary-heading {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.sc-hub-tyre-overlap__secondary-price {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.sc-hub-tyre-overlap__secondary-availability {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.sc-hub-tyre-pickup--cart {
  margin-top: 0.5rem;
}

.sc-hub-tyre-pickup__toggle {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 6px;
  background: #dc2626;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.sc-hub-tyre-pickup__toggle--secondary {
  background: #475569;
  margin-right: 0.5rem;
}

.sc-hub-tyre-pickup__delivery {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.25);
  color: inherit;
  cursor: pointer;
}

.sc-hub-tyre-pickup__panel {
  margin-top: 0.75rem;
}

.sc-hub-tyre-pickup__option {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sc-hub-tyre-pickup__address {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.sc-hub-tyre-pickup__promise {
  margin: 0 0 0.5rem;
  color: #475569;
}

/* Approved overlap + normal Hub tyre PDP column alignment */
body.single-product.sc-hub-tyre-pdp-shell .woocommerce div.product {
  box-sizing: border-box;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  column-gap: 36px;
}

body.single-product.sc-hub-tyre-pdp-shell .sc-hub-ad-warehouse-stock {
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

body.single-product.sc-hub-tyre-pdp-shell .sc-hub-ad-warehouse-stock__heading,
body.single-product.sc-hub-tyre-pdp-shell .sc-hub-ad-warehouse-stock__name,
body.single-product.sc-hub-tyre-pdp-shell .sc-hub-ad-warehouse-stock__qty {
  color: inherit;
}

body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap__purchase-row {
  align-items: center;
}

body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap__cta.button {
  margin: 0;
}

/* Overlap tyre PDP: quantity, CTA width, warehouse compact layout (not global Woo PDPs). */
body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap .sc-hub-overlap-qty__btn {
  background: #dc2626;
  color: #fff;
}

body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap .sc-hub-overlap-qty__btn:hover,
body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap .sc-hub-overlap-qty__btn:focus-visible {
  background: #b91c1c;
  color: #fff;
}

body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap .sc-hub-overlap-qty__input {
  background: #fff;
  color: #dc2626;
  font-weight: 700;
}

body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap__purchase-row .sc-hub-tyre-overlap__cta {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  align-self: center;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap .sc-hub-ad-warehouse-stock {
  width: fit-content;
  max-width: min(100%, 28rem);
  align-self: flex-start;
}

body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap__pickup-block .sc-hub-tyre-pickup--pdp {
  max-width: min(100%, 28rem);
}

body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap .sc-hub-tyre-pickup__toggle--pdp {
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
}

body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap .sc-hub-tyre-pickup__toggle--pdp:hover,
body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap .sc-hub-tyre-pickup__toggle--pdp:focus-visible {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

@media (max-width: 768px) {
  body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap__purchase-row {
    flex-direction: column;
    align-items: flex-start;
  }

  body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap__purchase-row .sc-hub-tyre-overlap__cta {
    width: auto;
    flex: 0 0 auto;
    align-self: flex-start;
    text-align: center;
  }

  body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap .sc-hub-overlap-qty {
    width: auto;
    max-width: 100%;
  }

  body.single-product.sc-hub-tyre-pdp-shell .sc-hub-tyre-overlap .sc-hub-ad-warehouse-stock {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .sc-hub-code-search__main,
  .sc-hub-code-search__offer,
  .sc-hub-product-detail__offer {
    grid-template-columns: 1fr;
  }

  .sc-hub-code-search__cta,
  .sc-hub-code-search__price,
  .sc-hub-code-search__availability {
    justify-self: start;
  }
}
