/* Filtering controls match the existing category panel; category/card styles are unchanged. */
.td-book-browse-filters{margin:0 0 10px!important;padding:0;font-size:11px;line-height:1.4}
.td-book-filter-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 22px}
.td-book-filter-groups label{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:11px;line-height:1.4;margin:0 0 5px!important;color:#413944}
.td-book-filter-groups input[type=checkbox]{width:13px;height:13px;margin:0;accent-color:#59387c;flex:none}
.td-book-filter-dependent{margin:3px 0 0 19px}
.td-book-filter-dependent.is-disabled{opacity:.5}
.td-book-filter-actions{display:flex;align-items:center;gap:13px;margin-top:8px}
.td-book-filter-actions button{border:1px solid #59387c;border-radius:4px;background:#59387c;color:#fff;font:inherit;font-size:11px;padding:6px 10px;line-height:1.3;cursor:pointer}
.td-book-filter-actions a{font-size:11px;color:#59387c}
.td-book-filter-note{font-size:11px!important;line-height:1.4;margin:10px 0!important;color:#625c66}
.td-book-filter-categories{margin:10px 0!important;padding:9px 0 0;border-top:1px solid #eae6e2;font-size:11px}
.td-book-filter-categories>summary{cursor:pointer;font-size:11px;font-weight:600;color:#413944}
.td-book-filter-categories nav{display:flex;flex-wrap:wrap;gap:5px 12px;margin:9px 0 3px}
.td-book-filter-categories a{font-size:11px;color:#59387c;text-decoration:none}
.td-book-filter-categories a:hover{text-decoration:underline}
.td-book-filter-actions button:focus-visible,.td-book-filter-categories a:focus-visible{outline:2px solid #765199;outline-offset:3px}
/* The search screen uses the same ecommerce frame and product collection. */
.td-book-search-page .td-book-search-form{display:flex;align-items:stretch;flex-wrap:nowrap;gap:0;margin:15px 0!important;max-width:100%;min-height:38px;border:1px solid #b8aebe;border-radius:5px;overflow:hidden;background:#fff}
.td-book-search-form select{width:180px;max-width:30%;min-width:0;border:0;border-right:1px solid #d8d0dd;border-radius:0;background:#f6f2f8;color:#413944;font-family:inherit;font-size:11px;padding:7px 8px}
.td-book-search-form input[type=search]{flex:1;width:0;min-width:0;border:0;border-radius:0;background:#fff;font-family:inherit;font-size:13px;padding:8px 10px;outline-offset:-3px}
.td-book-search-form button{border:0;border-radius:0;background:#59387c;color:#fff;font-family:inherit;font-size:12px;line-height:1.3;padding:8px 14px;cursor:pointer}
.td-book-search-form button:focus-visible{outline:2px solid #e3c584;outline-offset:-3px}
.td-book-search-correction{padding:10px 12px!important;background:#f3eff7;border-left:3px solid #8763a1;color:#413944;font-size:12px!important;line-height:1.5;margin:10px 0!important}
.td-book-search-empty{padding:20px 0;font-size:13px;line-height:1.5}
.td-book-search-empty h2{font-size:19px;margin:0 0 8px}
.td-book-search-empty p{font-size:13px;line-height:1.5}
.td-book-search-page .td-archive-sidebar-col{max-height:none}
@media(max-width:740px){
 .td-book-filter-groups{gap:10px}
 .td-book-search-page .td-archive-sidebar-col{display:none}
 .td-book-search-form select{width:115px;max-width:32%;font-size:10px;padding:6px 4px}
 .td-book-search-form input[type=search]{font-size:12px;padding:8px}
 .td-book-search-form button{font-size:11px;padding:8px 10px}
 .td-book-search-page .wp-block-woocommerce-product-template{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:400px){.td-book-filter-groups{grid-template-columns:1fr}.td-book-filter-dependent{margin-left:18px}}

.td-book-search-page .td-book-search-format{font-size:11px!important;font-weight:600;line-height:1.35;margin:0 0 6px!important;color:#59387c}
