:root {
  --reach-b2b-navy: #132a3f;
  --reach-b2b-gold: #e9a82e;
  --reach-b2b-border: #d7e0e7;
  --reach-b2b-soft: #f5f8fa;
  --reach-b2b-success: #27734c;
}

.reach-b2b-company-account,
.reach-b2b-quotes,
.reach-b2b-guest-quote,
.reach-b2b-product-information,
.reach-b2b-import-order,
.reach-b2b-recent-products {
  color: var(--reach-b2b-navy);
}

.reach-b2b-company-account > section,
.reach-b2b-quote,
.reach-b2b-guest-quote,
.reach-b2b-import-order,
.reach-b2b-recent-products {
  margin: 1.25rem 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--reach-b2b-border);
  border-radius: 14px;
  background: #fff;
}

.reach-b2b-quote h3,
.reach-b2b-company-account h2,
.reach-b2b-company-account h3,
.reach-b2b-quotes h2 {
  color: var(--reach-b2b-navy);
}

.reach-b2b-product-quote,
.reach-b2b-cart-quote,
.reach-b2b-guest-quote form,
.reach-b2b-restock-form,
.reach-b2b-import-order form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin: 1rem 0;
}

.reach-b2b-product-quote input,
.reach-b2b-cart-quote input,
.reach-b2b-cart-quote textarea,
.reach-b2b-guest-quote input,
.reach-b2b-guest-quote textarea,
.reach-b2b-restock-form input,
.reach-b2b-import-order textarea,
.reach-b2b-import-order input {
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #aebdca;
  border-radius: 8px;
  background: #fff;
  color: var(--reach-b2b-navy);
}

.reach-b2b-cart-quote textarea,
.reach-b2b-guest-quote textarea,
.reach-b2b-import-order textarea {
  flex: 1 0 100%;
  min-height: 110px;
}

.reach-b2b-product-quote button,
.reach-b2b-cart-quote button,
.reach-b2b-guest-quote button,
.reach-b2b-restock-form button,
.reach-b2b-import-order button {
  min-height: 46px;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--reach-b2b-navy);
  border-radius: 8px;
  background: var(--reach-b2b-navy);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.reach-b2b-product-quote button:hover,
.reach-b2b-cart-quote button:hover,
.reach-b2b-guest-quote button:hover,
.reach-b2b-restock-form button:hover,
.reach-b2b-import-order button:hover {
  border-color: #0b1b2a;
  background: #0b1b2a;
  color: #fff;
}

.reach-b2b-price-comparison {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.8rem;
}

.reach-b2b-msrp {
  color: #5c6c79;
  text-decoration: line-through;
}

.reach-b2b-trade-price {
  color: var(--reach-b2b-navy);
  font-size: 1.15em;
  font-weight: 800;
}

.reach-b2b-savings {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8f5ed;
  color: var(--reach-b2b-success);
  font-size: 0.88em;
  font-weight: 700;
}

.reach-b2b-product-information {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--reach-b2b-gold);
  border-radius: 8px;
  background: var(--reach-b2b-soft);
}

.reach-b2b-bulk-variations,
.reach-b2b-quotes .shop_table,
.reach-b2b-company-account table {
  width: 100%;
  border-collapse: collapse;
}

.reach-b2b-bulk-variations th,
.reach-b2b-bulk-variations td,
.reach-b2b-quotes .shop_table th,
.reach-b2b-quotes .shop_table td,
.reach-b2b-company-account th,
.reach-b2b-company-account td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--reach-b2b-border);
  text-align: left;
  vertical-align: middle;
}

.reach-b2b-discontinued {
  border-left-color: #b73b3b !important;
}

@media (max-width: 720px) {
  .reach-b2b-product-quote > *,
  .reach-b2b-cart-quote > *,
  .reach-b2b-guest-quote form > *,
  .reach-b2b-restock-form > * {
    width: 100%;
  }

  .reach-b2b-bulk-variations,
  .reach-b2b-quotes .shop_table,
  .reach-b2b-company-account table {
    display: block;
    overflow-x: auto;
  }
}

/* Appliance model lookup and product compatibility */
.reach-model-lookup,
.reach-product-compatibility-checker {
  margin: 1rem 0;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid var(--reach-b2b-border);
  border-radius: 12px;
  background: #fff;
  color: var(--reach-b2b-navy);
}

.reach-model-lookup form,
.reach-product-compatibility-checker {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}

.reach-model-lookup form > label,
.reach-product-compatibility-checker > label {
  flex: 1 1 280px;
  margin: 0;
}

.reach-model-lookup input,
.reach-product-compatibility-checker input {
  width: 100%;
  min-height: 48px;
  margin-top: 0.45rem;
  border: 1px solid var(--reach-b2b-border);
  border-radius: 8px;
  background: #fff;
}

.reach-model-lookup button,
.reach-product-compatibility-checker button {
  min-height: 48px;
}

.reach-product-compatibility-checker button.is-loading {
  position: relative;
  padding-right: 2.65rem;
  cursor: wait;
}

.reach-product-compatibility-checker button.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.9rem;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: -0.55rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: reach-b2b-spin 0.75s linear infinite;
}

.reach-compatibility-result {
  flex-basis: 100%;
}

.reach-compatibility-result .woocommerce-message,
.reach-compatibility-result .woocommerce-info,
.reach-compatibility-result .woocommerce-error {
  margin: 0.25rem 0 0;
}

.reach-model-captured {
  margin: 0.55rem 0 0;
  color: #506978;
  font-size: 0.9rem;
}

@keyframes reach-b2b-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .reach-model-lookup form > *,
  .reach-product-compatibility-checker > * {
    width: 100%;
  }
}
