body.woocommerce-checkout .co-conversion-policy{padding:14px!important;border:1px solid #c9ab58;border-radius:8px;background:#fffdf4;margin:12px 0!important;scroll-margin-block:180px}
body.woocommerce-checkout .co-conversion-policy label{display:flex!important;align-items:flex-start;gap:12px;min-height:44px;line-height:1.6;cursor:pointer}
body.woocommerce-checkout .co-conversion-policy input#terms{width:24px!important;height:24px!important;min-width:24px;margin:9px 0!important;position:static!important;appearance:auto!important;opacity:1!important;flex:0 0 24px;accent-color:#806516}
body.woocommerce-checkout .co-conversion-policy .woocommerce-terms-and-conditions-checkbox-text{padding:6px 0;min-width:0}
body.woocommerce-checkout #co-conversion-policy-hint{font-size:14px;line-height:1.5;color:#4a4a4a;margin:8px 0 0}
body.woocommerce-checkout .co-conversion-policy a{text-decoration:underline;text-underline-offset:2px}
.co-conversion-purchase-info{margin:14px 0;padding:12px 14px;border:1px solid #dfd4b6;border-radius:8px;background:#fffdf5;font-size:14px;line-height:1.55;color:#303030}
.co-conversion-purchase-info p{margin:0 0 5px}
.co-conversion-purchase-info a{display:inline-flex;align-items:center;min-height:44px;margin-right:18px;color:#654900;text-decoration:underline}

/* Header height already includes the toolbar. Remove only its second reservation.
   Custom PDPs have no page-container, so compensate their body padding instead. */
body.co-conversion-storefront.admin-bar .co-site-header{top:var(--wp-admin--admin-bar--height,32px)!important}
body.co-conversion-storefront.admin-bar #page-container{margin-top:calc(-1 * var(--wp-admin--admin-bar--height,32px))!important}
body.co-conversion-storefront.admin-bar:is(.co-shop-product-custom,.co-checkout-custom){padding-top:calc(var(--co-header-h,148px) - var(--wp-admin--admin-bar--height,32px))!important}
@media(max-width:782px){
 body.co-conversion-storefront.admin-bar .co-site-header{top:var(--wp-admin--admin-bar--height,46px)!important}
 body.co-conversion-storefront.admin-bar #page-container{margin-top:calc(-1 * var(--wp-admin--admin-bar--height,46px))!important}
 body.co-conversion-storefront.admin-bar:is(.co-shop-product-custom,.co-checkout-custom){padding-top:calc(var(--co-header-h,139px) - var(--wp-admin--admin-bar--height,46px))!important}
}
/* Preserve native purchasing/disabled states; align visible controls and targets. */
body.co-conversion-storefront .co-product-cta,
body.co-conversion-storefront .co-product-actions>.button{min-height:44px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center;justify-content:center;line-height:1.25!important}
body.co-conversion-storefront .co-bb-buy-actions button,
body.co-conversion-storefront #place_order{min-height:52px!important}
body.co-conversion-storefront .co-product-card{min-width:0}
body.co-conversion-storefront .co-product-card__body>.co-product-cta{margin-top:auto}
body.co-conversion-storefront .co-shop-toolbar .orderby,
body.co-conversion-storefront .co-instock-toggle{min-height:44px;box-sizing:border-box}
/* Replace inherited float widths/margins with explicit row tracks. Last-row
   artwork keeps the same size. Mobile retains the established comparison list. */
body.co-conversion-storefront ul.products:has(>.co-shop-card-item){display:grid!important;grid-template-columns:minmax(0,1fr);gap:14px!important;align-items:stretch; margin-bottom:24px!important}
body.co-conversion-storefront ul.products:has(>.co-shop-card-item)::before,
body.co-conversion-storefront ul.products:has(>.co-shop-card-item)::after{display:none!important}
body.co-conversion-storefront ul.products li.product.co-shop-card-item:nth-child(n){width:100%!important;float:none!important;clear:none!important;margin:0!important;min-width:0}
body.co-conversion-storefront .co-shop-card-item>.co-product-card{width:100%;height:auto;align-self:stretch}
@media(min-width:768px){
 body.co-conversion-storefront ul.products:has(>.co-shop-card-item){grid-template-columns:repeat(2,minmax(0,1fr));gap:20px!important}
 body.co-conversion-storefront .co-shop-card-item .co-product-card__image{height:clamp(160px,18vw,240px);aspect-ratio:auto;flex-shrink:0}
 body.co-conversion-storefront .co-product-card__image img{object-fit:contain}
 body.co-conversion-storefront .co-bb-related .co-product-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:stretch}
 body.co-conversion-storefront .co-bb-related .co-product-card{height:auto;align-self:stretch}
 body.co-conversion-storefront .co-bb-related .co-product-card__image{height:220px;aspect-ratio:auto;flex-shrink:0}
}
@media(min-width:1025px){body.co-conversion-storefront ul.products:has(>.co-shop-card-item){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1281px){body.co-conversion-storefront ul.products:has(>.co-shop-card-item){grid-template-columns:repeat(4,minmax(0,1fr))}}

/* The legacy loop li uses column flex, where align-self stretches only width.
   A grid wrapper makes the shared card fill the actual row in both axes. */
body.co-conversion-storefront ul.products li.product.co-shop-card-item{display:grid!important}
body.co-conversion-storefront.woocommerce-shop #main-content .et_pb_section_0{padding-top:40px!important}
body.co-conversion-storefront.woocommerce-shop #main-content .et_pb_section_0>.et_pb_row:first-child{padding-top:0!important}
@media(max-width:767px){
 body.co-conversion-storefront.woocommerce-shop #main-content .et_pb_section_0{padding-top:24px!important}
 body.co-conversion-storefront .co-shop-toolbar__count{flex-basis:100%}
 body.co-conversion-storefront .co-shop-toolbar__controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;margin-left:0}
 body.co-conversion-storefront .co-instock-toggle{font-size:12px}
 body.co-conversion-storefront .co-shop-toolbar__sort{min-width:0}
 body.co-conversion-storefront .co-shop-toolbar__sort-label{display:none}
 body.co-conversion-storefront .co-shop-toolbar .woocommerce-ordering{width:100%;min-width:0}
 body.co-conversion-storefront .co-shop-toolbar .orderby{width:100%;min-width:0;max-width:100%;font-size:12px;padding-left:8px}
}

@media(max-width:767px){
 body.co-conversion-storefront .co-shop-toolbar__controls{grid-template-columns:minmax(0,1fr);gap:8px}
}

@media(max-width:767px){
 body.co-conversion-storefront .co-shop-toolbar .woocommerce-ordering select.orderby{width:100%!important;max-width:100%!important;min-width:0!important}
}
