/* флаги  */
.form__flag-select {
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 1;
}
.form__flag-select .search__box {
    width: 100%;
    padding: 16px 16px 0px 16px;
    position: relative;
    margin-bottom: 8px;
}
.form__flag-select .search__box input {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    border-bottom: solid 1px var(--grey);
    font-family: "Montserrat";
    font-weight: 400;
    font-size: 16px;
    color: #1F1F1F;
}
.form__flag-select .search__box input::-moz-placeholder {
    color: rgba(31, 31, 31, 0.5);
}
.form__flag-select .search__box input::placeholder {
    color: rgba(31, 31, 31, 0.5);
}
.form__flag-select .search__box .search::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
.form__flag-select .search__box .icon-search {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg width="26" height="26" viewBox="0 0 26 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.42066 15.9451C1.23825 12.7627 1.23825 7.60306 4.42066 4.42066C7.60306 1.23825 12.7627 1.23825 15.9451 4.42066C19.1276 7.60306 19.1276 12.7627 15.9451 15.9451C12.7627 19.1276 7.60306 19.1276 4.42066 15.9451ZM3.5957 3.5957C-0.0423158 7.23371 -0.0423158 13.1321 3.5957 16.7701C7.09516 20.2696 12.6861 20.4028 16.3449 17.1699L24.0196 24.8448C24.2474 25.0726 24.6168 25.0727 24.8446 24.8448C25.0724 24.617 25.0724 24.2477 24.8446 24.0199L17.1698 16.345C20.4028 12.6862 20.2696 7.09519 16.7701 3.5957C13.1321 -0.0423157 7.23371 -0.0423157 3.5957 3.5957Z" fill="%231F1F1F" fill-opacity="0.5"/></svg>');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
}
.form__flag-select .search__box .icon-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
}
.form__flag-select .search__box .icon-search-close:before, .form__flag-select .search__box .icon-search-close::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    height: 1px;
    width: 100%;
    opacity: 0.5;
    background-color: #1F1F1F;
}
.form__flag-select .search__box .icon-search-close:before {
    transform: rotate(45deg);
}
.form__flag-select .search__box .icon-search-close::after {
    transform: rotate(-45deg);
}
.form__flag-select.active {
    z-index: 3;
}
.form__flag-select .select {
    position: relative;
    width: 112px;
    z-index: 2;
    cursor: pointer;
    height: 54px;
    background-color: #fff;
    border-right: 1px solid rgb(219, 219, 219);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    position: relative;
}
.form__flag-select .select .flag__icon {
    width: 24px;
    height: 24px;
    position: relative;
    top: 15px;
    left: 16px;
}
.form__flag-select .select .flag__icon img {
    width: 100%;
}
.form__flag-select .select .flag__code {
    width: 40px;
    font-family: "Montserrat";
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    position: absolute;
    right: 8px;
    top: 16px;
    outline: none;
    padding: 0;
    text-align: center;
    border: none;
}
.form__flag-select .select::after {
    position: absolute;
    content: "";
    width: 7px;
    height: 7px;
    right: 56px;
    top: -4px;
    bottom: 0;
    margin: auto;
    transform: rotate(45deg);
    border-bottom: 1px solid #1F1F1F;
    border-right: 1px solid #1F1F1F;
    cursor: pointer;
    transition: 0.4s;
}
.form__flag-select.active .select::after {
    transform: translateY(5px) rotate(225deg);
}
.form__flag-select .select .select__input {
    position: absolute;
    top: 0;
    left: 0;
    padding-left: 60px;
    padding-right: 8px;
    width: 100%;
    height: 100%;
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    font-family: "Montserrat";
    font-weight: 400;
    display: none;
}
.form__flag-select .option-container {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    bottom: 63px;
    width: 605px;
    background: #FFFFFF;
    border: 1px solid #DBDBDB;
    height: 0;
    opacity: 0;
    transition: 0.4s;
    border-radius: 16px;
    box-shadow: 0px 4px 20px rgba(31, 31, 31, 0.1);
}
.form__flag-select.active .option-container {
    height: 312px;
    opacity: 1;
    pointer-events: all;
    z-index: 4;
}
.form__flag-select .option-container-wrap {
    padding: 0px 16px 0px 16px;
    height: calc(100% - 32px);
    width: calc(100% - 16px);
    overflow-y: scroll;
    display: flex;
    flex-wrap: wrap;
    height: 232px;
}
.form__flag-select .option-container-wrap::-webkit-scrollbar {
    width: 8px;
    background: rgba(241, 241, 241, 0.471);
    border-radius: 20px;
}
.form__flag-select .option-container-wrap::-webkit-scrollbar-thumb {
    background: rgb(232, 232, 232);
    border-radius: 20px;
}
.form__flag-select .option-container .option {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: calc(100% + 16px);
    margin-left: -8px;
    padding-left: 8px;
    min-height: 40px;
    transition: 0.2s;
    min-height: 40px;
    font-family: "Montserrat";
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    margin-bottom: 8px;
    border-radius: 8px;
}
.form__flag-select .option-container .option:hover {
    background-color: #F5F5F5;
}
.form__flag-select .option-container .option.selected {
    background-color: #F5F5F5;
}
.form__flag-select .option-container .option label {
    cursor: pointer;
}
.form__flag-select .flag__and__code {
    width: 104px;
    display: flex;
    flex-shrink: 0;
    min-height: 40px;
    margin-right: 8px;
    align-items: center;
    justify-content: space-between;
    border-right: solid 1px var(--grey);
    padding-right: 8px;
}
.form__flag-select .flag__and__code .flag {
    flex-shrink: 0;
}
.form__flag-select .flag__and__code span {
    width: 40px;
    flex-shrink: 0;
    text-align: center;
}
