
/* Shared row geometry; contain the whole thumb inside a long visible rail. */
html body #soft-slider #soft-slider-forms .tab-pane form>.col-md-9>.soft-comment+div{display:grid;grid-template-columns:32px minmax(0,1fr) 32px 58px;gap:8px;align-items:center;min-height:40px;margin:8px 0 18px}
html body #soft-slider #soft-slider-forms .tab-pane form>.col-md-9>.soft-comment+div>div{float:none;width:auto!important;min-width:0;padding:0}
html body #soft-slider #soft-slider-forms .tab-pane form>.col-md-9>.soft-comment+div>.clearfix{display:none}
html body #soft-slider #soft-slider-forms .tab-pane form>.col-md-9>.soft-comment+div .row{margin:0}
html body #soft-slider #soft-slider-forms .soft-math{width:32px;height:32px;box-sizing:border-box;margin:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:14px;line-height:1}
html body #soft-slider #soft-slider-forms .one-slider-value{width:100%;height:38px;margin:0;padding:4px;box-sizing:border-box;font-size:14px}
html body #soft-slider #soft-slider-forms .soft-slider{position:relative;margin:0 30px!important;height:5px;border:0;background:transparent}
html body #soft-slider #soft-slider-forms .soft-slider:before{content:"";position:absolute;left:-30px;right:-30px;top:0;height:5px;border-radius:4px;background:#666}
html body #soft-slider #soft-slider-forms .soft-slider .ui-slider-range{background:transparent}
html body #soft-slider #soft-slider-forms .soft-slider .ui-slider-range:before{content:"";position:absolute;left:-30px;right:0;top:0;height:5px;border-radius:4px;background:var(--wic-slider-color,#a23232)}
html body #soft-slider #soft-slider-forms .soft-slider .ui-slider-handle{width:60px;height:20px;box-sizing:border-box;margin-left:-30px;top:50%;transform:translateY(-50%);line-height:18px}
/* Keep existing sidebar values and original finance events; contain only the visible thumb. */
.sidebar-slider .slider-line>.slider-cursor{pointer-events:none;transform:none}
.sidebar-slider .slider-line>.wic-sidebar-range{position:absolute;top:50%;transform:translateY(-50%);height:44px;min-width:0;margin:0;padding:0;border:0;opacity:0;z-index:5;cursor:pointer;touch-action:pan-y;-webkit-appearance:none;appearance:none}
.sidebar-slider .wic-sidebar-range::-webkit-slider-thumb{-webkit-appearance:none;width:var(--wic-sidebar-thumb,60px);height:44px}
.sidebar-slider .wic-sidebar-range::-moz-range-thumb{width:var(--wic-sidebar-thumb,60px);height:44px;border:0}
.sidebar-slider .slider-line:has(>.wic-sidebar-range:focus-visible)>.slider-cursor{outline:3px solid #365c79;outline-offset:3px}
@media(max-width:800px){.sidebar-slider .slider-form-block.slider-active{display:block!important}}

.sidebar-slider .wic-mobile-form{display:none!important}

.sidebar-slider>.wic-sidebar-picker{display:block;margin:0 0 12px;font-size:13px;font-weight:600;line-height:1.5;text-align:left}
.sidebar-slider>.wic-sidebar-picker select{display:block;width:100%;height:44px;margin-top:6px;padding:8px;border:1px solid #b7c9ae;border-radius:7px;background:#fff;color:#243529;font-size:14px}
.sidebar-slider:has(>.wic-sidebar-picker) .slider-switchers{display:none}
.sidebar-slider:not(.thirteen-compact-sidebar) a[data-slider-action]{width:28px;height:28px;margin:1px 6px;border:1px solid #3f671f;border-radius:50%;background:#fff;color:#3f671f;line-height:26px;font-size:18px}
.sidebar-slider:not(.thirteen-compact-sidebar) .slider-line{height:5px;min-width:0;border:0;border-radius:4px;background:#666;margin:12.5px 0}
.sidebar-slider:not(.thirteen-compact-sidebar) .slider-line>.slider-line-bg{height:5px;border-radius:4px;background:#3f671f}
.sidebar-slider:not(.thirteen-compact-sidebar) .slider-line>.slider-cursor{width:60px;height:20px;border:1px solid #fff;border-radius:10px;top:50%;transform:translateY(-50%);line-height:18px;font-size:12px}
.sidebar-slider:not(.thirteen-compact-sidebar) .slider-cursor:before,.sidebar-slider:not(.thirteen-compact-sidebar) .slider-cursor:after{display:none}

/* Equal eight-pixel rail gaps; aligned compact controls and centered value row. */
html body .sidebar-slider .slider-main-row{display:grid;grid-template-columns:28px minmax(0,1fr) 60px minmax(0,1fr) 28px;gap:6px 8px;align-items:center;height:auto;min-height:66px;margin:8px 0}
html body .sidebar-slider .slider-main-row>div{float:none;width:auto!important;min-width:0;margin:0;padding:0}
html body .sidebar-slider .slider-main-row>.slider-side-block:first-child{grid-column:1;grid-row:1}
html body .sidebar-slider .slider-main-row>.slider-middle-block{grid-column:2/5;grid-row:1}
html body .sidebar-slider .slider-main-row>.slider-side-block:nth-child(3){grid-column:5;grid-row:1}
html body .sidebar-slider .slider-main-row>.slider-value-block{grid-column:3;grid-row:2}
html body .sidebar-slider .slider-main-row>.slider-sign-block{grid-column:4/6;grid-row:2;justify-self:start;white-space:nowrap}
html body .sidebar-slider a[data-slider-action]{width:28px;height:28px;box-sizing:border-box;margin:0;line-height:26px}
html body .sidebar-slider .slider-input{display:block;width:60px;height:30px;margin:0;padding:3px;box-sizing:border-box}
html body .sidebar-slider .slider-sign-block label{margin:0}
html body .sidebar-slider .slider-detail-row{display:none}
html body .sidebar-slider .slider-line{margin:11.5px 0;height:5px}

html body .sidebar-slider:not(.thirteen-compact-sidebar) a[data-slider-action]{margin:0!important}
html body #soft-slider #soft-slider-forms .soft-slider .ui-slider-handle{pointer-events:none}
html body #soft-slider #soft-slider-forms .wic-home-range{position:absolute;left:-30px;top:50%;transform:translateY(-50%);width:calc(100% + 60px);height:38px;min-width:0;margin:0;padding:0;border:0;opacity:0;z-index:5;cursor:pointer;touch-action:pan-y;-webkit-appearance:none;appearance:none}
html body #soft-slider #soft-slider-forms .wic-home-range::-webkit-slider-thumb{-webkit-appearance:none;width:60px;height:38px}
html body #soft-slider #soft-slider-forms .wic-home-range::-moz-range-thumb{width:60px;height:38px;border:0}
html body #soft-slider #soft-slider-forms .soft-slider:has(>.wic-home-range:focus-visible) .ui-slider-handle{outline:3px solid #365c79;outline-offset:3px}

/* Reserve the compact picker before JavaScript runs, avoiding a vertical layout jump. */
html body .sidebar-slider:not(:has(>.wic-sidebar-picker)):before{content:"Kredīta veids";display:block;height:69.5px;margin:0 0 12px;font-size:13px;font-weight:600;line-height:19.5px;text-align:left}
html[lang^="ru"] body .sidebar-slider:not(:has(>.wic-sidebar-picker)):before{content:"Вид кредита"}
html body #soft-slider #soft-slider-forms .soft-slider:not(:has(>.wic-home-range)) .ui-slider-handle{pointer-events:auto}

/* Hide the replaced list at first paint as well as after enhancement. */
html body .sidebar-slider .slider-switchers{display:none!important}

/* Reveal the thumb only once its final initial position is known. */
html body .sidebar-slider:not(.wic-contained-sidebars) .slider-cursor{visibility:hidden}
