.geo-location-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: opacity 0.2s;
}

.geo-location-btn:hover {
    opacity: 0.8;
}

.geo-location-btn img {
    display: block;
}


.geo-confirm-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -9px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 25px 20px;
    min-width: 370px;
    z-index: 1000;
}

.geo-confirm-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.geo-confirm-dropdown__text {
    font-size: 21px;
    color: #0D325C;
    margin: 15px 0 35px 0;
    text-align: center;
}

.geo-current-city {
    color: #0D325C;
    font-weight: 600;
    text-decoration: underline;
}

.geo-confirm-dropdown__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.geo-btn {
    width: 100%;
    border: none;
    padding: 5px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: opacity 0.2s;
}

.geo-confirm-mobile__actions .geo-btn {
    padding: 4px 6px;
    font-size: 15px;
}

.geo-btn--yes {
    background: #fc554e;
    color: white;
}

.geo-btn--other {
    background: #95a5a6;
    color: white;
}

.geo-btn:hover {
    opacity: 0.9;
}


.geo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 65px;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
}

.geo-modal:not([hidden]) {
    display: flex !important;
}

.geo-modal__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.geo-modal__window {
    position: relative;
    background: #F3F7FA;
    max-width: 1000px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.geo-modal__header {
    padding: 25px 30px 0px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.geo-modal__title {
    margin: 0;
    color: #0D325C;
    font-size: 26px;
    font-weight: 600;
}

.geo-modal__close {
    background: none;
    border: none;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    color: #fc554e;
    width: 35px;
    height: 35px;
    padding: 0;
    transition: opacity 0.2s;
}

.geo-modal__close:hover {
    opacity: 0.7;
}

.geo-modal__body {
    padding: 25px 30px 90px 30px;
    overflow-y: auto;
    flex: 1;
}

.geo-modal__search {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 25px;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background-color: #F3F7FA;
    font-weight: 600;
    color: #D9D9D9;
}

.geo-modal__search:focus {
    outline: none;
    border-color: #fc554e;
    color: #0D325C;
}

.geo-modal__list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 50px;
    margin-top: 40px;
}

.geo-modal__group {
    min-width: 140px;
}

.geo-modal__letter {
    margin: 0 0 12px 0;
    color: #0D325C;
    font-size: 26px;
    font-weight: 600;
    padding-bottom: 6px;
}

.geo-modal__cities {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.geo-modal__city {
    color: #0D325C;
    text-decoration: none;
    display: block;
    padding: 3px 0;
    font-size: 17px;
    transition: all 0.2s;
}

.geo-modal__city:hover {
    color: #fc554e;
}


.geo-mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.geo-mobile-menu-item img {
    margin-bottom: 3px;
}

.geo-mobile-menu-item:hover {
    opacity: 0.8;
}

.geo-current-city-mobile {
    color: #4ade80;
    font-weight: 500;
}


@media (max-width: 991px) {


    .geo-confirm-dropdown {
        display: none;
    }


    .geo-confirm-mobile {
        display: block;
        background: white;
        padding: 20px;
        position: absolute;
        left: 50px;
        bottom: -130px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        padding: 25px 20px;
        z-index: 10;
        width: 100%;
        max-width: 320px;
    }

    .geo-confirm-mobile__text {
        font-size: 19px;
        color: #0D325C;
        margin: 0 0 15px 0;
        text-align: center;
    }

    .geo-confirm-mobile__actions {
        display: flex;
        gap: 10px;
        justify-content: center;
    }


    .geo-modal__window {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .geo-modal__header {
        padding: 20px;
    }

    .geo-modal__title {
        font-size: 20px;
    }

    .geo-modal__body {
        padding: 20px;
    }

    .geo-modal__list {
        flex-direction: column;
        gap: 20px;
    }

    .geo-modal__group {
        min-width: 100%;
    }

    .geo-modal__letter {
        font-size: 16px;
    }

    .geo-modal__city {
        font-size: 15px;
        padding: 5px 0;
    }
}

@media (max-width: 576px) {
    .geo-modal__window {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}