/* Scoped styling keeps theme and WooCommerce product styling untouched. */
.cf-people-also-bought{box-sizing:border-box;max-width:100%;margin:18px 0;padding:var(--cf-pab-padding,16px);background:var(--cf-pab-box-bg,#fff);border:1px solid var(--cf-pab-border,#e7e7e7);border-radius:var(--cf-pab-radius,6px);overflow-wrap:anywhere}
.cf-people-also-bought *, .cf-people-also-bought *::before,.cf-people-also-bought *::after{box-sizing:border-box}
.cf-people-also-bought .cf-pab-heading{font-size:var(--cf-pab-heading-size,15px);font-weight:var(--cf-pab-heading-weight,600);color:var(--cf-pab-heading-color,#171717);line-height:1.3;margin:0 0 12px}
.cf-people-also-bought .cf-pab-products{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--cf-pab-row-gap,14px)}
.cf-people-also-bought.cf-pab-layout-grid .cf-pab-products{grid-template-columns:repeat(var(--cf-pab-columns,2),minmax(0,1fr))}
.cf-people-also-bought .cf-pab-product{display:flex;min-width:0;max-width:100%;gap:var(--cf-pab-gap,14px);align-items:center}
.cf-people-also-bought .cf-pab-image{display:block;flex:0 0 var(--cf-pab-image-size,84px);max-width:var(--cf-pab-image-size,84px);line-height:0}
.cf-people-also-bought .cf-pab-image img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;border-radius:4px}
.cf-people-also-bought .cf-pab-details{flex:1 1 0;min-width:0;align-self:center}
.cf-people-also-bought .cf-pab-details a.cf-pab-title{display:block;font-size:var(--cf-pab-title-size,14px);font-weight:var(--cf-pab-title-weight,600);color:var(--cf-pab-title-color,#d88700);line-height:1.4;margin:0 0 7px;text-decoration:none}
.cf-people-also-bought .cf-pab-details a.cf-pab-title:hover,.cf-people-also-bought .cf-pab-details a.cf-pab-title:focus{color:var(--cf-pab-title-hover-color,#ad6a00)}
/* Price and purchase action share a row, without forcing overflow on small screens. */
.cf-people-also-bought .cf-pab-purchase-row{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;min-width:0}
.cf-people-also-bought .cf-pab-price{font-size:var(--cf-pab-price-size,14px);font-weight:var(--cf-pab-price-weight,500);color:var(--cf-pab-price-color,#171717);line-height:1.4;margin:0;flex:0 1 auto;min-width:0}
.cf-people-also-bought .cf-pab-price :is(*,ins,del,bdi,span){color:inherit;font-size:inherit;font-weight:inherit}
.cf-people-also-bought .cf-pab-action{line-height:1.3;flex:0 1 auto;min-width:0}
.cf-people-also-bought .cf-pab-action a.button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;min-height:0;width:auto;white-space:normal;text-align:center;line-height:1.25;padding:var(--cf-pab-button-py,10px) var(--cf-pab-button-px,18px);font-size:var(--cf-pab-button-size,13px);font-weight:var(--cf-pab-button-weight,600);background:var(--cf-pab-button-bg,#0073cc);color:var(--cf-pab-button-color,#fff);border:0;border-radius:4px;text-decoration:none;margin:0}
.cf-people-also-bought .cf-pab-action a.button:hover,.cf-people-also-bought .cf-pab-action a.button:focus{background:var(--cf-pab-button-hover-bg,#005ca5);color:var(--cf-pab-button-hover-color,#fff)}
@media(max-width:767px){
 .cf-people-also-bought.cf-pab-layout-grid .cf-pab-products{grid-template-columns:minmax(0,1fr)}
 .cf-people-also-bought .cf-pab-image{flex-basis:var(--cf-pab-mobile-image-size,64px);max-width:var(--cf-pab-mobile-image-size,64px)}
 .cf-people-also-bought .cf-pab-action a.button{font-size:var(--cf-pab-mobile-button-size,12px);padding:var(--cf-pab-mobile-button-py,8px) var(--cf-pab-mobile-button-px,12px)}
}
@media(max-width:380px){
 .cf-people-also-bought .cf-pab-product{gap:min(var(--cf-pab-gap,14px),10px)}
 .cf-people-also-bought{padding:min(var(--cf-pab-padding,16px),12px)}
}

/* Optional colour bar: negative margins span the container's padding, while
   overflow:hidden and border-radius on the outer box clip the bar cleanly. */
.cf-people-also-bought.cf-pab-heading-filled{overflow:hidden}
.cf-people-also-bought.cf-pab-heading-filled .cf-pab-heading{
 display:block;
 background:var(--cf-pab-heading-bg,#0073cc);
 margin:calc(-1 * var(--cf-pab-padding,16px)) calc(-1 * var(--cf-pab-padding,16px)) 14px;
 padding:var(--cf-pab-heading-py,10px) var(--cf-pab-heading-px,18px);
}
@media(max-width:380px){
 .cf-people-also-bought.cf-pab-heading-filled{padding:var(--cf-pab-padding,16px)}
}
