/** Popup */
.geopopup-modal {
    font-family: inherit;
    position: fixed;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 999;
}

.geopopup-modal.open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.geopopup-modal .modal-bg,
.geopopup-followup .modal-bg {
    position: absolute;
    background: black;
    opacity: 0.75;
    width: 100%;
    height: 100%;
}

.geopopup-modal .modal-container {
    background: #fff;
    position: relative;
    padding: 30px;
    padding-top: 7px;
    min-width: 45%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.geopopup-modal .modal-container h3 {
    text-transform: uppercase;
}

.geopopup-modal .modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    outline: none;
    appearance: none;
    color: #80807f;
    background: none;
    border: 0px;
    font-weight: bold;
    cursor: pointer;
}

.geopopup-modal .modal-container .geo-choices {
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    margin-top: 30px;
}

.geopopup-modal .modal-container .geo-choices .geo-choice img {
    width: 180px;
    height: 120px;
}

.geopopup-modal .modal-container .geo-choices .geo-choice {
    padding: 15px 30px;
    border: 1px solid black;
}

.geopopup-modal .modal-container .geo-choices .geo-choice:first-child {
    background: black;
}

.geopopup-modal .modal-container .geo-choices .geo-choice p {
    margin: 0;
    font-weight: bold;
}

.geopopup-modal .modal-container .geo-choices .geo-choice:first-child p {
    color: white;
}

.geopopup-modal .modal-container a {
    color: black;
}

.geopopup-modal .modal-container .geo-countries-message {
    margin-top: 30px;
}

.geopopup-modal .modal-container .geo-countries-message p > span {
    text-decoration: underline;
    cursor: pointer;
}

@media (min-width: 768px) {
    .geopopup-modal .modal-container .geo-choices {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .geopopup-modal .modal-container {
        margin: 0 5%;
    }

    .geopopup-modal .modal-close {
        right: 5px;
        top: 5px;
    }

    .geopopup-modal .modal-container h3 {
        font-size: 20px;
    }

    .geopopup-modal .modal-container h3, .geopopup-modal .modal-container .geo-description, .geopopup-modal .modal-container .geo-choices .geo-choice {
        margin-bottom: 30px;
    }
}

/** Panel */
.geopopup-panel {
    font-family: inherit;
    position: fixed;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    /*visibility: hidden;*/
    transition: all 0.3s ease;
    top: 100vh;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 999;
    background: white;
}

.geopopup-panel.open {
    /*visibility: visible;*/
    opacity: 1;
    transition-delay: 0s;
    top: 0;
}

.geopopup-panel p,
.geopopup-panel li {
    margin: 0;
}

.geopopup-panel .panel-container {
    width: 75%;
    min-height: 350px;
}

.geopopup-panel .panel-container #geo-panel-p1 {
    margin-top: 45px;
    font-size: 16px;
}

.geopopup-panel .panel-container .panel-current {
    display: flex;
    flex-direction: row;
    margin: 10px auto 45px auto;
    justify-content: space-around;
    max-width: 600px;
}

.geopopup-panel .panel-container .panel-current .panel-current-country,
.geopopup-panel .panel-container .panel-current .panel-current-language {
    display: flex;
    flex-direction: column;
}

.geopopup-panel .panel-container .panel-current .panel-current-country > p:first-child,
.geopopup-panel .panel-container .panel-current .panel-current-language > p:first-child {
    font-weight: bold;
}

.geopopup-panel .panel-container .panel-current .panel-current-language a {
    text-decoration: underline;
}

.geopopup-panel .panel-container .geo-description {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}

.geopopup-panel .panel-container .geo-country-choices {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 45px;
}

.geopopup-panel .panel-container .geo-country-choices .geo-country-choice {
    opacity: 0.6;
    cursor: pointer;
}

.geopopup-panel .panel-container .geo-country-choices .geo-country-choice.selected {
    opacity: 1;
}

.geopopup-panel .panel-container .geo-country-choices p {
    font-size: 14px;
    font-weight: bold;
}

.geopopup-panel .panel-container .geo-country-lists .geo-country-list {
    padding: 0;
    list-style: none;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 75%;
    margin: 0 auto;
    text-align: left;
    column-gap: 150px;
    row-gap: 10px;
    align-items: center;
    justify-content: center;
    display: none;
}

.geopopup-panel .panel-container .geo-country-lists .geo-country-list.visible {
    display: grid;
}

.geopopup-panel .panel-container .geo-country-lists .geo-country-list li a {
    display: flex;
    justify-content: space-between;
}

.geopopup-panel .panel-close {
    position: absolute;
    right: 15px;
    top: 15px;
    outline: none;
    appearance: none;
    color: #80807f;
    background: none;
    border: 0px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .geopopup-panel {
        align-items: flex-start;
        padding-top: 15px;
        z-index: 2147483648;
    }

    .geopopup-panel .panel-container {
        width: 95%;
        min-height: 600px;
    }

    .geopopup-panel .panel-container #geo-panel-h3 {
        margin: 0;
    }

    .geopopup-panel .panel-container .geo-country-choices {
        max-width: 95%;
        flex-direction: column;
        row-gap: 10px;
    }

    .geopopup-panel .panel-container .geo-country-choices .geo-country-choice {
        background: #000;
        color: #fff;
        padding: 5px 0;
    }

    .geopopup-panel .panel-container .geo-country-lists .geo-country-list {
        max-width: 95%;
        grid-template-columns: 1fr;
    }
}

/** Followup */
.geopopup-followup {
    position: absolute;
    background: transparent;
    width: 100%;
    height: 100%;
    display: none;
    font-family: inherit;
    opacity: 0;
    /*visibility: hidden;*/
    transition: all 0.3s ease;
    left: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 999;
}

.geopopup-followup.open {
    /*visibility: visible;*/
    opacity: 1;
    transition-delay: 0s;
    bottom: 0;
    display: flex;
}

.geopopup-followup .followup-container {
    background: #fff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    z-index: 10;
}

.geopopup-followup .followup-container p {
    margin: 0;
}

.geopopup-followup .followup-container #geo-followup-choice-text {
    padding-top: 30px;
}

.geopopup-followup .followup-container .geo-followup-choices {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    margin-top: 15px;
}

.geopopup-followup .followup-container .geo-followup-choices .geo-followup-choice {
    padding: 15px 30px;
    border: 1px solid black;
    background: black;
}

.geopopup-followup .followup-container .geo-followup-choices .geo-followup-choice p {
    margin: 0;
    font-weight: bold;
    color: white;
}

.geopopup-followup .followup-close {
    position: absolute;
    right: 15px;
    top: 15px;
    outline: none;
    appearance: none;
    color: #80807f;
    background: none;
    border: 0px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    .geopopup-followup .followup-container {
        padding: 60px 15px;
        width: 95vw;
        box-sizing: border-box;
    }
    .geopopup-followup .followup-container .geo-followup-choices {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 15px;
        margin: 0;
    }
    .geopopup-followup .followup-container .geo-followup-choices .geo-followup-choice {
        width: 65%;
    }
}