/*
Theme Name: OceanWP Child
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme example child theme.
Author: Nick
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */
.flex {
    display: flex;
}
.items-center {
    align-items: center;
}
.mr-sm {
    margin-right: 0.5rem;
}
.hidden {
    display: none!important;
}

.menu-item-type-menu-lang {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-lang-wrapper {
    position: relative;
    margin-right: 0.5em;
    max-width: 75px;
    height: 35px;
}

.menu-lang-wrapper img {
    width: 20px;
    height: 20px;
}
.menu-lang-wrapper button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    border: 1px solid #D90429;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
    line-height: 17px;
    padding: 0 10px;
    background: white;
    width: 100%;
    height: 100%;
    color: #D90429;
}

.menu-lang-wrapper button:hover, 
.menu-lang-wrapper button:focus{
    background-color: white;
    color: #D90429;
}
.menu-lang-wrapper a:hover{
    color: #D90429;
}
.menu-lang-wrapper .menu-lang {
    position: absolute;
    min-width: 115px;
    margin: 10px 0;
    border-radius: 12px;
    background: white;
    list-style: none;
    padding: 0;
    color: #D90429;
    overflow: hidden;
    z-index: 1001;
    display: block;
    right: 0;
    left: auto;
}

.menu-lang-wrapper .menu-lang div {
    line-height: 17px;
    white-space: nowrap;
    padding: 0;
    cursor: pointer;
}
.menu-lang-wrapper .menu-lang div a {
    display: block;
    font-size: 14px;
    text-decoration: none;
    padding: 10px;
    margin: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.menu-lang-wrapper .menu-lang div a:hover {
    padding: 10px !important;
}

@media screen and (max-width: 1025px) {
    .menu-item-type-menu-lang.active  {
        height: 200px;
    }
    .menu-lang-wrapper {
        margin: 18px 32px;
    }
    .mlp-language-nav-item a {
        padding: 18px 8px !important;
    }
    .menu-lang-wrapper .menu-lang {
        right: auto !important;
    }
}