@use '../../../assets/styles/index' as *;

// Not used in projects

.root {
    :global(.uui-tooltip-body) {
        background-color: $gray70;
        padding: 0 10px;
        color: white;
        line-height: 24px;
        font-size: 14px;
        font-family: $font-sans;
        box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
    }

    :global(.uui-tooltip-arrow) {
        border: 5px solid transparent;
    }

    :global(.uui-slider-scale-number) {
        font-size: 11px;
        font-family: $font-sans;
        color: $gray70;
        margin-top: 10px;
    }

    :global(.uui-slider-scale-dot) {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        top: -1px;
    }

    &:global(.uui-slider-container) {
        height: 12px;

        :global(.uui-slider) {
            margin: 0 6px 0 6px;
            width: 100%;
            height: 3px;
            border-radius: 10px;
            background: $gray30;
            min-width: 100px;
        }

        :global(.uui-slider-scale) {
            height: 6px;
        }

        :global(.uui-slider-handle) {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: $blue;
            cursor: pointer;
        }

        :global(.uui-slider-filled) {
            margin: 0 6px;
            height: 3px;
            border-radius: 10px;
            background-color: $blue;
        }

        :global(.uui-slider-scale-dot) {
            background-color: $gray50;
            border: 1px $gray30 solid;
        }

        &:hover {
            :global(.uui-slider) {
                background-color: $blue;
            }

            :global(.uui-slider-scale-dot):not(:global(.uui-slider-scale-filled-dot)) {
                border-color: $blue;
                background-color: $blue;
            }
        }

        :global(.uui-slider-scale-filled-dot) {
            background-color: $blue;
            border-color: $blue;
        }

        &:global(.uui-active) {
            :global(.uui-slider) {
                background-color: $blue;
            }

            :global(.uui-slider-scale-dot):not(:global(.uui-slider-scale-filled-dot)) {
                border-color: $blue;
                background-color: $blue;
            }
        }

        &:global(.uui-disabled) {
            pointer-events: none;

            :global(.uui-slider-filled) {
                background-color: $gray20;
            }

            :global(.uui-slider-handle) {
                background-color: $gray20;
            }

            :global(.uui-slider) {
                background-color: $gray20;
            }

            :global(.uui-slider-scale-filled-dot) {
                background-color: $gray20;
                border-color: $gray20;
            }
        }
    }
}
