/* Панель «Подбор по параметрам» в категориях крановых колёс */
.rmf,.rmf__panel,.rmf__dim{--rmf-o:#F8981D;--rmf-od:#d97706;--rmf-l:#e6e3dc;--rmf-bg:#f6f4ef}
.rmf{margin:0 0 16px;font-size:14px;color:#333;position:relative}
.rmf__panel{font-size:14px;color:#333;line-height:1.4}
.rmf__bar{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.rmf__title{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#888}
.rmf__open{display:none}
.rmf__reset{margin-left:auto;background:none;border:0;color:var(--rmf-od);font:inherit;font-weight:600;cursor:pointer}
.rmf__reset:hover{text-decoration:underline}
.rmf__panel{background:var(--rmf-bg);border-radius:16px;padding:14px 16px;display:flex;flex-wrap:wrap;gap:12px 18px;align-items:flex-end}
.rmf__types{display:inline-flex;background:#e9e6df;border-radius:12px;padding:3px;gap:2px}
.rmf__tab{padding:8px 16px;border-radius:9px;font-weight:600;color:#555 !important;text-decoration:none;white-space:nowrap;transition:background .15s,color .15s}
.rmf__tab:hover{background:rgba(255,255,255,.7);color:#222 !important;text-decoration:none}
.rmf__tab.is-on{background:#fff;color:#222 !important;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.rmf__row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.rmf__dd{position:relative}
.rmf__field{display:flex;flex-direction:column;align-items:flex-start;min-width:128px;padding:6px 32px 6px 12px;background:#fff;border:1.5px solid transparent;border-radius:10px;font:inherit;text-align:left;cursor:pointer;position:relative;box-shadow:0 1px 2px rgba(0,0,0,.06);transition:border-color .15s,box-shadow .15s}
.rmf__field::after{content:"";position:absolute;right:12px;top:50%;width:7px;height:7px;margin-top:-5px;border:solid #999;border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .15s}
.rmf__lab{font-size:11px;color:#999;line-height:1.2}
.rmf__val{font-weight:700;color:#333;line-height:1.35;white-space:nowrap;max-width:190px;overflow:hidden;text-overflow:ellipsis}
.rmf__field:hover,.rmf__dd.is-open .rmf__field{border-color:var(--rmf-o);box-shadow:0 2px 8px rgba(248,152,29,.25)}
.rmf__dd.is-open .rmf__field::after{transform:rotate(-135deg);margin-top:-2px}
.rmf__field.has-value{border-color:var(--rmf-o)}
.rmf__field.has-value .rmf__val{color:var(--rmf-od)}
.rmf__switch{display:inline-flex;align-items:center;gap:10px;background:#fff;border:1.5px solid transparent;border-radius:10px;padding:10px 14px;font:inherit;font-weight:600;color:#333;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.06);transition:border-color .15s}
.rmf__switch:hover{border-color:var(--rmf-o)}
.rmf__switch i{width:34px;height:20px;border-radius:99px;background:#d6d3cb;position:relative;transition:background .15s}
.rmf__switch i::after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:left .15s}
.rmf__switch[aria-pressed="true"] i{background:var(--rmf-o)}
.rmf__switch[aria-pressed="true"] i::after{left:16px}
.rmf__menu{display:none;position:absolute;z-index:30;top:calc(100% - 1px);left:0;min-width:100%;width:max-content;max-height:300px;overflow:auto;background:#fff;border:1.5px solid var(--rmf-o);border-radius:0 0 12px 12px;box-shadow:0 12px 24px rgba(0,0,0,.14);padding:6px}
.rmf__dd.is-open .rmf__menu{display:block}
.rmf__opt{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;cursor:pointer}
.rmf__opt:hover{background:#fff3e0}
.rmf__opt input{accent-color:var(--rmf-o);width:17px;height:17px;margin:0}
.rmf__opt span:last-child{margin-left:auto;padding-left:18px;color:#aaa;font-size:12px}
.rmf__opt.is-zero{opacity:.4}
.rmf__menu--range{padding:10px 12px}
.rmf__menu--range label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0;font-weight:600}
.rmf__menu--range input{width:110px;border:1px solid var(--rmf-l);border-radius:8px;padding:6px 8px;font:inherit}
.rmf__menu--range input:focus{outline:none;border-color:var(--rmf-o)}
.rmf__hint{color:#999;font-size:12px;margin-top:6px}
.rmf__active{display:flex;flex-wrap:wrap;gap:6px;flex-basis:100%}
.rmf__active:empty{display:none}
.rmf__tag{background:#fff;border:1px solid var(--rmf-o);color:var(--rmf-od);border-radius:99px;padding:3px 10px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.rmf__tag::after{content:" ✕";font-size:11px}
.rmf__tag:hover{background:var(--rmf-o);color:#fff}
.rmf__status{margin-top:8px;color:#777}
.rmf__apply,.rmf__sheet-head,.rmf__dim{display:none}
.rmf__dim[hidden]{display:none !important}
.rmf__empty{border:1px dashed var(--rmf-o);border-radius:12px;padding:16px;margin-top:10px;display:flex;flex-direction:column;gap:6px;align-items:flex-start;background:#fffaf2}
.rmf__empty[hidden]{display:none}
.rmf__empty .rmf__reset{margin:4px 0 0;padding:6px 14px;border:1.5px solid var(--rmf-o);border-radius:99px;background:#fff}
.rmf-hide,.rmf [hidden],.rmf__panel [hidden]{display:none !important}
@media (max-width:767px){
  .rmf__title{display:none}
  .rmf__bar{justify-content:space-between}
  .rmf__open{display:inline-flex;align-items:center;gap:6px;background:#2b2b2b;color:#fff;border:0;border-radius:10px;padding:9px 16px;font:inherit;font-weight:700}
  .rmf__open [data-rmf-badge]{background:var(--rmf-o);border-radius:99px;padding:0 7px;margin-left:2px}
  .rmf__open [data-rmf-badge]:empty{display:none}
  .rmf__reset{margin-left:0}
  .rmf__panel{display:none;position:fixed;z-index:10003;left:0;right:0;bottom:0;max-height:82vh;overflow:auto;border-radius:18px 18px 0 0;background:#fff;box-shadow:0 -8px 28px rgba(0,0,0,.3);padding:14px 16px 18px;flex-direction:column;align-items:stretch;flex-wrap:nowrap}
  .rmf__panel.is-sheet{display:flex}
  .rmf__dim.is-sheet{display:block;position:fixed;inset:0;z-index:10002;background:rgba(0,0,0,.4)}
  .rmf__sheet-head{display:flex;justify-content:space-between;align-items:center;font-size:16px}
  .rmf__close{background:none;border:0;font-size:20px;line-height:1;padding:4px 8px}
  .rmf__types{display:flex;flex-wrap:wrap}
  .rmf__tab{flex:1 1 45%;text-align:center}
  .rmf__row{flex-direction:column;align-items:stretch}
  .rmf__field{width:100%;background:var(--rmf-bg)}
  .rmf__switch{background:var(--rmf-bg);justify-content:flex-start}
  .rmf__menu{position:static;width:auto;border:0;box-shadow:none;border-radius:0;padding:4px 0;max-height:240px}
  .rmf__apply{display:block;width:100%;background:var(--rmf-o);color:#fff;border:0;border-radius:10px;padding:12px;font:inherit;font-weight:700;font-size:15px;position:sticky;bottom:0;box-shadow:0 -12px 12px -4px #fff}
}

/* Размеры в строке списка колёс */
.rm-sizes{min-width:0;max-width:100%;display:flex;flex-wrap:wrap;gap:4px 6px;margin-top:4px}
.rm-size{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:top;border:1px solid #e4e4e0;background:#faf8f4;color:#555;border-radius:99px;padding:1px 9px;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap}
@media (max-width:767px){.rm-size{font-size:11px;padding:0 7px}}

/* Компактный вид на компьютере: всё в одну строку, без заливки */
@media (min-width:768px){
  .rmf{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 12px}
  .rmf__panel{order:1;flex:0 1 auto;background:none;border-radius:0;padding:0;gap:6px 8px;align-items:center;flex-wrap:wrap}
  .rmf__bar{order:2;margin:0;gap:8px}
  .rmf__title{display:none}
  .rmf__status{display:none}
  .rmf__empty{order:3;flex-basis:100%;margin-top:0}
  .rmf__types{background:none;border:1px solid var(--rmf-l);padding:2px;border-radius:9px;gap:0;margin-right:4px}
  .rmf__tab{padding:5px 11px;font-size:13px;border-radius:7px}
  .rmf__tab.is-on{background:#efede7;box-shadow:none;font-weight:700}
  .rmf__row{gap:6px;align-items:center;flex-wrap:nowrap}
  .rmf__field{flex-direction:row;align-items:center;gap:6px;min-width:0;padding:6px 28px 6px 11px;border:1px solid var(--rmf-l);box-shadow:none;border-radius:9px;background:#fff}
  .rmf__lab{font-size:13px;color:#888}
  .rmf__lab::after{content:":"}
  .rmf__val{font-size:13px;max-width:130px}
  .rmf__field::after{right:10px;width:6px;height:6px;margin-top:-5px}
  .rmf__dd.is-open .rmf__field::after{margin-top:-2px}
  .rmf__field:hover,.rmf__dd.is-open .rmf__field{box-shadow:none}
  .rmf__switch{padding:6px 11px;font-size:13px;gap:8px;border:1px solid var(--rmf-l);box-shadow:none;border-radius:9px}
  .rmf__switch i{width:28px;height:16px}
  .rmf__switch i::after{width:12px;height:12px}
  .rmf__switch[aria-pressed="true"] i::after{left:14px}
  .rmf__active{display:none}
  .rmf__reset{font-size:13px;white-space:nowrap}
  .rmf__menu{border-width:1px;top:calc(100% - 1px)}
}
