/*
 * Compact B2B legacy single product layout.
 * AJM Portal Theme v1.9.9
 */

.legacy-single-product--b2b .single-product__title {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.legacy-single-product--b2b .legacy-single-product__description {
  max-width: 860px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--ajm-color-border);
}

.legacy-single-product--b2b .legacy-single-product__description > h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.18;
}

.legacy-single-product__actions {
  margin-top: 1.5rem;
}

.legacy-single-product__content--b2b {
  max-width: 760px;
  color: var(--ajm-color-text);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

.legacy-single-product__content--b2b > * {
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
}

.legacy-single-product__content--b2b > * + * {
  margin-top: 0.65rem;
}

.legacy-single-product__content--b2b .wp-block-media-text {
  display: block !important;
  grid-template-columns: none !important;
  max-width: 760px;
}

.legacy-single-product__content--b2b .wp-block-media-text__media {
  display: none !important;
}

.legacy-single-product__content--b2b .wp-block-media-text__content {
  display: block;
  max-width: 760px;
  padding: 0 !important;
  margin: 0;
  text-align: left;
}

.legacy-single-product__content--b2b .wp-block-media-text__content > * {
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.legacy-single-product__content--b2b p {
  margin: 0;
  font-size: 1rem !important;
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
}

.legacy-single-product__content--b2b p:first-of-type {
  max-width: 720px;
  margin-bottom: 0.85rem;
  color: var(--ajm-color-text);
  font-size: 1.05rem !important;
  line-height: 1.55;
  font-weight: 500;
  text-align: left;
}

.legacy-single-product__content--b2b p:first-of-type em,
.legacy-single-product__content--b2b p:first-of-type strong {
  font-style: normal;
}

.legacy-single-product__content--b2b h2,
.legacy-single-product__content--b2b h3,
.legacy-single-product__content--b2b h4 {
  margin: 1.5rem 0 0.55rem;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.22;
  text-align: left;
}

.legacy-single-product__content--b2b ul,
.legacy-single-product__content--b2b ol {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  text-align: left;
}

.legacy-single-product__content--b2b li {
  padding-left: 0.15rem;
}

.legacy-single-product__content--b2b li + li {
  margin-top: 0.35rem;
}

.legacy-single-product__content--b2b img,
.legacy-single-product__content--b2b figure,
.legacy-single-product__content--b2b .wp-block-image,
.legacy-single-product__content--b2b hr {
  display: none !important;
}

.legacy-single-product__content--b2b a {
  color: var(--ajm-color-accent);
  font-weight: 700;
}

.legacy-single-product__content--b2b .wp-block-columns {
  display: block;
}

.legacy-single-product__content--b2b .wp-block-column {
  width: 100%;
  margin-left: 0;
}

@media (max-width: 760px) {
  .legacy-single-product--b2b .single-product__title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .legacy-single-product__content--b2b,
  .legacy-single-product__content--b2b p {
    font-size: 1rem;
  }

  .legacy-single-product__content--b2b p:first-of-type {
    font-size: 1.03rem !important;
  }
}

/* AJM staging brand refresh v1.2 single product mobile fixes */
@media (max-width: 760px) {
  .single-product__title,
  .legacy-single-product--b2b .single-product__title {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.04;
  }

  .legacy-single-product__content--b2b,
  .legacy-single-product__content--b2b p,
  .legacy-single-product__content--clean,
  .legacy-single-product__content--clean p {
    font-size: clamp(1rem, 4.4vw, 1.12rem);
    line-height: 1.55;
  }
}
/* End AJM staging brand refresh v1.2 single product mobile fixes */
