// Overrides for the default theme (vendor/nouislider)

/* stylelint-disable selector-class-pattern */

.noUi-handle {
    background: theme('colors.white');
    border-radius: 100%;
}

// hide the default 'handle stripes'
.noUi-handle::before,
.noUi-handle::after {
    display: none;
}

// set default slider 'thickness'
.noUi-vertical {
    width: 10px;
}

.noUi-horizontal {
    height: 10px;
    padding: 0 10px;
}

.noUi-horizontal .noUi-handle,
.noUi-vertical .noUi-handle {
    width: 20px;
    height: 20px;
    top: 4px;
    transform: translateX(50%) translateY(-50%);
    box-shadow: 2px 2px 3px rgba(0, 0, 0, .2);
    border: 1px solid theme('colors.gray.200');
}

/* Property right gives the handle an orientation where it should be displayed.
 * Set to 0 as we don't want to off-center it.
 */
html:not([dir=rtl]) .noUi-horizontal .noUi-handle {
    right: 0;
}

// set color of inactive area in slider
.noUi-target {
    border: 0;
    background: theme('colors.gray.400');
}

// set color of 'active' area in slider
.noUi-connect {
    background: theme('colors.primary.600');
}

.tb-range__fields {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: $spacing-base 0;

    div {
        flex: 1;
    }

    span {
        margin: 0 $spacing-1;
        flex-grow: 0;
        flex-shrink: 0;
    }

    @media screen and (min-width: $mediaquery-lg) {
        margin: $spacing-base;
    }
}
