.vp-balance-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.vp-balance-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vp-topup-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
}

.vp-topup-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.vp-topup-modal__dialog {
    position: relative;
    z-index: 2147483647;
    max-width: 420px;
    margin: 10vh auto 0;
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.vp-topup-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.vp-topup-modal__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.vp-topup-modal__text {
    margin-bottom: 12px;
    color: #444;
}

.vp-topup-modal__input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 16px;
}

.vp-topup-modal__error {
    margin-bottom: 12px;
    color: #c62828;
    font-size: 14px;
}

.vp-topup-modal__submit {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #111;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

#popupContainer{
	display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;	
}
.check-city, .wide-content {
	display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
/* Окно и крестик управляются одним состоянием: контейнер скрыт по умолчанию
   независимо от check-city/wide-content, а крестик всегда позиционируется
   относительно своего окна и не "убегает" к .header-logo, когда окно закрыто */
#popupContainerCity {
    display: none;
}
#popupCity {
    position: relative;
}
#popupContainer .modal-window {
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    position: relative;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

#popupContainer .modal-window h3:after {
    content: none;
}

#popupContainer .modal-window li {
    padding: 5px 0;
}

#popupContainer .modal-window p {
    margin: 5px 0;
}

#popupContainer .modal-window p ~ ul {
    margin-top: 0;
}

#popupBody > h3 {
    margin-top: 0;
}

.modal-close {
    position: absolute;
    font-size: 24px;
    color: #333;
    cursor: pointer;
	padding: 10px;
	right: 0;
    top: 0;
}
.box-vp-modal {
	display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.icon-modal {
    font-size: 40px;
    color: #008d42;
    border: solid 1px #008d42;
    border-radius: 50%;
    height: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
}
.box-vp-modal .vp-topup-modal__title {
    text-align: center;
}
.back-vp a {
    align-items: flex-start;
}
.wide-content .modal-window, .check-city .modal-window  {
    max-width: 400px;
	padding: 50px;
    background: #fff;
    border-radius: 6px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
	max-width: 1440px;
}
#cityList {
    display: grid;
    margin: 0;
    padding: 0;
    color: #000;
    gap: 40px;
    grid-template-columns: repeat(4, 1fr);
}
.city-letter-group {
    display: flex;
    align-items: flex-start;
}
.city-letter-title {
    font-weight: 800;
	font-size: 18px;
}
ul.city-items-list {
    padding: 0 0 0 20px;
}
.wide-content .modal-window li {
    padding: 0;
	list-style-type: none;
}
a.js-city-item {
    color: #000;
    text-decoration: none;
    font-weight: 100;
    font-size: 15px;
}
.city-items-list li::marker {
	content: none;
}
.city-select-list h3 {
    margin: 0 0 35px;
}

.city-confirm-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
button.button-callback.js-city-yes {
    background: #008d42;
}
a.js-city-other {
    margin:0 0 0 auto;
}
.city-confirm {
    color: #000;
}
.check-city{
    width: fit-content;
    height: fit-content;
	position: absolute;
	background: none;
	right: 0;
    left: revert;
    top: 85px;
	box-shadow: rgb(0 0 0 / 19%) 0 12px 21px 3px;
	transition-duration: 800ms;
}
.check-city .modal-window {
    width: 100%;
    overflow-y: revert;
}
button.button-callback.js-city-yes {
    width: auto;
    padding: 10px 15px;
}
.city-confirm p {
    margin-top: 0;
}
.header-logo {
    position: relative;
}
.fixed .check-city {
    top: 63px;
    transition-duration: 800ms;
}
@media (max-width: 960px) {
	.check-city {
		top: 45px;
		transition-duration: 800ms;
	}
	.fixed .check-city {
		top: -205px;
		transition-duration: 800ms;
	}	
}
@media (max-width: 760px) {
	.wide-content .modal-window {
		max-height: 100dvh;
		border-radius: 0;
	}
	#cityList {
		grid-template-columns: repeat(3, 1fr);
	}
	.wide-content .modal-window {
		width: 100%;
	}
	.wide-content .modal-close {
		position: fixed;
	}
}
@media (max-width: 600px) {
	#cityList {
		grid-template-columns: repeat(2, 1fr);
	}	
	
}
@media (max-width: 440px) {
	#cityList {
		grid-template-columns: repeat(1, 1fr);
	}	
}

@media (max-width: 350px) {
	.wide-content .modal-window {
		padding: 20px;
	}
    .check-city .modal-window {
        padding: 35px;
    }	
}

.wide-content {
    display: none !important;
}
.wide-content {
    display: flex !important;
}

