/* Section wrapper spacing — padding zamiast margin: tło (::before) obejmuje spacing */
.ds-acf-section{padding-top:var(--ds-acf-m,60px);padding-bottom:var(--ds-acf-m,60px)}
@media(max-width:991px){.ds-acf-section{padding-top:var(--ds-acf-m-t,42px);padding-bottom:var(--ds-acf-m-t,42px)}}
@media(max-width:767px){.ds-acf-section{padding-top:var(--ds-acf-m-m,30px);padding-bottom:var(--ds-acf-m-m,30px)}}

/* Tło sekcji — pełna szerokość przez ::before wyłamujące się z kontenera motywu */
.ds-acf-section{position:relative;isolation:isolate}
.ds-acf-section::before{content:'';position:absolute;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);background-color:var(--ds-bg);z-index:-1;pointer-events:none}

/* Benefits */
.ds-acf-benefit-icon{max-width:64px}
.ds-acf-section--benefits_3icons h4{color:var(--ds-heading)}
.ds-acf-section--benefits_3icons p{color:var(--ds-text)}

/* Steps */
.ds-acf-step-icon-wrap{position:relative;display:inline-block;margin-bottom:8px}
.ds-acf-step-number{position:absolute;top:-6px;right:-10px;background:#333;color:#fff;width:24px;height:24px;border-radius:50%;font-size:13px;font-weight:700;line-height:24px;text-align:center}
.ds-acf-step-icon{max-width:48px}
.ds-acf-section--steps .ds-acf-step-number{background-color:var(--ds-num)}
.ds-acf-section--steps h5{color:var(--ds-heading)}
.ds-acf-section--steps p{color:var(--ds-text)}

/* Google maps */
.ds-acf-map-iframe{border:0;display:block}

/* FAQ */
.ds-acf-faq-header{cursor:pointer}
.ds-acf-section--faq_accordion .ds-acf-faq-header{background-color:var(--ds-header-bg)}
.ds-acf-section--faq_accordion .ds-acf-faq-header h5{color:var(--ds-header-text)}

/* Table */
.ds-acf-tbl-data{display:none}
.ds-acf-section--table .ds-acf-tbl thead th{background-color:var(--ds-header-bg);color:var(--ds-header-text)}
.ds-acf-section--table .ds-acf-tbl td{color:var(--ds-text)}

/* Video */
.ds-acf-video-wrap{width:var(--ds-acf-video-w,100%)}
@media(max-width:767px){.ds-acf-video-wrap{width:100%!important}}

/* Video + tekst 50/50 */
.ds-acf-section--video_text_50_50 h3,.ds-acf-section--video_text_50_50 h4{color:var(--ds-heading)}
.ds-acf-section--video_text_50_50 .btn-border{background-color:var(--ds-btn-bg);color:var(--ds-btn-text);border-color:var(--ds-btn-bg)}

/* Full-width banner */
.ds-acf-banner{background-size:cover;background-position:center}
.ds-acf-section--full_width_banner h2,.ds-acf-section--full_width_banner p.lead{color:var(--ds-text)}
.ds-acf-section--full_width_banner .btn-primary{background-color:var(--ds-btn-bg);color:var(--ds-btn-text);border-color:var(--ds-btn-bg)}

/* Text + image 50/50 */
.ds-acf-section--text_image_50_50 h3,.ds-acf-section--text_image_50_50 h4{color:var(--ds-heading)}
.ds-acf-section--text_image_50_50 .btn-border{background-color:var(--ds-btn-bg);color:var(--ds-btn-text);border-color:var(--ds-btn-bg)}

/* Text 2 columns */
.ds-acf-section--text_2col h3{color:var(--ds-heading)}

/* Quote */
.ds-acf-section--quote p{color:var(--ds-text)}
.ds-acf-section--quote .blockquote-footer{color:var(--ds-author)}

/* Product carousel */
.ds-acf-product-carousel .slick-slide{padding:0 8px;box-sizing:border-box}
.ds-acf-product-carousel .product-miniature{text-align:center}
.ds-acf-product-carousel .product-miniature img{max-width:100%;height:auto;border-radius:4px}
.ds-acf-product-carousel .product-title{font-size:14px;margin-top:8px}
.ds-acf-product-carousel .product-price{font-size:15px;font-weight:700;margin-top:4px}
.ds-acf-product-carousel .product-price-old{text-decoration:line-through;color:#999;font-weight:400;font-size:13px;margin-right:6px}
.ds-acf-product-carousel .product-price-sale{color:#e74c3c}
.ds-acf-product-carousel .slick-prev,.ds-acf-product-carousel .slick-next{z-index:1}
.ds-acf-section--product_carousel .ds-acf-section-title{color:var(--ds-heading)}

/* Hide native PS blocks when ACF placeholder is present on the page */
body:has(#ds-acf-products-target) #main>#products,
body:has(#ds-acf-products-target) #main>.container>#products{display:none}
body:has(#ds-acf-product-desc-target) .product-container-bottom>.col-md-12>.inner>#product-description{display:none}
body:has(#ds-acf-product-specs-target) .product-container-bottom>.col-md-12>.inner>#product-details{display:none}
body:has(#ds-acf-product-reviews-target) .product-container-bottom>.col-md-12>.inner>#productopinions,
body:has(#ds-acf-product-reviews-target) .product-container-bottom>.col-md-12>.inner>#extra-0{display:none}
