

/* Кнопка выбора города */
.city-select-btn {
  color: #fff;
  font-weight: 600;
  margin-top: 3px;
  padding: 12px 5px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  background-color: #002250;
  border: #002250 2px solid;
}


@media (max-width: 720px) {

}

.city-select-btn:hover {
  background-color: #2f75c4;
}

/* Стили всплывающего окна */
.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* Полупрозрачный фон */
}




.modal-content {
  position: relative;
  z-index: 10000;
  background-color: white;
  margin: 8% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
}

/* Кнопка закрытия */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

/* Заголовок */
h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
  max-width: 500px;
  margin: 0px auto;
}

/* Поле ввода */
#citySearch {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Контейнер для выбранного города */
.selected-city {
  margin-bottom: 20px;
  text-align: center;
}

.selected-city a {
  display: block;
  padding: 10px 20px;
  border: 1px solid #002250;
  color: #002250;

  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

/* Сетка городов */
.cities-grid {
  max-height: 400px;
    overflow-y: scroll;
    padding-right: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.cities-grid a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #002250;
  text-align: center;
  border: 1px solid #002250;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cities-grid a:hover {
  background-color: #002250;
  color: white;
}

/* Адаптивность */
@media (max-width: 768px) {

  .cart-header {
    order: 1;}
    .city-select-btn {
      order: 1;}
      .header__logo {
        order: 0;
    }

    .main-menu-flex {
      order: 1;
      gap: 10px;
    }
  .cart-header__icon{

    margin-top: 10px;
    margin-right: 10px;
  }
  .logo .company-name{
    display: none;
  }
  .cities-grid {
      grid-template-columns: repeat(2, 1fr);

      max-height: 500px;
  }

  .cities-grid {
    grid-template-columns: 1fr;
}
.modal-content {
    margin: 10% auto;
    width: 95%;
}

.city-select-btn {
  padding: 11px 8px !important;
  font-size: 11px !important;
  white-space: normal !important;
  flex-shrink: 1 !important;
}
.btn-callback{
  padding: 11px 8px !important;
}

}

