.mlp-country-selector-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 0 0;
    z-index: 2;
    transition: opacity .3s ease;
    opacity: 1;
}

.mlp-country-selector-dialog.hide {
    opacity: 0;
    pointer-events: none;
}

.mlp-country-selector-dialog .country-selector {
    text-align: center;
    display: flex;
    align-items: center;
}

.mlp-country-selector-dialog .picker.select .country-selector {
    text-align: left;
    width: 100%;
    padding: 6px;
    margin-top: 6px;
}
.mlp-country-selector-dialog .picker.select .country-selector + button {
    padding: 10px 30px;
    white-space: nowrap;
    transition: opacity .2s ease;
    background: black;
    color: white;
    width: 100%;
    margin-top: 30px;
}

.mlp-country-selector-dialog .picker.select .country-selector + button:hover {
    opacity: .7;
}

.mlp-country-selector-dialog .mlp-model-container .header {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #f2f2f2;
}

.mlp-country-selector-dialog .mlp-model-container .header h2 {
    font-size: clamp(18px, 1.76vw + 10.59px, 36px);
    font-weight: normal;
    margin: 0;
}

.mlp-country-selector-dialog > i {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(40,40,40,.4);
    /*visibility: visible;*/
}

.mlp-country-selector-dialog > .mlp-model-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    background: white;
    max-width: 88%;
    width: 100%;
    box-sizing: border-box;
}

.mlp-country-selector-dialog .mlp-model-container .picker {
    padding: 30px;
}

.mlp-country-selector-dialog .mlp-model-container .picker select {
    font-size: 16px;
}

.mlp-country-selector-dialog .mlp-model-container .picker.buttons {
    padding: 40px;
    display: flex;
    justify-content: space-between;
    /*flex-direction: column;*/
    gap: 20px;
}

.mlp-country-selector-dialog .confirm-country-button {
    border: 0;
    margin-top: 20px;
    height: 48px;
}

.mlp-country-selector-dialog .country-selector a,
.mlp-country-selector-dialog .country-selector button,
.mlp-country-selector-dialog .confirm-country-button {
    padding: 10px 30px;
    white-space: nowrap;
    transition: opacity .2s ease;
    width: 100%;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

.mlp-country-selector-dialog .country-selector a:hover,
.mlp-country-selector-dialog .country-selector button:hover,
.mlp-country-selector-dialog .confirm-country-button:hover {
    opacity: .7;
}

.mlp-country-selector-dialog .country-selector button {
    /*background: #d3d3d3;*/
    height: 42px;
    background: transparent;
}

.mlp-country-selector-dialog .country-selector a,
.mlp-country-selector-dialog .confirm-country-button {
    background: black;
    color: white;
}

.mlp-country-selector-dialog .mlp-model-container .picker .country-selector.hide {
    display: none;
}

.mlp-country-selector-dialog .mlp-model-container h2 span.current-lang {
    font-size: clamp(3.2rem, calc(1.25vw + 2.8rem), 5.2rem);
}

.mlp-country-selector-dialog .picker .country-selector:not(.current) {
    order: -1;
}

#lang-switcher {
    display: inline-flex;
    position: relative;
}

#lang-switcher input {
    display: none;
}



/*#lang-switcher:hover label {*/
/*    background: white;*/
/*    box-shadow: 0px 3px 24px 3px rgba(0,0,0,0.04);*/
/*}*/



#lang-switcher:hover label.current {
    background: white;
    box-shadow: 0px 3px 24px 3px rgba(0,0,0,0.04);
}

#lang-switcher label.current,
#lang-switcher .switcher {
    border-radius: 4px;
}

#lang-switcher label.current,
#lang-switcher a.link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    padding: 8px 10px;
}

#lang-switcher label.current img,
#lang-switcher a.link img {
    width: 32px;
    margin-right: 8px;
}

#lang-switcher .close-modal-button {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 9999;
    background: rgba(40,40,40,.4);

}


#lang-switcher .switcher {
    position: fixed;
    top: 0;
    height: 100%;
    right: 0;
    width: 260px;
    background: white;
}

#lang-switcher .switcher h2 {
    font-size: 22px;
    padding: 0 10px;
}

#lang-switcher i {
    display: none;
}

@media ( max-width: 1359px ) {
    input#lang-modal:checked ~ .switcher {
        display: block;
        transform: translateX(0);
    }
    input#lang-modal:checked ~ i {
        display: block;
    }
    #lang-switcher .switcher {
        z-index: 99999;
        padding: 40px;
        transform: translateX(100%);
        transition: transform .2s ease;
    }
    #lang-switcher label.current .label {
        display: none;
    }
    #lang-switcher a .short {
        display: none;
    }
    #lang-switcher a {
        transition: background .2s ease;
    }
    #lang-switcher a.link img {
        margin-right: 12px;
    }
    #lang-switcher a:hover {
        background: #ededed;
    }

}

@media (min-width: 1360px) {
    #lang-switcher:hover .switcher {
        display: block;
        box-shadow: 0px 3px 24px 3px rgba(0,0,0,0.04);
    }
    #lang-switcher .switcher {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        height: auto;
        width: 100%;
        display: none;
        background: white;
    }
    #lang-switcher .switcher a.current,
    #lang-switcher .switcher a .label,
    #lang-switcher label .label {
        display: none;
    }
    #lang-switcher .switcher h2 {
        display: none;
    }


}

@media (min-width: 768px) {
    .mlp-country-selector-dialog .picker .country-selector:not(.current) {
        order: 2;
    }
    .mlp-country-selector-dialog .mlp-model-container {
        width: auto;
    }
    .mlp-country-selector-dialog .picker.buttons {
        flex-direction: row;
        gap: 30px;
    }

    /*.mlp-country-selector-dialog > section {*/
    /*    width: auto;*/
    /*    max-width: 100%;*/
    /*}*/

    .mlp-country-selector-dialog .mlp-model-container .header {
        padding: 30px 40px;
    }
    .mlp-country-selector-dialog .mlp-model-container .picker {
        padding: 40px;
    }

}

