/* Small corrections shared by the existing Bitrix pages; no business state changes. */
.cfr-menu-title{font-size:20px;line-height:1.3;font-weight:600}
.cfr-order-options-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:12px 0;border:0;background:transparent;color:#4c2940;font:600 16px/1.4 var(--font-family);text-align:left}
.cfr-order-options-toggle::after{content:'⌄';font-size:22px;line-height:1;transition:transform .15s}
.cfr-order-options-toggle[aria-expanded=true]::after{transform:rotate(180deg)}
.cfr-order-options-toggle:focus-visible{outline:2px solid #b53b64;outline-offset:3px}
.cfr-step-body .order-textarea-title{margin-top:16px;margin-bottom:8px}
.cfr-step-body .order-textarea{min-height:100px;width:100%;box-sizing:border-box}
.cfr-redesign .order-form-checkout-store>.order-form-checkout-title{display:none}
.cfr-redesign #basket-root,.cfr-redesign [data-cfr-addon-context=basket]{overflow-anchor:none}
.cfr-optional-marketing{margin:16px 0;padding:12px 0;border-top:1px solid #e5d8df}
.cfr-optional-marketing summary{cursor:pointer;min-height:44px;display:list-item;font-size:14px;line-height:1.5}
.cfr-optional-marketing p,.order-form-checkout-agreement>p{font-size:13px;line-height:1.5;margin:6px 0 12px}
@media(max-width:800px){
 .cfr-redesign footer.cfr-shared-footer{padding:22px 20px calc(92px + env(safe-area-inset-bottom));}
 .cfr-shared-footer nav[aria-label="Информация в подвале"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
 .cfr-shared-footer nav[aria-label="Информация в подвале"] a{display:flex;align-items:center;min-height:44px;line-height:1.4;margin:0;padding:6px 0;font-size:13px}
 .cfr-shared-footer>p:last-child{display:flex;align-items:center;flex-wrap:wrap;gap:0 8px;margin:8px 0 0;font-size:12px;line-height:1.4}
 .cfr-shared-footer>p:last-child a,.cfr-shared-footer>p:last-child button{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:5px 0;font:inherit}
 .cfr-shared-footer .cfr-company-links{margin:8px 0}
 .cfr-shared-footer .cfr-company-note{font-size:12px!important;line-height:1.4!important;margin:4px 0 12px!important}
}
/* Keep photographs visible even when the optional slider fails to initialise. */
.cfr-redesign .product-top-gallery:not(.slick-initialized){display:flex;overflow-x:auto;opacity:1!important;scroll-snap-type:x mandatory;scrollbar-width:thin}
.cfr-redesign .product-top-gallery:not(.slick-initialized)>div{flex:0 0 100%;min-width:0;scroll-snap-align:start}
.cfr-redesign .product-top-gallery:not(.slick-initialized) img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.cfr-redesign .block-links{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px;align-items:stretch}
.cfr-redesign .block-links a{width:auto!important;margin:0!important;padding:10px 0;min-height:44px;box-sizing:border-box;line-height:1.5;float:none;align-self:stretch}
@media(max-width:800px){.cfr-redesign .block-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.cfr-redesign .block-links a{font-size:13px}}
/* Use the same existing action colour as the native add-to-basket control. */
.cfr-redesign .cfr-filter-toggle,.cfr-redesign .cfr-filter-actions button,.cfr-redesign .cfr-occasion-tabs>a.is-active{background:#c72f62;border-color:#c72f62;color:#fff}
.cfr-redesign .cfr-filter-close{align-items:center;justify-content:center;line-height:1;padding:0}
@media(max-width:900px){.cfr-redesign .cfr-filter-close{display:flex}}
.cfr-checkout-steps .order-form-checkout-agreement .custom-checkbox-label,.cfr-checkout-steps .cfr-optional-marketing .custom-checkbox-label{display:flex;align-items:flex-start;gap:10px;padding:0}
.cfr-checkout-steps .order-form-checkout-agreement input[type=checkbox],.cfr-checkout-steps .cfr-optional-marketing input[type=checkbox],.cfr-checkout-steps .cfr-data-choice input[type=checkbox]{appearance:auto!important;position:static!important;opacity:1!important;width:22px!important;height:22px!important;flex:0 0 22px!important;margin:2px 0!important;accent-color:#a82955}
.cfr-checkout-steps .order-form-checkout-agreement .custom-checkbox-text,.cfr-checkout-steps .cfr-optional-marketing .custom-checkbox-text{padding:0;font-size:13px;line-height:1.5}
.cfr-checkout-steps .order-form-checkout-agreement .custom-checkbox-text:before,.cfr-checkout-steps .order-form-checkout-agreement .custom-checkbox-text:after,.cfr-checkout-steps .cfr-optional-marketing .custom-checkbox-text:before,.cfr-checkout-steps .cfr-optional-marketing .custom-checkbox-text:after{display:none!important}
.cfr-checkout-steps .order-form-checkout-agreement input[type=checkbox],.cfr-checkout-steps .cfr-optional-marketing input[type=checkbox]{display:block!important;clip:auto!important;clip-path:none!important}

/* Keep the footer document links in one compact row on wide screens. */
@media(min-width:801px){
 .cfr-shared-footer>p:last-child{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:0 12px;margin:0;font-size:12px;line-height:1.4}
 .cfr-shared-footer>p:last-child a,.cfr-shared-footer>p:last-child button{display:inline-flex;align-items:center;min-height:36px;margin:0;padding:0;font:inherit}
}
