﻿.location__popup {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
}

.location__popup.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.location__popup-overlay {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 37, 45, 0.4);
}

.location__popup-inner {
    position: relative;
    z-index: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    max-width: 400px;
    width: 100%;
    padding: 40px;
    border-radius: 16px;
    background-color: #fff;
}

.location__popup-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 20px;
    height: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 12px;
    color: #8f9296;
    padding: 0;
    margin: 0;
    border: 0;
    background-color: transparent;
    outline: none;
}

.location__popup-close:focus {
    outline: none;
}

.location__popup-text {
    text-align: center;
    font-size: 18px;
}

.location__popup-text p {
    margin-bottom: 20px;
}

.location__popup-text p a {
    text-decoration: underline;
}

.location__popup-btn {
    min-width: 174px;
    color: #fff;
    font-size: 14px;
    background-color: #68ad5c;
    border-radius: 5px;
    border: 0;
    padding: 12px 43px;
}

.location__popup-btn:focus {
    outline: none;
}

.location__popup-btn[disabled] {
    opacity: .5;
}

.location__popup .highlight {
    font-weight: 700;
}

.location__popup .location__popup-select__wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.location__popup .location__popup-select {
    width: 100%;
    height: auto;
}

.location__popup .select2-container {
    width: 100% !important;
}

.location__popup .select2-container .select2-selection {
    height: 48px;
    background-color: #f2f3f3;
    border: none;
    border-radius: 4px;
}

.location__popup .select2-container .select2-selection__rendered {
    padding: 0 2rem 0 1.05rem;
    line-height: 48px;
    font-size: 16px;
    color: #0a0a0a;
}

.location__popup .select2-container .select2-selection__arrow {
    top: 50%;
    right: 1rem;
    transform: translateX(50%) translateY(-50%);
}

.location__popup .select2-dropdown {
    background-color: #f2f3f3;
    border: none;
}

.location__popup .select2-results__options {
    padding: 0;
}

.location__popup .select2-results__option {
    margin: 0;
}

.location__popup .select2-results__options .select2-results__option:before {
    display: none;
}

.location__popup .select2-search--dropdown .select2-search__field {
    margin: 0;
}

.rtl .select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding-inline-start: 1.05rem;
    padding-inline-end: 2rem;
}

@media only screen and (max-width: 400px) {
    .location__popup-inner {
        max-width: 95%;
    }
}

@media only screen and (max-width: 900px) and (orientation: landscape) {
    .location__popup {
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        padding: 50px 0;
    }
}
