/* Conversion-path improvements: RFQ access, product finder and product CTAs. */
#rfq-form,
#product-specifications {
  scroll-margin-top: 132px;
}

.product-quick-actions {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.product-quick-actions .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding: 14px 0;
}

.product-quick-actions span {
  max-width: 680px;
  color: var(--steel);
  font-size: 15px;
  font-weight: 700;
}

.product-quick-actions .container > div {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.product-spec-rfq {
  width: 100%;
  margin-top: 16px;
}

.buyer-product-finder {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: start;
}

.buyer-product-finder-intro p:last-child {
  max-width: 680px;
}

.buyer-product-finder-control {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.buyer-product-finder-results {
  grid-column: 1 / -1;
  min-height: 170px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.buyer-product-finder-results [hidden] {
  display: none;
}

.buyer-product-finder-results > div {
  color: var(--muted);
}

.buyer-product-finder-results article > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.buyer-product-finder-results h3 {
  margin: 4px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.buyer-product-finder-results p {
  margin: 6px 0;
  color: var(--muted);
}

.buyer-product-finder-results .section-actions {
  margin-top: 18px;
}

@media (max-width: 920px) {
  .product-quick-actions .container {
    align-items: stretch;
    flex-direction: column;
  }

  .buyer-product-finder {
    grid-template-columns: 1fr;
  }

  .buyer-product-finder-results {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  #rfq-form,
  #product-specifications {
    scroll-margin-top: 154px;
  }

  .product-quick-actions .container > div,
  .buyer-product-finder-results .section-actions {
    display: grid;
    width: 100%;
  }

  .product-quick-actions .button,
  .buyer-product-finder-results .button {
    width: 100%;
  }

  .floating-whatsapp {
    top: auto;
    right: 12px;
    bottom: 76px;
    transform: none;
  }

  .floating-whatsapp:hover {
    transform: translateX(-2px);
  }

  body:has(.inquiry-form:focus-within) .floating-whatsapp {
    opacity: 0;
    pointer-events: none;
  }
}
