.sm-filter-remote,.sm-viewed,.sm-remote-toggle{box-sizing:border-box;position:fixed;right:12px;font-family:inherit}.sm-filter-remote[hidden],.sm-remote-toggle[hidden]{display:none!important}.sm-filter-remote{z-index:35;top:var(--sm-remote-top,110px);width:260px;max-height:calc(100dvh - var(--sm-remote-top,110px) - 20px);overflow:auto;border:1px solid #d6e2f1;border-radius:17px;background:#fff;box-shadow:0 12px 40px #173d7230}.sm-filter-remote header{position:relative;padding:18px;background:linear-gradient(130deg,#edf5ff,#fff);border-bottom:1px solid #e3ebf5}.sm-filter-remote header span{font-size:12px;color:#2365a6}.sm-filter-remote h2{margin:5px 0 0;font-size:20px;color:#17395f}.sm-filter-remote header button,.sm-viewed>button{position:absolute;right:6px;top:6px;border:0;background:transparent;color:#56708a;font-size:23px;width:32px;height:32px;padding:0;cursor:pointer}.sm-filter-remote form{padding:16px}.sm-filter-remote label{display:block;margin-bottom:14px;font-size:13px;font-weight:700;color:#3c5571}.sm-filter-remote input,.sm-filter-remote select{display:block;box-sizing:border-box;width:100%;min-width:0;height:42px;margin-top:6px;padding:8px;border:1px solid #ceddeb;border-radius:8px;background:#f7faff;font:inherit}.sm-remote-actions{display:flex;gap:8px}.sm-remote-actions button,.sm-remote-actions a{flex:1;text-align:center;padding:10px 5px;border:1px solid #ceddec;border-radius:8px;font:inherit;font-size:13px;text-decoration:none}.sm-remote-actions button{background:#176fa9;color:#fff;cursor:pointer}.sm-remote-toggle{top:calc(var(--sm-remote-top,110px) + 40px);right:0;z-index:34;border:1px solid #c6d8ed;border-radius:12px 0 0 12px;background:#f2f7ff;color:#1b5184;padding:16px 10px;font-weight:800;cursor:pointer}.sm-viewed{z-index:36;top:var(--sm-remote-top,110px);width:260px;min-height:112px;display:flex;align-items:center;gap:8px;padding:15px 12px;border:1px solid #3ca9db;border-top:4px solid #ffcf70;border-radius:15px;background:linear-gradient(115deg,#102c5c,#1556a0 62%,#087f94);box-shadow:0 10px 32px #0b3b6a55;color:#fff}.sm-viewed>div{min-width:0;flex:1}.sm-viewed span{font-size:11px;background:#ffcf70;color:#3b2d19;border-radius:20px;padding:3px 7px}.sm-viewed strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:7px;font-size:14px;line-height:1.4}.sm-viewed p{margin:3px 0 0;color:#b9f5ff;font-size:12px}.sm-viewed>a{align-self:end;flex:none;padding:8px;border-radius:8px;background:#ffcf70;color:#17365d;font-size:12px;font-weight:700;text-decoration:none}.sm-viewed>button{color:#fff}.sm-has-viewed .sm-filter-remote{top:calc(var(--sm-remote-top,110px) + 146px);max-height:calc(100dvh - var(--sm-remote-top,110px) - 166px)}.sm-has-viewed .sm-remote-toggle{top:calc(var(--sm-remote-top,110px) + 170px)}.sm-remote-wide .sm-filter-remote header button{display:none}.sm-filter-remote :focus-visible,.sm-viewed :focus-visible,.sm-remote-toggle:focus-visible{outline:3px solid #389dda;outline-offset:2px}
@media(max-width:1023px){body.sm-has-viewed{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}.sm-viewed{top:auto;bottom:0;left:0;right:0;width:100%;min-height:86px;border-radius:15px 15px 0 0;padding:12px 42px 12px 12px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.sm-viewed strong{-webkit-line-clamp:1}.sm-filter-remote,.sm-has-viewed .sm-filter-remote{top:var(--sm-remote-top,110px);width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - var(--sm-remote-top,110px) - 120px)}.sm-remote-toggle,.sm-has-viewed .sm-remote-toggle{top:calc(var(--sm-remote-top,110px) + 40px)}}
/* Keep the actions reachable while the mobile filter is open. */
@media(max-width:1023px){
 .sm-filter-remote,.sm-has-viewed .sm-filter-remote{max-height:calc(100dvh - var(--sm-remote-top,110px) - 20px);scroll-padding-bottom:76px}
 body.sm-remote-open .sm-viewed{visibility:hidden;pointer-events:none}
 .sm-remote-actions{position:sticky;bottom:0;z-index:1;padding:8px 0;background:#fff;border-top:1px solid #e3ebf5}
}
@media(max-width:1023px) and (max-height:520px){
 .sm-filter-remote,.sm-has-viewed .sm-filter-remote{top:8px;max-height:calc(100dvh - 16px)}
}
