/*
 * B2B RFQ Core — managed SKU product layout guard
 * v1.2.0-rc25
 *
 * Keep the global/full-width shell, while making the single-product hero and
 * every after-summary section establish an explicit layout boundary.
 */

.single-product.bccc-product-managed div.product::after{
  content:"";
  display:table;
  clear:both;
}

/* Woo/BCCC sections rendered after the floated image + summary must always
 * start below both columns, never inside the few pixels left beside them. */
.single-product div.product > .bcc-about-model,
.single-product div.product > .bcc-product-details,
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .b2b-product-discovery,
.single-product div.product > .b2b-dynamic-related,
.single-product div.product > .related,
.single-product div.product > section.related{
  clear:both;
  float:none;
  box-sizing:border-box;
}

.single-product .bcc-about-model{
  width:min(1180px,100%);
  margin:clamp(30px,3vw,48px) auto 0;
}
.single-product .bcc-about-model__content{
  max-width:820px;
}
.single-product .bcc-about-model .bcc-section-title,
.single-product .bcc-product-details .bcc-section-title{
  white-space:normal;
  word-break:normal;
  overflow-wrap:break-word;
}

@media (max-width:768px){
  .single-product .bcc-about-model{
    width:100%;
    margin-top:28px;
  }
}

/* =========================================================
 * v1.2.0-rc18 — shared B2B product-detail visual system
 * Ordinary Woo products use the same hero rhythm as managed BCCC SKUs while
 * retaining their simpler data model (no Family/variant selector).
 * ========================================================= */
@media (min-width:769px){
  .single-product.b2b-has-product-image div.product div.images{
    width:min(41%,520px)!important;
    max-width:520px!important;
    float:left!important;
    margin:0 clamp(34px,3.2vw,60px) 32px 0!important;
    padding-left:clamp(8px,.8vw,16px);
    padding-right:clamp(4px,.45vw,10px);
  }
  .single-product.b2b-has-product-image div.product div.images img{
    margin-left:auto;
    margin-right:auto;
  }
  .single-product.b2b-has-product-image div.product div.summary{
    width:calc(100% - min(41%,520px) - clamp(34px,3.2vw,60px))!important;
    min-width:0!important;
    max-width:none!important;
    float:left!important;
    margin:0!important;
    padding:0!important;
  }
}

.single-product.b2b-ordinary-product-detail .summary>.yith-ywraq-add-to-quote{
  display:none!important;
}
.single-product.b2b-ordinary-product-detail .summary>.clear{
  display:none;
}

