/* Scoped compatibility for independent HTML fragments. */
.tf-dialog [hidden],.tf-menu-mobile [hidden],.tf-menu-layout [hidden]{display:none!important}
.tf-sort-form{margin:0;display:contents}
.tf-menu-mobile-panel{min-width:0}
.tf-page-region{min-width:0}
template{display:none!important}
.tf-dialog,.tf-dialog *{box-sizing:border-box}
.tf-dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
.tf-catalog-sidebar .tf-filter-submit{display:block}
.tf-mobile-filters .tf-modal-actions{position:sticky;bottom:0;background:#fff;padding-block:12px}
.tf-mobile-filters .tf-filter-heading{display:flex;justify-content:flex-end}
.tf-mobile-filters .tf-filter-heading h2{display:none}
.tf-dialog:has(.tf-mobile-filters)>.tf-modal-heading{position:sticky;top:0;z-index:3;background:#fff;padding-block:8px;margin-top:-8px}
.tf-dialog:has(.tf-mobile-filters)>.tf-modal-heading::before{content:"";position:absolute;inset:-24px -24px 0;z-index:-1;background:#fff}
