.header-nav .right-nav>div.language-selector {
    width: max-content !important;
}

#country-selector__modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}

#country-selector__modal .modal-dialog {
    margin: 0;
    z-index: 1;
    max-width: max(100%, calc(100% - 40px));
    margin: 0 20px;
    left: unset;
    right: unset;
    top: unset;
    transform: unset !important;
}

#country-selector__modal .modal-dialog .modal-body {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}

#country-selector__modal .selectize-dropdown-content .option,
#country-selector__modal .selectize-dropdown-content > div {
    padding: 4px 8px;
}

#country-selector__modal .modal-dialog .modal-content {
    box-shadow: 0px 3px 20px #00000029;
    border-radius: 0;
}

#country-selector__modal .nice-select .list {
    width: 100%;
    max-height: 162px;
    overflow-y: auto;
}

#country-selector__modal .modal-dialog .modal-body p {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 21px;
    text-align: center;
}

#country-selector__modal .shop-logo {
    max-width: 130px;
    margin-bottom: 30px;
}

#country-selector__modal label {
    font-weight: bold;
    font-size: 14px;
    line-height: 19px;
}

#country-selector__modal.show::after {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    content: '';
    background-color: black;
    opacity: .2;
    display: block;
}

.language-selector {
    display: flex;
    font-size: 14px;
    line-height: 19px;
    padding: 10px;
}

.language-selector p {
    margin: 0;
    color: #7B7B7B;
}

.language-selector p span {
    font-weight: normal;
}

.language-selector.text a {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10.476'%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath data-name='Rectangle 882' fill='%231c2d4e' d='M0 0h10.476v9.986H0z'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Cpath data-name='Rectangle 883' fill='%231c2d4e' d='M0 0h10.476v10H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg data-name='Group 1779'%3E%3Cg data-name='Group 1776'%3E%3Cg data-name='Group 1775' clip-path='url(%23a)' transform='rotate(90 4.993 4.993)'%3E%3Cpath data-name='Path 2554' d='M.621 5.904a.326.326 0 0 0 .476 0l4.065-4.066 4.067 4.066a.325.325 0 0 0 .476 0l.518-.517a.327.327 0 0 0 0-.476L5.4.087a.325.325 0 0 0-.238-.1.33.33 0 0 0-.238.1L.1 4.911a.326.326 0 0 0 0 .476Z' fill='%231c2d4e'/%3E%3C/g%3E%3C/g%3E%3Cg data-name='Group 1778'%3E%3Cg data-name='Group 1777' clip-path='url(%23b)' transform='rotate(90 5 5)'%3E%3Cpath data-name='Path 2555' d='M5.4 4.076a.326.326 0 0 0-.476 0L.1 8.898a.325.325 0 0 0 0 .476l.517.517a.325.325 0 0 0 .238.1.328.328 0 0 0 .238-.1l4.069-4.066L9.228 9.89a.325.325 0 0 0 .476 0l.518-.517a.326.326 0 0 0 0-.476Z' fill='%231c2d4e'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat 100%;
    content: attr(data-edit-label);
    font-size: 14px;
    font-weight: bold;
    padding-right: 15px;
    line-height: 19px;
    letter-spacing: .7px;
    margin-left: 10px;
}

#country-selector {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
}

#country-selector__modal .close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: block;
}

#country-selector button {
    margin: 24px auto 0;
}

#country-selector .position-relative {
    width: 100%;
}
#country-selector__modal-dialog .selectize-control {
  width: 100%;
}

.language-selector.flag img {
    width: 30px;
    border: 1px solid grey;
    border-radius: 2px;
}

#country-selector__modal .selectize-dropdown {
    z-index: 99999;
}

.language-selector.icon span {
    margin-right: 5px;
    text-transform: uppercase;
    line-height: 30px;
}

.language-selector.icon svg {
    width: 30px;
    height: 30px;
    padding: 3px;
}

body.country-selector-block {
    overflow: hidden;
}

.selectize-control .pi-country-flag,
.selectize-dropdown .pi-country-flag {
    display: inline-block;
    width: 18px; 
    height: 12px;
    vertical-align: middle;
    margin-right: 6px;
    box-shadow: 0 0 1px rgba(0,0,0,0.4);
}

.selectize-control .pi-flag-fallback,
.selectize-dropdown .pi-flag-fallback {
   font-size: 14px;
   width: 18px;
   text-align: center;
   line-height: 12px;
}

.selectize-control .item > div,
.selectize-dropdown .option > div {
    display: flex;
    align-items: center;
}

.language-selector.icon svg {
    display: none;
}