.b2b-standard-key-facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  margin:18px 0 0;
  padding:0;
  border-top:1px solid #dce3e8;
  border-bottom:1px solid #dce3e8;
}
.b2b-standard-key-facts__item{
  min-width:0;
  padding:13px 18px 13px 0;
}
.b2b-standard-key-facts__item:nth-child(even){padding-left:18px;border-left:1px solid #e6ebef}
.b2b-standard-key-facts__item dt{
  margin:0 0 4px;
  color:#617484;
  font-size:11px;
  font-weight:850;
  letter-spacing:.06em;
  line-height:1.35;
  text-transform:uppercase;
}
.b2b-standard-key-facts__item dd{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  margin:0;
  color:#102d44;
  font-size:14px;
  font-weight:800;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.b2b-standard-key-facts__series-link{
  color:#0d4f75;
  text-decoration:none;
  text-underline-offset:3px;
}
.b2b-standard-key-facts__series-link:hover,
.b2b-standard-key-facts__series-link:focus{
  color:#0b2235;
  text-decoration:underline;
}
.b2b-standard-key-facts .b2b-copy-mpn{
  flex:0 0 auto;
  min-height:28px;
  padding:3px 8px;
  border:1px solid #cfdbe3;
  border-radius:5px;
  background:#fff;
  color:#36576d;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.b2b-standard-commercial{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid #dce3e8;
}
.b2b-standard-commercial__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:12px;
}
.b2b-standard-commercial__eyebrow{
  display:block;
  margin-bottom:3px;
  color:#617484;
  font-size:11px;
  font-weight:850;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.b2b-standard-commercial__head h2{
  margin:0;
  color:#102d44;
  font-size:18px;
  line-height:1.3;
}
.b2b-standard-commercial__minimum{
  display:grid;
  gap:2px;
  flex:0 0 auto;
  min-width:105px;
  text-align:right;
}
.b2b-standard-commercial__minimum span{
  color:#6a7c89;
  font-size:11px;
  font-weight:750;
  text-transform:uppercase;
}
.b2b-standard-commercial__minimum strong{
  color:#102d44;
  font-size:14px;
}
.single-product .b2b-standard-commercial .b2b-procurement-panel{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(290px,.72fr);
  gap:16px 22px;
  align-items:end;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.single-product .b2b-standard-commercial__price-body{min-width:0}
.single-product .b2b-standard-commercial .b2b-procurement-tier-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.single-product .b2b-standard-commercial .b2b-procurement-tier{
  display:flex;
  min-height:78px;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding:12px 14px;
  border:1px solid #d9e2e8;
  border-radius:7px;
  background:#fff;
}
.single-product .b2b-standard-commercial .b2b-procurement-tier span{
  color:#687b88;
  font-size:11px;
  font-weight:700;
}
.single-product .b2b-standard-commercial .b2b-procurement-tier strong{
  color:#102d44;
  font-size:20px;
  font-weight:850;
  text-align:left;
}
.single-product .b2b-standard-commercial .b2b-procurement-unit-price,
.single-product .b2b-standard-commercial .b2b-procurement-rfq-price{
  display:flex;
  min-height:78px;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding:12px 14px;
  border:1px solid #d9e2e8;
  border-radius:7px;
  background:#fff;
}
.single-product .b2b-standard-commercial .b2b-procurement-unit-price span,
.single-product .b2b-standard-commercial .b2b-procurement-rfq-price span{
  color:#687b88;
  font-size:11px;
}
.single-product .b2b-standard-commercial .b2b-procurement-unit-price strong,
.single-product .b2b-standard-commercial .b2b-procurement-rfq-price strong{
  color:#102d44;
  font-size:20px;
  font-weight:850;
}
.single-product .b2b-standard-commercial .b2b-procurement-quote{
  display:grid;
  grid-template-columns:minmax(120px,.7fr) minmax(160px,1fr);
  gap:8px 10px;
  align-items:end;
  margin:0;
  padding:0;
  border:0;
}
.single-product .b2b-standard-commercial .b2b-procurement-quote label{
  display:grid;
  grid-template-columns:1fr;
  gap:4px;
}
.single-product .b2b-standard-commercial .b2b-procurement-quote input{
  height:44px;
  text-align:left;
}
.single-product .b2b-standard-commercial .b2b-procurement-quote button{
  min-height:44px;
  font-size:13px;
}
.single-product .b2b-standard-commercial .b2b-procurement-status,
.single-product .b2b-standard-commercial .b2b-procurement-quote-link{
  grid-column:1/-1;
}
.b2b-standard-commercial__note{
  margin:10px 0 0;
  color:#71818d;
  font-size:11px;
  line-height:1.5;
}
.single-product.b2b-ordinary-product-detail .b2b-unlisted-inline{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid #edf1f4;
  color:#667985;
  font-size:12px;
}
.single-product .b2b-managed-product-meta,
.single-product .b2b-ordinary-product-meta{
  margin-top:16px;
  color:#6b7d89;
  font-size:11px;
}

@media (max-width:1050px){
  .single-product .b2b-standard-commercial .b2b-procurement-panel{
    grid-template-columns:1fr;
  }
  .single-product .b2b-standard-commercial .b2b-procurement-quote{
    grid-template-columns:minmax(150px,.65fr) minmax(190px,1fr);
    max-width:520px;
  }
}
@media (max-width:768px){
  .b2b-standard-key-facts{grid-template-columns:1fr}
  .b2b-standard-key-facts__item,
  .b2b-standard-key-facts__item:nth-child(even){padding:11px 0;border-left:0;border-top:1px solid #edf1f4}
  .b2b-standard-key-facts__item:first-child{border-top:0}
  .b2b-standard-commercial__head{align-items:flex-start;flex-direction:column;gap:8px}
  .b2b-standard-commercial__minimum{text-align:left}
  .single-product .b2b-standard-commercial .b2b-procurement-tier-list{grid-template-columns:1fr}
  .single-product .b2b-standard-commercial .b2b-procurement-quote{grid-template-columns:1fr;max-width:none}
  .single-product .b2b-standard-commercial .b2b-procurement-quote label,
  .single-product .b2b-standard-commercial .b2b-procurement-quote button,
  .single-product .b2b-standard-commercial .b2b-procurement-status,
  .single-product .b2b-standard-commercial .b2b-procurement-quote-link{grid-column:1;grid-row:auto}
}


/* =========================================================
 * v1.2.0-rc20 — mobile product image + related products
 * Keep ordinary Woo product imagery at the same comfortable mobile scale as
 * managed Family/SKU pages, and use a compact two-column related-products grid.
 * ========================================================= */
@media (max-width:768px){
  .single-product.b2b-has-product-image div.product div.images,
  .single-product.bccc-product-managed.b2b-has-product-image div.product div.images{
    width:100%!important;
    max-width:min(86vw,340px)!important;
    float:none!important;
    margin:0 auto 20px!important;
  }

  .single-product .b2b-dynamic-related-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch;
  }
  .single-product .b2b-related-card{
    min-width:0;
    height:100%;
  }
  .single-product .b2b-related-card-image{
    display:block;
    padding:8px 8px 0;
  }
  .single-product .b2b-related-card-image img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:contain;
  }
  .single-product .b2b-related-card-body{
    padding:10px;
  }
  .single-product .b2b-related-card-eyebrow{
    font-size:9px;
    line-height:1.35;
  }
  .single-product .b2b-related-card-body h3{
    margin:4px 0 7px;
    font-size:12px;
    line-height:1.38;
    overflow-wrap:anywhere;
  }
  .single-product .b2b-related-card-meta{
    display:grid;
    gap:2px;
    font-size:10px;
    line-height:1.35;
  }
  .single-product .b2b-related-card-link{
    margin-top:auto;
    padding:8px 10px;
    font-size:10px;
  }
}

@media (max-width:360px){
  .single-product .b2b-dynamic-related-grid{gap:8px!important;}
  .single-product .b2b-related-card-image{padding:6px 6px 0;}
  .single-product .b2b-related-card-body{padding:8px;}
}


/* =========================================================
 * v1.2.0-rc23 — unified Description / About / Specifications tabs
 * BCCC sections now live inside WooCommerce tab panels rather than as
 * free-standing full-width blocks below the hero.
 * ========================================================= */
.single-product .woocommerce-tabs .bcc-about-model,
.single-product .woocommerce-tabs .bcc-product-details{
  width:100%;
  max-width:none;
  margin:0;
}
.single-product .woocommerce-tabs .bcc-about-model__content{
  max-width:920px;
}
.single-product .woocommerce-tabs .bcc-product-details .bcc-spec-list{
  width:100%;
}
.single-product .woocommerce-tabs .b2b-about-item{
  margin:0;
}
.single-product .woocommerce-tabs .b2b-about-item>h2{
  margin:0 0 14px;
  color:var(--b2bcore-ink);
  font-size:var(--b2bcore-h2);
}
.single-product .woocommerce-tabs .b2b-about-item__content{
  max-width:920px;
  color:var(--b2bcore-text);
}
.single-product .woocommerce-tabs .b2b-about-item__content>:first-child,
.single-product .woocommerce-tabs .bcc-about-model__content>:first-child{margin-top:0}
.single-product .woocommerce-tabs .b2b-about-item__content>:last-child,
.single-product .woocommerce-tabs .bcc-about-model__content>:last-child{margin-bottom:0}

@media (max-width:768px){
  .single-product .woocommerce-tabs ul.tabs{
    grid-template-columns:repeat(auto-fit,minmax(92px,1fr))!important;
  }
  .single-product .woocommerce-tabs .bcc-spec-list__row{
    grid-template-columns:minmax(112px,.42fr) minmax(0,1fr);
    gap:10px;
  }
}

/* =========================================================
 * v1.2.0-rc24 — shared product RFQ actions
 * ========================================================= */
.single-product .b2b-standard-commercial .b2b-procurement-quote button[data-b2b-catalogue-rfq],
.single-product .bcc-rfq-button{
  border-color:var(--b2bcore-orange)!important;
  background:var(--b2bcore-orange)!important;
  color:#fff!important;
}
.single-product .b2b-standard-commercial .b2b-procurement-quote button[data-b2b-catalogue-rfq]:hover,
.single-product .b2b-standard-commercial .b2b-procurement-quote button[data-b2b-catalogue-rfq]:focus,
.single-product .bcc-rfq-button:hover,
.single-product .bcc-rfq-button:focus{
  border-color:var(--b2bcore-orange-hover)!important;
  background:var(--b2bcore-orange-hover)!important;
  color:#fff!important;
}
.single-product .b2b-standard-commercial .b2b-procurement-quote button[data-b2b-catalogue-rfq].is-added{
  border-color:#247a52!important;
  background:#247a52!important;
}

.single-product .b2b-custom-project-link{
  clear:both;
  margin:14px 0 0;
  padding-top:12px;
  border-top:1px solid #edf1f4;
  color:#667985;
  font-size:14px;
}
.single-product .b2b-custom-project-link a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#0d4f75;
  font-size:14px;
  font-weight:800;
  line-height:1.5;
  text-decoration:none;
  text-underline-offset:3px;
}
.single-product .b2b-custom-project-link a:hover,
.single-product .b2b-custom-project-link a:focus{
  color:#0b2235;
  text-decoration:underline;
}


/* =========================================================
 * 1.2.0-rc43.5 — semantic Key Product Highlights
 *
 * This is intentionally a buyer-facing bullet module rather than another
 * key/value specification table. Raw technical values remain in Specifications.
 * ========================================================= */
.single-product .summary .bcc-product-highlights{
  margin:18px 0 20px;
  padding:16px 18px;
  border:1px solid #dce3e8;
  border-radius:8px;
  background:#fff;
}
.single-product .summary .bcc-product-highlights__title{
  margin:0 0 9px;
  color:#102d44;
  font-size:14px;
  font-weight:750;
  line-height:1.35;
}
.single-product .summary .bcc-product-highlights__list{
  display:grid;
  gap:9px;
  margin:0;
  padding:0;
  list-style:none;
}
.single-product .summary .bcc-product-highlights__item{
  position:relative;
  margin:0;
  padding-left:16px;
  color:#40505f;
  font-size:12.5px;
  line-height:1.5;
}
.single-product .summary .bcc-product-highlights__item::before{
  content:"";
  position:absolute;
  left:0;
  top:.62em;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#f07b24;
}
.single-product .summary .bcc-product-highlights__label{
  color:#172432;
  font-weight:800;
}
.single-product .summary .bcc-product-highlights__label::after{
  content:" —";
}
.single-product .summary .bcc-product-highlights__text{
  color:#40505f;
}

@media (max-width:768px){
  .single-product .summary .bcc-product-highlights{
    margin:15px 0 18px;
    padding:14px 15px;
  }
  .single-product .summary .bcc-product-highlights__title{
    font-size:13.5px;
  }
  .single-product .summary .bcc-product-highlights__item{
    font-size:12px;
    line-height:1.48;
  }
}
