/**
 * Country, Language and Currency Selector - geolocation popup
 */

.th-geo-popup {
    position: fixed;
    top: 7rem;
    right: 1.5rem;
    z-index: 10000;
    width: calc(100% - 2rem);
    max-width: 24rem;
    opacity: 0;
    transform: translateY(-1rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-sizing: border-box;
}

.th-geo-popup *,
.th-geo-popup *::before,
.th-geo-popup *::after {
    box-sizing: border-box;
}

.th-geo-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 768.98px) {
    .th-geo-popup {
        top: 5rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
    }
}

.th-geo-popup__dialog {
    position: relative;
    padding: 1.75rem 1.5rem 1.5rem;
    background: #fff;
    border: 1px solid #d9d3c7;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    font-family: "cera_round_pro_demoregular", sans-serif;
}

.th-geo-popup__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    padding: 0.25rem;
    background: none;
    border: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: #757575;
    cursor: pointer;
}

.th-geo-popup__body {
    margin-bottom: 1.25rem;
    text-align: center;
}

.th-geo-popup__heading {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #232323;
}

.th-geo-popup__shop {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin-top: 1rem;
}

.th-geo-popup__shop-label {
    margin: 0;
    font-size: 0.875rem;
    color: #757575;
}

.th-geo-popup__control {
    position: relative;
    display: inline-block;
}

.th-geo-popup__control::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.4rem;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: -0.35rem;
    border-right: 1px solid #232323;
    border-bottom: 1px solid #232323;
    transform: rotate(45deg);
    pointer-events: none;
}

.th-geo-popup__select {
    padding: 0.25rem 1.5rem 0.25rem 0;
    background: none;
    border: 0;
    border-bottom: 1px solid #232323;
    border-radius: 0;
    width: auto;
    max-width: 100%;
    height: auto;
    font-size: 0.875rem;
    color: #232323;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.th-geo-popup__select:focus {
    outline: none;
    border-bottom-width: 2px;
}

.th-geo-popup .th-geo-popup__continue {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #232323;
    border: 1px solid #232323;
    border-radius: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.th-geo-popup .th-geo-popup__continue:hover,
.th-geo-popup .th-geo-popup__continue:focus {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.th-geo-popup__different {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.25rem;
    background: none;
    border: 0;
    color: #757575;
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
}
