﻿ul.dropdown {
    list-style: none;
    position: relative;
    border: 1px solid #666666;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    height: 45px;
    cursor: pointer;
    margin: 0;
    padding: 0;
    width: calc(100% - 2px);
}

.dropdown .dropdown__label {
    position: absolute;
    top: -9px;
    left: 15px;
    background: #fff;
    color: #666666;
    font-size: 12px;
}

.dropdown .dropdown__arrow {
    position: absolute;
    right: 0;
    top: 0;
    height: 45px;
    width: 60px;
}

.dropdown li.dropdown__arrow:after {
    font-family: fontello;
    content: '\e80c';
    position: absolute;
    font-size: 12px;
    right: 20px;
    top: calc(50% - 6px);
    pointer-events: none;
}

.dropdown li.dropdown__arrow.expanded:after {
    transform: rotate(-180deg);
}

.dropdown .dropdown__list {
    background: #ffffff;
    height: auto;
    width: 100%;
    position: absolute;
    left: -1px;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    border: 1px solid #666666;
    transition: opacity .1s cubic-bezier(0, 0, 0.38, 0.9), max-height .5s cubic-bezier(0, 0, 0.38, 0.9);
    overflow: hidden;
    opacity: 0;
    max-height: 300px;
    z-index: -1;
}

.dropdown .dropdown__list-item {
    border-bottom: 1px solid rgba(102, 102, 102, 0.3);
    font-size: 12px;
    color: #000000;
    padding: 0;
    transition: background-color .1s linear, color .1s linear;
    color: #444444;
    list-style-position: inside;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .dropdown .dropdown__list-item:last-of-type {
        border-bottom: none;
    }

    .dropdown .dropdown__list-item a {
        color: #000000;
    }

    .dropdown .dropdown__list-item--padding,
    .dropdown .dropdown__list-item label {
        border-radius: 0;
        display: block;
        padding: 10px 15px;
    }

.dropdown .dropdown__list-container {
    position: relative;
}

.dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown .dropdown__list-item .checked label:focus,
.dropdown .dropdown__list-item a:hover,
.dropdown .dropdown__list-item a:focus
.dropdown .dropdown__list-item:hover,
.dropdown .dropdown__list-item:focus {
    background-color: transparent;
    color: #000000;
    outline: none;
}

.dropdown .dropdown__selected {
    font-size: 12px;
    color: #666666;
    padding: 14px 45px 14px 10px;
    margin: 0;
    list-style-position: inside;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 54px);
}

    .dropdown .dropdown__selected:focus {
        background: #fffbc0;
        outline: none;
    }

.dropdown .dropdown__list.open {
    opacity: 1;
    overflow: auto;
    min-height: 112px;
    z-index: 1;
}

/* Dropdown with links */
.dropdown--links .dropdown__list-item {
    padding: 0;
}

    .dropdown--links .dropdown__list-item a {
        display: block;
        padding: 10px 15px;
    }

        .dropdown--links .dropdown__list-item a:focus {
            outline: none;
        }

.categories_container .dropdown .dropdown__list.open {
    z-index: 2;
}

.user_tabbing .dropdown .dropdown__list-item a:hover,
.user_tabbing .dropdown .dropdown__list-item a:focus,
.user_tabbing .dropdown .dropdown__list-item label:focus,
.user_tabbing .dropdown .dropdown__list-item:hover,
.user_tabbing .dropdown .dropdown__list-item:focus,
.user_tabbing .dropdown .dropdown__selected:focus,
.user_tabbing .dropdown--links .dropdown__list-item a:focus {
    background-color: #fffbc0;
    outline: 1px solid #000000;
    outline-offset: -1px;
}
