/* Модалка выбора города при «первом визите» — компактный маркетплейс-паттерн (WB/Ozon/DNS) */
.nvx-city-modal__content {
    width: 92%;
    max-width: 400px;
    max-height: 82vh;
}

.nvx-city-modal__header {
    padding: 12px 16px;
}

.nvx-city-modal__header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.nvx-city-modal__body {
    padding: 12px 16px 16px;
}

/* Шаг 1: «Ваш город — Москва?» */
.nvx-city-confirm {
    text-align: center;
    padding: 10px 0 6px;
}

.nvx-city-confirm__label {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 14px;
}

.nvx-city-confirm__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nvx-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease;
}

.nvx-btn--primary {
    background: #7f54b3;
    color: #fff;
}

.nvx-btn--primary:hover {
    background: #6f49a2;
}

.nvx-btn--ghost {
    background: transparent;
    color: #7f54b3;
    border-color: #d9d2e8;
}

.nvx-btn--ghost:hover {
    background: #f6f3fb;
}

/* Шаг 2: поиск + список */
.nvx-city-picker {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.nvx-city-search-wrap {
    position: relative;
}

.nvx-city-search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px 10px 34px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    font-size: 14px;
}

.nvx-city-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid #9aa0a6;
    border-radius: 50%;
}

.nvx-city-search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 2px;
    background: #9aa0a6;
    transform: rotate(45deg);
}

.nvx-city-search:focus {
    outline: none;
    border-color: #7f54b3;
}

.nvx-city-section {
    margin-top: 14px;
}

.nvx-city-section__title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.nvx-city-popular-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.nvx-city-chip {
    height: auto;
    line-height: 1.4;
    padding: 4px 9px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.nvx-city-chip:hover {
    background: #f6f3fb;
    border-color: #c9bce2;
}

/* Список всех городов — ограниченная высота со скроллом */
.nvx-city-all-list {
    max-height: 40vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0 -4px;
    padding: 0 4px;
}

.nvx-city-group {
    margin-bottom: 4px;
}

.nvx-city-group__title {
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    margin: 8px 0 4px;
    background: #fff;
}

.nvx-city-group__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2px;
}

.nvx-city-item {
    text-align: left;
    padding: 7px 8px;
    border: 0;
    background: none;
    font-size: 13.5px;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
}

.nvx-city-item:hover {
    background: #f2f0f7;
    color: #7f54b3;
}

.nvx-city-none {
    display: none;
    color: #555;
    font-size: 13px;
    padding: 10px 0;
}

@media (max-width: 480px) {
    .nvx-city-modal__content {
        width: 94%;
    }
}
