/* AlmaWine: окно «Где вы находитесь?» — пара к geo-city.js, в стиле окна «Вам есть 21 год?» */

html.aw-geo-open,
html.aw-geo-open body {
    overflow: hidden;
}

.aw-geo {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .6);
    font-family: Montserrat, Arial, sans-serif;
}

.aw-geo__box {
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 30px 22px 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    text-align: center;
    color: #555;
}

.aw-geo__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #eef3ee;
    position: relative;
}
.aw-geo__icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 11px;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50% 50% 50% 0;
    background: #4d604d;
    transform: rotate(-45deg);
}
.aw-geo__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 17px;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: #fff;
}
.aw-geo[data-state="loading"] .aw-geo__icon::before,
.aw-geo[data-state="reload"] .aw-geo__icon::before {
    animation: aw-geo-pulse 1s ease-in-out infinite;
}
@keyframes aw-geo-pulse {
    50% { transform: rotate(-45deg) translate(2px, -2px); }
}

.aw-geo__title {
    margin: 0 0 10px;
    color: #333;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}
.aw-geo__title:empty {
    display: none;
}

.aw-geo__text,
.aw-geo__help {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
}
.aw-geo__text:empty,
.aw-geo__help:empty {
    display: none;
}
.aw-geo__help {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f6f7f5;
    color: #4f5a50;
    font-size: 14px;
    text-align: left;
}

.aw-geo__primary,
.aw-geo__city {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: background-color .2s ease;
}
.aw-geo__primary {
    background: #4d604d;
    color: #fff;
}
.aw-geo__primary:hover {
    background: #3e4f3e;
}
.aw-geo__primary[hidden],
.aw-geo__manual[hidden] {
    display: none;
}

.aw-geo__manual {
    margin-top: 18px;
}
.aw-geo__manual-label {
    margin-bottom: 10px;
    color: #888;
    font-size: 13px;
}
.aw-geo__cities {
    display: flex;
    gap: 10px;
}
.aw-geo__city {
    flex: 1 1 0;
    background: #eef1ee;
    color: #333;
}
.aw-geo__city:hover {
    background: #e0e6e0;
}

.aw-geo__primary:focus-visible,
.aw-geo__city:focus-visible {
    outline: 2px solid #4d604d;
    outline-offset: 2px;
}
