/**
 * Generic list component customized.
 * This component usually contain different versions of lists present on the website.
 */

.#{$namespace}list {
    @include list();
    $root: &;
    margin: 0;
    padding: 0;

    &--multiline {
        width: 100%;
    }

    &--menu {
        display: flex;
        padding-bottom: 1rem;
        border-bottom: 1px solid $colorGallery;

        li {
            @extend #{$root}__item;
            @extend #{$root}__item--menu;
        }

        a {
            @extend .#{$namespace}link;
        }
    }

    &--menu-dark {
        border-bottom: 1px solid $colorAlto;
    }

    &__item {
        font-size: 1.4rem;
        margin: 0;
        padding: 0.4em 1.5rem 0.5rem 0;
        display: flex;
        align-items: center;
        box-sizing: border-box;

        &--half {
            width: 50%;
        }

        &--inputs {
            width: 100%;
            @include media('>=phone-lg') {
                width: 50%;
            }
            @include media('>=tablet') {
                width: 33%;
            }
            @include media('>=laptop') {
                width: 25%;
            }
        }

        &--menu {
            font-size: 1.4rem;
            color: $colorDoveGray;
            padding: 0.8rem 1.8rem;
            border-right: 1px solid $colorGallery;

            &:last-child {
                border-right: none !important;

                &:first-child {
                    display: none;
                }
            }

            &:first-child {
                padding-left: 0;
            }
        }

        &--menu-dark {
            @extend #{$root}__item--menu;
            border-right: 1px solid $colorAlto !important;

            #{$root}__link {
                font-weight: 700;
            }

            &--check {
                &:before {
                    display: inline-block;
                    content: '';
                    background-image: url('images/check-green.png');
                    background-repeat: no-repeat;
                    background-size: contain;
                    width: 2rem;
                    height: 0.8rem;
                }
            }
        }

        &--bold {
            font-weight: 600;
        }

        &--separate {
            margin-top: 1.5rem;
        }
    }

    &__link {
        color: $colorDoveGray !important;
        text-decoration: none;
        cursor: pointer;

        &:hover,
        &:visited,
        &:active {
            color: $colorDoveGray !important;
            text-decoration: none;
        }

        .counter {
            margin-left: 0.3rem;
            display: inline-block;

            &:before {
                content: '(';
            }

            &:after {
                content: ')';
            }
        }

        &--short {
            max-width: 80%;
        }
    }

    &__flex-link {
        display: flex;
        align-items: center;
    }

    &__bullet {
        margin-right: 0.455em;

        &--tick {
            width: 0.7em;
            height: 0.727em;
            padding-right: 0.2rem;
            fill: $colorApple;
        }

        &--close {
            width: 1rem;
            height: 1rem;
            fill: $colorDoveGray;
            margin-right: 0.7em;
        }

        &--article {
            width: 2.7rem;
            height: 3rem;
            fill: $colorGray;
            margin-right: 1.2rem;

            @include media('>=laptop') {
                margin-right: 2rem;
            }
        }
    }
}
