/* Всплывашка выбора региона */
.region-popup {
  position: fixed;
  top: 120px;
  right: 24px;
  z-index: 3000;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 24px 24px 20px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  font-size: 15px;
  line-height: 1.4;
  color: #333;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease;
}
.region-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.region-popup__close {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 4px 8px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
}
.region-popup__close:hover {
  color: #333;
}
.region-popup__step[hidden] {
  display: none;
}
.region-popup__title {
  margin: 0 20px 16px 0;
  font-size: 17px;
  font-weight: 500;
}
.region-popup__title b {
  color: #009846;
  font-weight: 600;
}
.region-popup__buttons {
  display: flex;
  gap: 10px;
}
.region-popup__btn,
.region-popup__option {
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.region-popup__btn--primary {
  flex: 0 0 auto;
  min-width: 80px;
  border: 2px solid #009846;
  background: #009846;
  color: #fff;
}
.region-popup__btn--primary:hover {
  border-color: #007a38;
  background: #007a38;
}
.region-popup__btn--secondary {
  flex: 1 1 auto;
  border: 2px solid #eee;
  background: #fff;
  color: #333;
}
.region-popup__btn--secondary:hover,
.region-popup__option:hover {
  border-color: #F2722C;
}
.region-popup__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.region-popup__option {
  width: 100%;
  border: 2px solid #eee;
  background: #fff;
  color: #333;
  text-align: left;
}
.region-popup__option.is-active {
  border-color: #009846;
  color: #009846;
}
@media (max-width: 767px) {
  .region-popup {
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}
