/* 03.03. Selectric Select Option */

.selectric {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 52px;
    padding: 3px 40px 3px 20px;

    transition: $transition;

    color: $body-color;
    border: 1px solid #F5F5F5;
    border-radius: 5px;
    outline: none;
    background-color: #F5F5F5;

    & .label {
        font-size: inherit;
        line-height: inherit;

        display: flex;
        overflow: hidden;
        align-items: center;

        height: auto;
        margin: 0;

        color: $body-color;

        & i {
            margin-right: 15px;
        }

        & span {
            font-weight: 500;

            margin-left: 3px;

            color: $heading-color;
        }
    }

    & .arrow {
        font-size: 18px;
        line-height: 1;

        position: absolute;
        top: 0;
        right: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 40px;
        height: 52px;

        color: $heading-color;
        background-color: transparent;

        &::after {
            display: none;
        }
    }

    &:hover,
    &.selectric-open {
        border-color: $primary;
        background-color: $white;

        & .arrow {
            color: $heading-color;
        }
    }
}

.selectric-open {
    & .selectric {
        border-color: $primary;
        background-color: $white;

        & .arrow {
            color: $heading-color;
        }
    }
}

.selectric-items {
    font-weight: 500;

    min-width: 100%;
    padding: 5px 0;

    color: $heading-color;
    border: 0;
    border-radius: 5px;
    background: $grey;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    & .selectric-scroll {
        & ul {
            & li {
                font-size: 15px;
                line-height: 26px;

                position: relative;

                margin: 0;
                padding: 5px 30px;

                cursor: pointer;

                color: $heading-color;

                &.highlighted {
                    color: $heading-color;
                    background-color: transparent;
                }

                &.selected {
                    &::before {
                        font-family: $fontAwesome5Pro;
                        font-weight: 900;

                        margin-right: 10px;

                        content: "\f00c";

                        color: $primary;
                    }

                    &:hover {
                        &::before {
                            color: $white;
                        }
                    }
                }

                &:hover {
                    color: $white;
                    background-color: $primary;
                }
            }
        }
    }
}

.selectric-sort-by {
    width: 270px;
}