.geo-city__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  width: max-content;
  min-width: 0;
}

.geo-city__trigger:hover .geo-city__name,
.geo-city__trigger:focus-visible .geo-city__name {
  border-bottom-color: transparent;
}

.geo-city__pin {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
}

.geo-city__name {
  border-bottom: 1px dashed currentColor;
}

.geo-city__name--placeholder {
  opacity: 0.92;
}

.header-mobile__trailing .geo-city__trigger {
  pointer-events: auto;
  max-width: 16rem;
}

.header-mobile__trailing .geo-city__name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.geo-city__confirm {
  position: absolute;
  z-index: 1200;
  min-width: 26rem;
  max-width: 32rem;
  padding: 1.4rem 1.6rem;
  background: #fff;
  color: #222;
  border-radius: 0.8rem;
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.18);
}

.geo-city__confirm-text {
  margin: 0 0 1.2rem;
  font-size: 1.5rem;
  line-height: 1.35;
}

.geo-city__confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.geo-city__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}

.geo-city__btn--primary {
  background: #005bff;
  color: #fff;
}

.geo-city__btn--ghost {
  background: #fff;
  border-color: #c5c5c5;
  color: #222;
}

.geo-city__modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.geo-city__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.geo-city__modal-dialog {
  position: relative;
  z-index: 1;
  width: min(64rem, calc(100vw - 3.2rem));
  max-height: calc(100vh - 4rem);
  margin: 4rem auto;
  padding: 2.4rem 2.4rem 2rem;
  overflow: auto;
  background: #fff;
  color: #222;
  border-radius: 1.2rem;
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.22);
}

.geo-city__modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 3.2rem;
  height: 3.2rem;
  border: 0;
  background: transparent;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.geo-city__modal-title {
  margin: 0 3.2rem 1.6rem 0;
  font-size: 2.2rem;
  line-height: 1.2;
}

.geo-city__search-label {
  display: block;
  margin: 0 0 1.6rem;
}

.geo-city__search-caption {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  color: #666;
}

.geo-city__search-field {
  position: relative;
  display: block;
}

.geo-city__search {
  width: 100%;
  height: 4rem;
  padding: 0 3.6rem 0 1.2rem;
  border: 1px solid #ccc;
  border-radius: 0.6rem;
  font: inherit;
  font-size: 1.5rem;
  box-sizing: border-box;
}

.geo-city__search::-webkit-search-cancel-button,
.geo-city__search::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.geo-city__search-clear {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8e8e8;
  color: #666;
  transform: translateY(-50%);
  cursor: pointer;
}

.geo-city__search-clear[hidden] {
  display: none;
}

.geo-city__search-clear:hover,
.geo-city__search-clear:focus-visible {
  background: #d8d8d8;
  color: #222;
}

.geo-city__search-clear-icon {
  display: block;
  width: 1rem;
  height: 1rem;
}

.geo-city__suggest {
  list-style: none;
  margin: -0.8rem 0 1.6rem;
  padding: 0;
  max-height: 22rem;
  overflow: auto;
  border: 1px solid #e5e5e5;
  border-radius: 0.6rem;
  background: #fff;
}

.geo-city__suggest-item {
  display: block;
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.geo-city__suggest-item:hover,
.geo-city__suggest-item:focus {
  background: #f4f6fb;
}

.geo-city__suggest-region {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.2rem;
  color: #888;
}

.geo-city__browse-caption {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.geo-city__districts,
.geo-city__regions,
.geo-city__region-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}

.geo-city__chip,
.geo-city__region-item,
.geo-city__region-city {
  min-height: 3.2rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid #d7d7d7;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}

.geo-city__chip:hover,
.geo-city__region-item:hover,
.geo-city__region-city:hover,
.geo-city__chip:focus,
.geo-city__region-item:focus,
.geo-city__region-city:focus,
.geo-city__chip--current,
.geo-city__region-item--current {
  border-color: #005bff;
  color: #005bff;
}

.geo-city__browse-lead {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin: 0 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.geo-city__back {
  padding: 0;
  border: 0;
  background: transparent;
  color: #005bff;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 400;
  cursor: pointer;
}

.geo-city__back:hover,
.geo-city__back:focus {
  text-decoration: underline;
}
