.languages-header {

}
/* Language dropdown lives inside #header-navigation (column, right-aligned) so it adds no header height */
#header-navigation .languages-header {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 8px auto;
}
/* Desktop sticky header: put the dropdown on the nav row, right of the search icon */
@media screen and (min-width: 1241px) {
    #masthead.affix #header-navigation {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-end;
        justify-content: flex-end;
    }
    #masthead.affix #header-navigation .languages-header {
        order: 2;
        margin: 0 0 0 24px;
    }
    #masthead.affix #header-navigation .nav-wrap {
        margin-left: 0;
    }
}
/* Mobile/tablet (hamburger menu): dropdown sits beside the logo, left of the menu toggle */
@media screen and (max-width: 1240px) {
    #header-navigation {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
    }
    #header-navigation .languages-header {
        margin: 0 60px 0 auto;
    }
    #header-navigation .nav-wrap {
        margin-left: 0;
    }
}
@media screen and (max-width: 420px) {
    #masthead #logo a img {
        height: 50px !important;
    }
    /* keep the header at its normal mobile height so page content offsets still line up */
    #masthead .flex-container {
        min-height: 62px;
    }
    #masthead #header-navigation .languages-header select {
        font-size: 12px;
        max-width: 96px;
        padding: 3px 18px 3px 6px;
    }
    #header-navigation .languages-header {
        margin-right: 52px;
    }
}
.languages-header select {
    font-size: 13px;
    line-height: 1.2;
    padding: 4px 26px 4px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    width: auto;
    max-width: 160px;
}
.languages-header ul {
    list-style-type: none;
    display: flex;
    column-gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: end;            
}
.menu-footer-spanish-container {
    margin-bottom: 15px;
}
.menu-footer-spanish-container ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 -18px 0 -20px;
    width: calc(100% + 40px);
    justify-content: start;
    text-transform: uppercase;
}
.menu-footer-spanish-container ul li {
    display: block;
    margin: 0 18px 0 20px;
    padding: 3px 0;
}
@media screen and (max-width: 360px) {
    #masthead #logo a img {
        height: 38px !important;
    }
    #masthead #header-navigation .languages-header select {
        font-size: 11px;
        max-width: 84px;
        padding: 3px 14px 3px 4px;
    }
    #header-navigation .languages-header {
        margin-right: 56px;
    }
}
