/* RescoFlow v1.2.4 – neutral, theme-friendly, scoped styles. */
.rf-section{--rf-accent:#315e4a;--rf-surface:#f7f9f6;--rf-cols:4;--rf-border:#dce5df;box-sizing:border-box;width:100%;max-width:1250px;margin:32px auto;padding:clamp(18px,3vw,29px);color:inherit;background:var(--rf-surface);border:1px solid var(--rf-border);border-radius:19px;font-family:inherit;line-height:1.5}
.rf-section *,.rf-section *:before,.rf-section *:after{box-sizing:border-box}
.rf-section .rf-head{display:block;margin-bottom:20px}
.rf-section .rf-kicker{display:block;margin:0 0 5px;font-size:11px;letter-spacing:.11em;font-weight:750;color:var(--rf-accent)}
.rf-section .rf-heading{font:inherit;font-size:clamp(21px,2.2vw,30px)!important;line-height:1.26!important;margin:0!important;font-weight:700!important;color:inherit!important}
.rf-section .rf-grid{display:grid;grid-template-columns:repeat(var(--rf-cols),minmax(0,1fr));gap:13px}
.rf-section .rf-card{display:flex;min-width:0;flex-direction:column;background:#fff;border:1px solid var(--rf-border);border-radius:15px;overflow:hidden;transition:box-shadow .2s,transform .2s}
.rf-section .rf-card:hover{box-shadow:0 9px 25px rgba(19,45,31,.07);transform:translateY(-2px)}
.rf-section .rf-media{display:flex;align-items:center;justify-content:center;aspect-ratio:1.2;background:#fbfcfb;text-decoration:none!important;padding:12px}
.rf-section .rf-media img.rf-image{display:block!important;max-height:180px!important;max-width:100%!important;height:auto!important;width:auto!important;object-fit:contain!important}
.rf-section .rf-card-body{display:flex;flex:1;flex-direction:column;gap:9px;padding:15px 16px 16px}
.rf-section .rf-type{align-self:start;max-width:100%;border-radius:99px;background:var(--rf-surface);padding:4px 9px;font-size:10.5px;line-height:1.35;font-weight:650;color:var(--rf-accent);white-space:normal;overflow-wrap:anywhere}
.rf-section .rf-name{margin:0!important;font-family:inherit!important;font-size:clamp(13px,1.05vw,16px)!important;line-height:1.4!important;font-weight:700!important}
.rf-section .rf-name a{color:inherit!important;text-decoration:none!important}
.rf-section .rf-name a:hover{text-decoration:underline!important}
.rf-section .rf-price{margin:0;font-size:17px;font-weight:750;color:inherit}
.rf-section .rf-price del{font-weight:400;opacity:.55;font-size:13px}
.rf-section .rf-price ins{text-decoration:none}
.rf-section .rf-why{margin:0;padding-top:2px;font-size:12px;color:inherit;opacity:.85}
.rf-section .rf-why summary{cursor:pointer;font-weight:650;color:var(--rf-accent)}
.rf-section .rf-why ul{padding-left:18px;margin:7px 0 2px}
.rf-section .rf-why li{margin:0 0 4px}
.rf-section .rf-cta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:12px;border-top:1px solid var(--rf-border);font-weight:700;font-size:12px;color:var(--rf-accent)!important;text-decoration:none!important}
.rf-section .rf-cta:hover{text-decoration:underline!important}
.rf-section .rf-add{display:block;text-align:center;text-decoration:none!important;background:var(--rf-accent);color:#fff!important;font-size:12px;font-weight:700;padding:9px 12px;border-radius:8px;margin-top:3px}
.rf-section .rf-add:hover{filter:brightness(.88)}
.rf-section :is(a,summary):focus-visible{outline:3px solid var(--rf-accent);outline-offset:3px}
@media(max-width:1020px){.rf-section .rf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.rf-section .rf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}/* compact header also works on narrow screens */}
@media(max-width:480px){.rf-section{margin:18px auto;padding:15px 11px;border-radius:14px}.rf-section .rf-grid{gap:8px}.rf-section .rf-card-body{padding:11px 10px}.rf-section .rf-name{font-size:12.5px!important}.rf-section .rf-media{padding:7px}.rf-section .rf-subtitle{max-width:none}.rf-section .rf-price{font-size:14px}}
@media(max-width:340px){.rf-section .rf-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.rf-section .rf-card{transition:none}.rf-section .rf-card:hover{transform:none}}

/* Optional: native recommendations in WooCommerce block themes.
   Scoped to product page, only with a RescoFlow result and merchant opt-in. */
body.single-product.rescoflow-hide-native-recommendations .woocommerce .related.products,
body.single-product.rescoflow-hide-native-recommendations .woocommerce .up-sells.upsells.products,
body.single-product.rescoflow-hide-native-recommendations .woocommerce .upsells.products,
body.single-product.rescoflow-hide-native-recommendations .wp-block-woocommerce-related-products,
body.single-product.rescoflow-hide-native-recommendations .wp-block-woocommerce-product-upsells,
body.single-product.rescoflow-hide-native-recommendations .wc-block-product-upsells {display:none!important}

/* WooCommerce Product Collection (Related/Upsells) is now handled before block rendering;
   no unscoped CSS hiding general product collections. */

/* RescoFlow 1.3.9 — center small recommendation groups on wide cart sections.
   Only the internal grid changes; empty cart and mobile remain unaffected. */
@media(min-width:761px){
.rf-section .rf-grid.rf-grid-1{grid-template-columns:minmax(0,min(100%,340px));justify-content:center}
.rf-section .rf-grid.rf-grid-2{grid-template-columns:repeat(2,minmax(0,340px));justify-content:center}
.rf-section .rf-grid.rf-grid-3{grid-template-columns:repeat(3,minmax(0,340px));justify-content:center}
}
@media(max-width:760px) and (min-width:481px){.rf-section .rf-grid.rf-grid-1{grid-template-columns:minmax(0,min(100%,340px));justify-content:center}}
@media(max-width:480px){.rf-section .rf-grid.rf-grid-1{grid-template-columns:minmax(0,1fr)}}
