/*
//    .phones_menu
//        input.checkbox
//        ul.popup
//            li
//                a
//        label.handset
//        a.title
//        label.arrow
*/

/* -- FIXES -- */

.phones_menu .popup {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* -- LAYOUT -- */

.phones_menu  {
    display: flex;
    flex-direction: row;
    align-self: center;
}

.phones_menu .popup {
    display: flex;
    flex-direction: column;
}

.phones_menu > a {
    display: inline-block;
}

.phones_menu .handset {
    z-index: 498;
}

.phones_menu > .arrow {
    z-index: 498;
}

.phones_menu .popup {
    z-index: 497;
}

/* -- STYLING -- */

.phones_menu  {
    white-space: nowrap;
    align-items: center;
}

.phones_menu .popup {
    background-color: #eeeeee;
    box-shadow: 0 0 5px 5px rgba(128, 128, 128, 0.2);
}

.phones_menu a {
    color: black;
    font-size: 18px;
}

/* -- SPACING -- */

.phones_menu  {
    margin-right: 30px;
}

.phones_menu > a {
    margin-left: 10px;
    line-height: 35px;
}

.phones_menu .handset {
    margin-left: 14px;
}

.phones_menu > .arrow {
    margin-left: 5px;
}

.phones_menu .popup {
    margin-left: 0;
    margin-right: 0;
    top: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: 48px;
    padding-right: 43px;
}

.phones_menu .popup li {
    line-height: 35px;
}

/* == BEHAVIOUR == */

/* -- LAYOUT -- */

.phones_menu .checkbox {
    display: none;
}

.phones_menu .checkbox ~ .popup {
    display: none;
}

.phones_menu .checkbox:checked ~ .popup {
    display: flex;
    position: absolute;
}

/* -- STYLING -- */

.phones_menu .checkbox ~ .arrow {
    width: 24px;
    height: 24px;
    background-image: url('../img/arrow-dropdown.png');
    cursor: pointer;
}

.phones_menu .checkbox:checked ~ .arrow {
    background-image: url('../img/arrow-dropdown-up.png');
}

.phones_menu .handset {
    width: 24px;
    height: 24px;
    background-image: url('../img/phone.png');
}

/* == MOBILE == */

@media screen and (max-width: 750px) {
    /* -- LAYOUT -- */
    .phones_menu > a,
    .phones_menu .arrow {
        display: none;
    }
    /* -- SPACING -- */
    .phones_menu .popup {
        margin-left: -63px;
        margin-right: 0;
        top: 8px;
        padding-top: 42px;
        padding-left: 10px;
        padding-right: 10px;
    }
}
