/* Keep the existing form::before sort icon and filter icon completely intact. */
body .kh-catalog-tools form.woocommerce-ordering[data-kh-sort-enhanced] select.orderby{display:none!important}
body .kh-catalog-tools form.woocommerce-ordering .kh-sort-trigger{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;cursor:pointer;z-index:1}
dialog.kh-sort-popup{position:fixed;inset:auto;margin:0;width:302px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0 18px 8px;border:1px solid #e9e6e1;border-radius:9px;background:#fff;color:#222;box-shadow:0 12px 38px #0002;font-family:var(--kh-site-font,inherit);overflow:hidden}
dialog.kh-sort-popup[open]{display:flex;flex-direction:column}
dialog.kh-sort-popup::backdrop{background:transparent}
.kh-sort-popup .kh-sort-handle{display:none}
.kh-sort-popup .kh-sort-head{display:flex;align-items:center;justify-content:space-between;gap:15px;flex:0 0 auto;min-height:59px;border-bottom:1px solid #ece9e4}
.kh-sort-popup .kh-sort-head h2{font:500 18px/1.4 var(--kh-site-font,inherit);margin:0;padding:0;color:inherit}
body .kh-sort-popup .kh-sort-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;min-width:0;min-height:0;margin:0 -8px 0 0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;font:400 27px/1 Arial,sans-serif;cursor:pointer;text-transform:none}
.kh-sort-popup .kh-sort-options{margin:0;padding:5px 0;min-height:0;overflow-y:auto;overscroll-behavior:contain}
body .kh-sort-popup .kh-sort-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;min-width:0;margin:0!important;padding:14px 0!important;border:0!important;border-bottom:1px solid #f0ede9!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#242422!important;font:400 14px/1.35 var(--kh-site-font,inherit);letter-spacing:0;text-transform:none;text-align:left;cursor:pointer}
body .kh-sort-popup .kh-sort-choice:last-child{border-bottom:0!important}
body .kh-sort-popup .kh-sort-choice[aria-pressed=true]{font-weight:500}
body .kh-sort-popup .kh-sort-choice:hover,body .kh-sort-popup .kh-sort-close:hover{color:var(--primary-color,#bd171c)!important}
.kh-sort-popup .kh-sort-check{visibility:hidden;flex:none;color:var(--primary-color,#bd171c);font:400 20px/1 Arial,sans-serif}
.kh-sort-popup .kh-sort-choice[aria-pressed=true] .kh-sort-check{visibility:visible}
.kh-sort-popup .kh-sort-choice:focus-visible{outline:1px solid currentColor;outline-offset:-3px}
@media(max-width:849px){dialog.kh-sort-popup{width:100%;max-width:100%;max-height:min(80dvh,430px);border:0;border-radius:14px 14px 0 0;padding:10px 22px max(20px,env(safe-area-inset-bottom));box-shadow:0 -8px 30px #0002}dialog.kh-sort-popup::backdrop{background:#1a181438}.kh-sort-popup .kh-sort-handle{display:block;flex:0 0 3px;width:32px;height:3px;margin:0 auto 1px;background:#d8d4ce;border-radius:9px}.kh-sort-popup .kh-sort-head{min-height:48px}body .kh-sort-popup .kh-sort-choice{min-height:49px}}
