.toa-sf-active [data-sidebar]{grid-template-columns:minmax(0,1fr)!important;row-gap:0!important}
.toa-sf-active [data-sidebar]>aside{display:none!important}
.toa-sf-active [data-sidebar]>:is(section,article){grid-column:1!important}
.toa-shop-tools{--toa-brown:#705043;--toa-cream:#f5f1ea;--toa-blue:#dde5ec;--toa-ink:#303036;margin:0 0 24px;color:var(--toa-ink);font-family:inherit;grid-column:1/-1}
.toa-shop-tools [hidden]{display:none!important}
.toa-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.toa-shop-tools button,.toa-shop-tools input,.toa-shop-tools select{font:inherit}
.toa-toolbar .toa-open,.toa-panel-foot button{background:var(--toa-brown);color:white;border:0;border-radius:6px;min-height:46px;padding:10px 22px;font-size:16px;font-weight:600;cursor:pointer}
.toa-count{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;min-width:24px;min-height:24px;background:#fff;color:var(--toa-brown);margin-left:6px;font-size:13px}
.toa-sort{display:flex;gap:10px;align-items:center;font-size:14px;margin:0}
.toa-sort select{width:auto;max-width:230px;background:transparent;color:var(--toa-ink);border:1px solid #737b84;border-radius:6px;min-height:46px;padding:8px 32px 8px 12px}
.toa-active{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.toa-active a{display:inline-flex;align-items:center;gap:12px;border:1px solid #9b8b80;border-radius:24px;background:var(--toa-cream);color:var(--toa-ink);padding:7px 13px;font-size:14px;line-height:1.4;text-decoration:none;min-height:40px}
.toa-active a span{font-size:20px}.toa-active a.toa-clear{background:none;border-color:transparent;text-decoration:underline}
#toa-filter-dialog{--toa-brown:#705043;--toa-cream:#f5f1ea;--toa-blue:#dde5ec;--toa-ink:#303036;color:var(--toa-ink);background:var(--toa-cream);border:1px solid #c8cad0;border-radius:12px;padding:0;width:100%;max-width:100%;position:static;margin:20px 0;box-sizing:border-box}
#toa-filter-dialog.toa-enhanced{position:fixed;inset:0 0 0 auto;margin:0;border:0;border-radius:12px 0 0 12px;width:min(480px,100%);max-width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;overflow:hidden;box-shadow:-12px 0 40px #0002;z-index:100000}
#toa-filter-dialog::backdrop{background:rgba(27,29,32,.5)}
#toa-filter-form{margin:0;display:flex;flex-direction:column;height:100%;min-height:0}
.toa-panel-head{padding:24px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #d4cec8;flex-shrink:0}
.toa-panel-head h2{font-family:inherit;font-size:26px;line-height:1.2;margin:0;font-weight:600;color:var(--toa-ink)}
.toa-eyebrow{font-size:11px;letter-spacing:1.6px;margin:0 0 8px!important;color:#685f59}
.toa-panel-head .toa-close{min-width:44px;min-height:44px;padding:0;border-radius:50%;background:transparent;border:1px solid #afa49c;color:var(--toa-ink);font-size:30px;line-height:1;cursor:pointer;flex-shrink:0}
.toa-filter-content{overflow:auto;overscroll-behavior:contain;min-height:0;padding:20px 24px;flex:1}
.toa-help{font-size:13px;line-height:1.5;color:#625c57;margin:0 0 15px}
.toa-section{border-bottom:1px solid #d4cec8;padding:0 0 18px;margin:0 0 18px}
.toa-section>summary{font-size:19px;font-weight:600;cursor:pointer;min-height:44px;line-height:1.4;padding:6px 0}
.toa-choice{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;font-size:15px;cursor:pointer;line-height:1.35}
.toa-choice input,.toa-stock input{appearance:auto!important;position:static!important;opacity:1!important;clip:auto!important;width:19px!important;height:19px!important;min-width:19px;accent-color:var(--toa-brown);margin:0!important;flex-shrink:0}
.toa-category-children{margin-left:12px;border-left:1px solid #b3a99f;padding-left:15px}
.toa-category details{margin:0 0 6px}.toa-category details>summary{cursor:pointer;font-size:12px;color:#625c57;min-height:28px;padding:3px 0}
.toa-search{display:block;font-size:13px;margin:6px 0 12px}.toa-search input{margin-top:5px;width:100%;height:42px;background:white;border:1px solid #a9a29b;border-radius:6px;padding:8px 12px;color:var(--toa-ink)}
.toa-choices{max-height:none;overflow:visible;padding:2px 0 8px}
.toa-sizes{display:flex;gap:8px;flex-wrap:wrap;max-height:none}
.toa-size-choice{position:relative;display:inline-flex}
.toa-size-choice input{position:absolute!important;width:1px!important;height:1px!important;min-width:0;clip-path:inset(50%);overflow:hidden}
.toa-size-choice span{border:1px solid #a99d92;border-radius:6px;background:white;min-height:44px;min-width:48px;padding:11px 13px;text-align:center;box-sizing:border-box}
.toa-size-choice input:checked+span{background:var(--toa-brown);border-color:var(--toa-brown);color:white}
.toa-size-choice input:focus-visible+span{outline:3px solid #536b80;outline-offset:2px}
.toa-price{display:flex;gap:12px;align-items:center;margin-top:8px}.toa-price label{flex:1;min-width:0;font-size:13px}.toa-price input{display:block;width:100%;height:44px;background:white;border:1px solid #a99d92;border-radius:6px;padding:8px 10px;color:var(--toa-ink);margin-top:5px}
.toa-stock{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px;margin-bottom:12px}
.toa-panel-foot{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:16px 24px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #d4cec8;background:var(--toa-cream);flex-shrink:0}
.toa-panel-foot a{color:var(--toa-ink);font-size:14px;text-decoration:underline;min-height:44px;display:flex;align-items:center}.toa-panel-foot button{flex:1;max-width:260px}
.toa-shop-tools :focus-visible,#toa-filter-dialog :focus-visible{outline:3px solid #536b80;outline-offset:3px}
.toa-search-empty{font-size:14px;color:#625c57}body.toa-modal-open{overflow:hidden}
@media(max-width:600px){.toa-toolbar{gap:10px;flex-wrap:nowrap}.toa-sort{gap:6px;font-size:0}.toa-sort select{font-size:14px;width:190px;max-width:48vw}.toa-toolbar .toa-open{padding:10px 17px}.toa-panel-head{padding:20px}.toa-filter-content{padding:16px 20px}.toa-panel-foot{padding-left:20px;padding-right:20px}.toa-panel-head h2{font-size:24px}#toa-filter-dialog.toa-enhanced{width:100%;border-radius:0}}
@media(prefers-reduced-motion:no-preference){.toa-size-choice span,.toa-open{transition:background-color .15s ease}}

/* v1.1: an always-visible desktop sidebar, with the same form in the mobile drawer. */
.toa-shop-layout{display:block;clear:both;width:100%;min-width:0}
.toa-shop-results{min-width:0}
.toa-filter-column{min-width:0;margin:0;padding:0;border:0}
#toa-filter-dialog [hidden]{display:none!important}
#toa-filter-dialog :is(button,input,select){font:inherit}
#toa-filter-dialog .toa-close{font-size:30px}
.toa-facet-status{font-size:12px;line-height:1.4;margin:0;padding:0 20px 10px;color:#625c57}
.toa-facet-status:empty{display:none}
@media(min-width:1000px){
 .toa-shop-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:32px;align-items:start}
 .toa-filter-column{position:sticky;top:calc(var(--wp-admin--admin-bar--height,0px) + 16px)}
 #toa-filter-dialog{display:block;position:static;margin:0;border-radius:8px;width:100%;max-height:calc(100vh - var(--wp-admin--admin-bar--height,0px) - 32px);max-height:calc(100dvh - var(--wp-admin--admin-bar--height,0px) - 32px);overflow:hidden}
 #toa-filter-form{height:auto;max-height:inherit}
 .toa-panel-head{padding:20px 18px}
 .toa-panel-head h2{font-size:23px}
 .toa-filter-content{padding:18px;overflow:auto}
 .toa-panel-foot{padding:14px 18px;gap:10px}
 .toa-panel-foot button{padding:10px 12px;font-size:14px}
 .toa-panel-foot a{font-size:13px}
 .toa-toolbar{justify-content:flex-end}
 .toa-open,.toa-close{display:none!important}
 .toa-price{gap:6px}
 .toa-price input{font-size:13px!important;padding:6px}
}

/* v1.2: compact sections and one scroll area for the entire panel. */
#toa-filter-dialog{border-color:#d5cec6;border-radius:10px}
#toa-filter-dialog .toa-panel-head{padding:18px 20px;background:var(--toa-cream)}
#toa-filter-dialog .toa-panel-head h2{font-size:22px;line-height:1.2;font-weight:600;letter-spacing:-.3px;margin:0}
#toa-filter-dialog .toa-panel-intro{font-size:12px;line-height:1.5;color:#71675f;margin:5px 0 0}
#toa-filter-dialog .toa-filter-content{padding:0 18px;scrollbar-width:thin;scrollbar-color:#b3a99f transparent;scroll-padding-top:8px}
#toa-filter-dialog .toa-section{margin:0;padding:0;border-bottom:1px solid #dfd8d0}
#toa-filter-dialog .toa-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;min-height:62px;font-size:16px;line-height:1.35;list-style:none;cursor:pointer;font-weight:600;box-sizing:border-box}
#toa-filter-dialog summary::-webkit-details-marker{display:none}
#toa-filter-dialog .toa-section-title{min-width:0}
#toa-filter-dialog .toa-section-title small{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:12px;font-weight:400;color:#786d64}
.toa-chevron{display:block;flex-shrink:0;width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 5px 4px;color:#776a60}
.toa-section[open]>summary .toa-chevron,.toa-category-branch[open]>summary .toa-chevron{transform:rotate(225deg);margin-bottom:0}
#toa-filter-dialog .toa-choice{font-size:14px;line-height:1.4;min-height:42px;gap:10px;padding:5px 8px;border-radius:6px;box-sizing:border-box}
#toa-filter-dialog .toa-choice:not(.toa-size-choice):has(input:checked){background:#eae1d7;color:#50382e;font-weight:500}
#toa-filter-dialog .toa-choice:not(.toa-size-choice):hover{background:#eee7df}
#toa-filter-dialog .toa-choice input,#toa-filter-dialog .toa-stock input{width:18px!important;height:18px!important;min-width:18px}
#toa-filter-dialog .toa-category{position:relative;margin:2px 0}
#toa-filter-dialog .toa-category-row{min-height:44px}
#toa-filter-dialog .toa-has-children>.toa-category-row{padding-right:42px}
#toa-filter-dialog .toa-category-branch{margin:0}
#toa-filter-dialog .toa-category-branch>summary{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;width:40px;min-height:44px;padding:0;border-radius:6px;list-style:none;cursor:pointer}
#toa-filter-dialog .toa-category-branch>summary:hover{background:#eee7df}
#toa-filter-dialog .toa-category-children{margin:3px 0 8px 16px;padding-left:10px;border-left:1px solid #d5c9bc}
#toa-filter-dialog .toa-category-list{padding-bottom:12px}
#toa-filter-dialog .toa-search{margin:0 0 10px}
#toa-filter-dialog .toa-search input{font-size:14px;margin:0;border:1px solid #c8beb3;background:#fffdf9;border-radius:6px;height:40px;padding:8px 10px}
#toa-filter-dialog .toa-sizes{gap:7px;padding:0 0 14px}
#toa-filter-dialog .toa-size-choice{padding:0;min-height:40px}
#toa-filter-dialog .toa-size-choice input{width:1px!important;height:1px!important;min-width:0}
#toa-filter-dialog .toa-size-choice span{min-height:40px;padding:9px 12px;min-width:44px;border-color:#c8beb3;background:#fffdf9;font-size:14px}
#toa-filter-dialog .toa-size-choice input:checked+span{background:var(--toa-brown);color:white;border-color:var(--toa-brown)}
#toa-filter-dialog .toa-show-more{background:none;border:0;box-shadow:none;padding:8px 0 14px;min-height:40px;color:#705043;font-size:13px;font-weight:500;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
#toa-filter-dialog .toa-search-empty{font-size:13px;padding:0 0 14px;margin:0;color:#786d64}
#toa-filter-dialog .toa-price{margin:0 0 16px;gap:8px}
#toa-filter-dialog .toa-price label{font-size:12px;color:#71675f}
#toa-filter-dialog .toa-price input{font-size:14px;background:#fffdf9;border-color:#c8beb3}
#toa-filter-dialog .toa-stock{font-size:14px;min-height:54px;margin:0;gap:10px}
#toa-filter-dialog .toa-panel-foot{padding:14px 18px calc(14px + env(safe-area-inset-bottom));gap:14px;background:var(--toa-cream)}
#toa-filter-dialog .toa-panel-foot button{font-size:14px;font-weight:600;min-height:44px;padding:10px 16px}
#toa-filter-dialog .toa-panel-foot a{font-size:12px;color:#71675f;white-space:nowrap}
#toa-filter-dialog .toa-facet-status{background:var(--toa-cream);flex-shrink:0;font-size:11px;padding:8px 18px;color:#71675f}
.toa-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:999.98px){#toa-filter-dialog .toa-choice{min-height:44px}#toa-filter-dialog .toa-panel-head{padding:18px 20px}#toa-filter-dialog .toa-section-title small{max-width:65vw}}
