@import './styles/<!--partnerName--settings-->';
@import './styles/tools';

$c-dropdown-box-height: 48px !default;
.c-dropdown-box {
    position: relative;
    cursor: pointer;
    display: inline-block;
    width: 100%;
}
    .c-dropdown-box__select {
        color: $grey-super-dark;
        border: none;
        height: $c-dropdown-box-height;
        background-color: transparentize($black-color, 0.92);
        display: flex;
        font-family: $secondary-font-family;
        font-size: $font-size-text-m;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px 0 12px;
        border-radius: 0;
        cursor: pointer;
        width: 100%;
    }

    .c-dropdown-box__select__icon {
        opacity: 0.6;
        width: 18px;
    }

    .c-dropdown-box__menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 100%;
        margin-top: 8px;
        z-index: 1;
    }

    $c-dropdown-box__select-menu--options-bg: rgb(255, 255, 255);
    .c-dropdown-box__select-menu {
        list-style: none;
        background-color: $c-dropdown-box__select-menu--options-bg;
        padding: 10px 0;
        margin: 0;
        box-sizing: content-box;
        width: 100%;
        box-shadow: 0 4px 60px 0 transparentize($black-color, 0.8);
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        @include css-arrow2(
            $arrowColor: #FFF,
            $direction: 'up',
            $arrowWidth: 20px,
            $arrowHeight: 14px,
            $offsetFrom: 'right',
            $distance: 12px
        )
    }
        .c-dropdown-box__select-menu--min-height {
            min-height: $c-dropdown-box-height * 4;
        }
    .c-dropdown-box__select-menu__item {
        padding: 0 10px;
        overflow: hidden;
    }

    .c-dropdown-box__select-menu__option {
        line-height: 30px;
        padding: 0 10px;
        border: none;
        background-color: transparent;
        box-sizing: border-box;
        width: 100%;
        text-align: left;
        border-radius: 0;
        cursor: pointer;
        &:hover {
            background-color: $grey-super-light;
        }
        &:active {
            outline: none;
        }
    }
        .c-dropdown-box__select-menu__option--selected {
            cursor: default;
            font-weight: $font-weight-bold;
        }
