/* The open navigation owns the screen; retain banner height to avoid layout shift. */
html.has-modal-open #tf-bw-bar,
body:has(.wp-block-navigation__responsive-container.is-menu-open) #tf-bw-bar {
    visibility: hidden;
    pointer-events: none;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
}
/* Keep the mobile CRO bar; the other component remains available on desktop. */
@media (max-width: 768px) {
    body:has(#tfx-sticky-bar) #tf-sticky-buy { display: none !important; }
    #tfx-sticky-bar { padding-bottom: max(10px, env(safe-area-inset-bottom)) !important; }
    #tfx-sticky-bar:not(.tfx-visible) { visibility: hidden; pointer-events: none; }
    .tf-mobile-category-heading { padding-top: 12px !important; padding-bottom: 12px !important; }
    .tf-mobile-category-heading h1 { margin-top: 0 !important; margin-bottom: 12px !important; }
    .tf-kontakt-wrap input, .tf-kontakt-wrap textarea, .tf-kontakt-wrap select { font-size: 16px !important; }
}
/* Never overlay a modal or checkout with the floating phone control. */
body.woocommerce-checkout .tfx-sticky-mobile,
html.has-modal-open .tfx-sticky-mobile,
html.has-modal-open #tfx-sticky-bar,
html.has-modal-open #tf-sticky-buy { display: none !important; }
/* Keep bespoke dark leasing/company form themes intact. */
.tf-kontakt-wrap:not(#tf-leasing .tf-kontakt-wrap):not(#tf-company .tf-kontakt-wrap) .tf-k-btn {
    background: #164f91 !important; color: #fff !important; min-height: 48px;
}
.tf-kontakt-wrap:not(#tf-leasing .tf-kontakt-wrap):not(#tf-company .tf-kontakt-wrap) .tf-k-btn:hover { background: #103d72 !important; }
.tf-kontakt-wrap:not(#tf-leasing .tf-kontakt-wrap):not(#tf-company .tf-kontakt-wrap) em { color: #4b5563 !important; }
.tf-footer-toggle { background: transparent; border: 0; color: inherit; font: inherit; text-align: left; width: 100%; min-height: 44px; padding: 0; cursor: pointer; }
.tf-footer-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width:768px) {
    .tf-footer-toggle::after { content: '+'; float: right; }
    .tf-footer-toggle[aria-expanded=true]::after { content: '−'; }
}
#tfx-sticky-bar .tfx-price del { color: #4b5563; }
body.single-product a[href$="om-oss/"] { color: #164f91; }
body.single-product a[rel="tag"] { text-decoration: underline; }
