
.rich-sort-enhanced>.customSelect{display:none!important}
.rich-sort-picker{position:relative;display:block;width:100%;min-width:0}
.rich-sort-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:40px;padding:8px 12px;border:1px solid #cdbbdf;border-radius:11px;background:#fff;color:#43314f;font:400 14px/1.4 Roboto,Arial,sans-serif;letter-spacing:0;cursor:pointer;text-align:left}
.rich-sort-trigger>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rich-sort-chevron{flex:0 0 auto;color:#8864a2;font-size:19px;line-height:1}
.rich-sort-trigger[aria-expanded=true]{border-color:#9470af;box-shadow:0 0 0 2px #ede4f4}
.rich-sort-popup{position:fixed;z-index:900;box-sizing:border-box;padding:8px;border:1px solid #d3c2e2;border-radius:15px;background:#fff;box-shadow:0 12px 34px #39244e24;overflow-y:auto;overscroll-behavior:contain}.rich-sort-popup[hidden]{display:none!important}
.rich-sort-heading{padding:7px 10px 10px;font:500 13px/1.4 Roboto,Arial,sans-serif;color:#826693;border-bottom:1px solid #eee6f4;margin-bottom:5px;letter-spacing:0}
.rich-sort-option{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:9px 10px;border:0;border-radius:9px;margin:2px 0;background:#fff;color:#45324f;text-align:left;font:400 14px/1.4 Roboto,Arial,sans-serif;letter-spacing:0;cursor:pointer}
.rich-sort-option:hover,.rich-sort-option:focus-visible{background:#f5effa;outline:none}.rich-sort-option[aria-selected=true]{background:#ede3f6;color:#69438a;font-weight:500}
.rich-sort-dot{display:block;flex:0 0 15px;width:15px;height:15px;border:1px solid #d1bedf;border-radius:50%;box-sizing:border-box}.rich-sort-option[aria-selected=true] .rich-sort-dot{border:4px solid #8b65aa;background:#fff}
.rich-sort-trigger:focus-visible{outline:2px solid #a47d46;outline-offset:3px}
body.product-catalog .rich-directory-sort{margin-left:auto;flex:0 0 245px;width:245px;min-width:0}
@media(min-width:768px){html body[class] #product-category .category_filter .rich-sort-enhanced,html body[class] #product-special .category_filter .rich-sort-enhanced,html body[class] #product-manufacturer .category_filter .rich-sort-enhanced{width:245px!important;min-width:0!important}}
@media(max-width:767px){body.product-catalog .rich-directory-sort{flex-basis:126px;width:126px}body.product-catalog .rich-directory-sort .rich-sort-trigger{padding:8px;font-size:13px;gap:6px}body.product-catalog .rich-directory-toolbar{gap:8px}body.product-catalog .rich-directory-toolbar nav a{font-size:0!important}body.product-catalog .rich-directory-toolbar nav a>*{display:none}body.product-catalog .rich-directory-toolbar nav a:before{content:'\f015';font:15px/1 FontAwesome}html body[class] #product-category .category_filter .rich-sort-enhanced{min-width:0!important}}
@media(max-width:359px){body.product-catalog .rich-directory-toolbar h1{font-size:16px!important}}

html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter{flex-wrap:wrap!important;overflow:visible!important;height:auto!important;gap:8px!important;max-width:100%;box-sizing:border-box}
html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter>.breadcrumb{min-width:0!important;max-width:320px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter .pagination-right{min-width:0!important}
@media(max-width:1199px){
 html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter{padding:8px 0!important}
 html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter>.page-title,html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter>h1,html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter>h2{flex:0 1 auto!important;min-width:0!important;max-width:65%;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter>.breadcrumb{flex:1 1 0!important;max-width:none!important;margin:0!important}
 html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter .btn-list-grid,html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter .compare-total{display:none!important}
 html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter .pagination-right{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;flex:0 0 100%!important;width:100%!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;margin:0!important;padding:0!important}
 html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter .sort-by-wrapper{display:flex!important;flex:1 1 0!important;min-width:0!important;width:0!important;margin:0!important;padding:0!important}
 html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter .sort-by,html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter .show{display:none!important}
 html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter .rich-sort-enhanced{flex:1 1 0!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
 html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter .show-wrapper{display:flex!important;flex:0 0 68px!important;min-width:0!important;width:68px!important;margin:0!important;padding:0!important}
 html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter .limit{width:68px!important;margin:0!important;padding:0!important}
 html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter .limit .customSelect{display:none!important}
 html body[class] :is(#product-category,#product-special,#product-manufacturer):is(#product-category,#product-special,#product-manufacturer) .category_filter #input-limit{display:block!important;position:static!important;opacity:1!important;width:68px!important;height:40px!important;padding:6px!important;margin:0!important;border-radius:10px;box-sizing:border-box}
}

/* Search controls must size to their contents, not legacy half-width columns. */
@media(min-width:768px){
 html body[class] #product-search#product-search .category_filter .pagination-right{flex:0 1 auto!important;width:auto!important;min-width:0!important;gap:14px!important;}
 html body[class] #product-search#product-search .category_filter .sort-by-wrapper{flex:0 1 auto!important;width:auto!important;min-width:0!important;gap:8px!important;}
 html body[class] #product-search#product-search .category_filter .sort-by,
 html body[class] #product-search#product-search .category_filter .show{display:block!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;}
 html body[class] #product-search#product-search .category_filter .rich-sort-enhanced{flex:0 1 245px!important;width:245px!important;min-width:0!important;max-width:245px!important;}
 html body[class] #product-search#product-search .category_filter .show-wrapper{flex:0 0 auto!important;width:auto!important;min-width:0!important;gap:8px!important;}
 html body[class] #product-search#product-search .category_filter .limit{flex:0 0 68px!important;width:68px!important;min-width:68px!important;max-width:68px!important;}
 html body[class] #product-search#product-search .category_filter #input-limit{width:68px!important;max-width:68px!important;height:40px!important;}
}

/* Desktop sorter follows its selected label instead of reserving245px. */
@media(min-width:1200px){
 html body[class] :is(#product-search,#product-category,#product-special,#product-manufacturer):is(#product-search,#product-category,#product-special,#product-manufacturer) .category_filter .sort-by-wrapper{flex:0 0 auto!important;width:auto!important;min-width:0!important;}
 html body[class] :is(#product-search,#product-category,#product-special,#product-manufacturer):is(#product-search,#product-category,#product-special,#product-manufacturer) .category_filter .rich-sort-enhanced{flex:0 0 auto!important;width:max-content!important;min-width:0!important;max-width:100%!important;}
 html body[class] :is(#product-search,#product-category,#product-special,#product-manufacturer):is(#product-search,#product-category,#product-special,#product-manufacturer) .rich-sort-picker,
 html body[class] :is(#product-search,#product-category,#product-special,#product-manufacturer):is(#product-search,#product-category,#product-special,#product-manufacturer) .rich-sort-trigger{width:max-content!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
 body.product-catalog .rich-directory-sort{flex:0 0 auto!important;width:max-content!important;}
}

/* Accessible reset beside the four sort choices. */
.rich-sort-picker{display:flex!important;align-items:center!important;gap:6px!important;}
.rich-sort-trigger{flex:1 1 auto;min-width:0;}
.rich-sort-reset{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:32px;padding:5px;border:1px solid #d3c2e2;border-radius:8px;background:#fff;color:#8050a2;cursor:pointer;}
.rich-sort-reset[hidden]{display:none!important;}
.rich-sort-reset svg{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;}
.rich-sort-reset:hover{background:#f3edf8;border-color:#8050a2;}
.rich-sort-reset:focus-visible{outline:2px solid #8050a2;outline-offset:2px;}

/* Centered triangle: down when closed, up when expanded. */
.rich-sort-trigger>.rich-sort-chevron{display:block!important;align-self:center!important;flex:0 0 auto!important;width:0!important;height:0!important;min-width:0!important;padding:0!important;margin:0!important;border-left:4px solid transparent!important;border-right:4px solid transparent!important;border-top:5px solid currentColor!important;border-bottom:0!important;font-size:0!important;line-height:0!important;}
.rich-sort-trigger[aria-expanded=true]>.rich-sort-chevron{border-top:0!important;border-bottom:5px solid currentColor!important;}

/* One outlined field: reset remains inside its right edge after closing. */
.rich-sort-picker .rich-sort-reset{position:absolute;right:5px;top:50%;transform:translateY(-50%);z-index:1;border:0;background:transparent;border-radius:6px;}
.rich-sort-picker.rich-has-sort-reset .rich-sort-trigger{padding-right:42px!important;}
.rich-sort-picker .rich-sort-reset:hover{background:#f3edf8;}
.rich-sort-popup .rich-sort-reset-action{display:block;width:100%;text-align:left;cursor:pointer;border:0;border-bottom:1px solid #eee6f4;background:#fff;color:#8050a2;}
.rich-sort-popup .rich-sort-reset-action:hover:not(:disabled),.rich-sort-popup .rich-sort-reset-action:focus-visible{background:#f5effa;border-radius:8px;outline:2px solid #b499c6;outline-offset:-2px;}
.rich-sort-popup .rich-sort-reset-action:disabled{color:#a99bb3;cursor:default;}

/* Search results: one compact toolbar on desktop, two rows on touch screens. */
html body[class] #product-search#product-search .rich-search-toolbar{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:10px!important;min-height:0!important;padding:4px 0!important;margin:0 0 4px!important;}
html body[class] #product-search#product-search .rich-search-heading{display:flex;align-items:center;gap:6px;flex:1 1 0;min-width:0;}
html body[class] #product-search#product-search .rich-search-heading nav,html body[class] #product-search#product-search .rich-search-heading>span{flex:0 0 auto;}
html body[class] #product-search#product-search .rich-search-heading h1{min-width:0;}
html body[class] #product-search#product-search .rich-search-heading .rich-search-scope{flex:0 1 auto!important;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html body[class] #product-search#product-search .rich-search-toolbar .rich-search-advanced{float:none!important;flex:0 0 auto;margin:0!important;padding:0!important;}
html body[class] #product-search#product-search .rich-search-toolbar .rich-search-advanced summary{min-height:36px!important;padding:7px 9px!important;font-size:12px!important;}
html body[class] #product-search#product-search .rich-search-toolbar .category_filter{flex:0 0 auto!important;min-width:0!important;margin:0!important;padding:0!important;}
html body[class] #product-search#product-search .rich-filter-summary-short{display:none;}
html body[class] #product-search#product-search .rich-search-toolbar:has(.rich-search-advanced[open]){flex-wrap:wrap!important;}
html body[class] #product-search#product-search .rich-search-toolbar .rich-search-advanced[open]{order:3;flex:0 0 100%;width:100%;}
html body[class] #product-search#product-search .row-block{margin-top:0!important;padding-top:0!important;}
@media(max-width:1199px){
 html body[class] #product-search#product-search .rich-search-toolbar{flex-wrap:wrap!important;gap:4px 8px!important;}
 html body[class] #product-search#product-search .rich-search-heading{flex:0 0 100%;min-height:24px;}
 html body[class] #product-search#product-search .rich-search-toolbar .category_filter{flex:1 1 0!important;}
 html body[class] #product-search#product-search .rich-search-toolbar .pagination-right{width:100%!important;}
}
@media(max-width:767px){
 html body[class] #product-search#product-search .rich-filter-summary-full{display:none;}
 html body[class] #product-search#product-search .rich-filter-summary-short{display:inline;}
 html body[class] #product-search#product-search .rich-search-toolbar .rich-search-advanced summary{min-height:36px!important;padding:7px!important;}
 html body[class] #product-search#product-search .rich-search-heading .rich-search-scope{max-width:45%;font-size:11px!important;}
}
