.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__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.geo-city__glue {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

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

.header-mobile__trailing .geo-city__trigger:hover .geo-city__name,
.header-mobile__trailing .geo-city__trigger:focus-visible .geo-city__name {
  text-decoration-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 {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  white-space: normal;
  text-align: right;
  pointer-events: none;
}

.header-mobile__trailing .geo-city__label {
  display: inline;
  max-width: none;
  pointer-events: auto;
}

.header-mobile__trailing .geo-city__glue {
  display: inline;
}

.header-mobile__trailing .geo-city__pin {
  display: inline-block;
  position: static;
  flex: none;
  vertical-align: top;
  margin: 0.15rem 0.4rem 0 0;
}

.header-mobile__trailing .geo-city__name {
  display: inline;
  flex: none;
  width: auto;
  min-width: 0;
  max-width: none;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-align: right;
  border-bottom: none;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 0.15em;
}

.header-mobile__trailing .geo-city__label:has(.geo-city__name:not(.geo-city__name--placeholder)) {
  white-space: nowrap;
}

.header-mobile__trailing .geo-city__name:not(.geo-city__name--placeholder) {
  white-space: nowrap;
  max-width: none;
}

.header-mobile__trailing .geo-city__confirm {
  top: calc(100% + 0.8rem);
  margin-top: 0;
}

.geo-city__confirm {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  left: auto;
  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);
  pointer-events: auto;
}

.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__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.geo-city__gps {
  margin: -0.4rem 0 1.2rem;
}

.geo-city__gps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1.35;
  color: #007de3;
  cursor: pointer;
  text-align: left;
}

.geo-city__gps-link:hover,
.geo-city__gps-link:focus-visible {
  text-decoration: underline;
}

.geo-city__gps-link:disabled {
  opacity: 0.65;
  cursor: wait;
  text-decoration: none;
}

.geo-city__gps-hint {
  margin: 0.8rem 0 0;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #8a5a00;
}

.geo-city__modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  padding-top: max(4rem, env(safe-area-inset-top, 0px));
  padding-right: 1.6rem;
  padding-bottom: max(4rem, env(safe-area-inset-bottom, 0px));
  padding-left: 1.6rem;
}

.geo-city__modal[hidden] {
  display: none !important;
}

.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, 100%);
  max-height: 100%;
  margin: 0 auto;
  padding: 2.4rem 2.4rem 2rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  color: #222;
  border-radius: 1.2rem;
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.22);
}

.geo-city__modal-header {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem;
  align-items: start;
  min-height: 2.8rem;
  margin: 0;
  padding-bottom: 2rem;
}

.geo-city__modal-close {
  grid-column: 3;
  justify-self: end;
  position: relative;
  top: auto;
  right: auto;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  transform: none;
  cursor: pointer;
  font-size: 0;
}

.geo-city__modal-close::before,
.geo-city__modal-close::after {
  content: "";
  position: absolute;
  width: 0.2rem;
  height: 2rem;
  top: 50%;
  left: 50%;
  background: var(--main-text-color, #000);
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}

.geo-city__modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.geo-city__modal-close:hover::before,
.geo-city__modal-close:hover::after {
  background: var(--accent-color, #ef8b2e);
}

.geo-city__modal-title {
  grid-column: 2;
  display: block;
  margin: 0;
  color: var(--color-text);
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
}

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

.geo-city__search-caption {
  display: block;
  margin: 0 0 1rem;
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--color-text, #343434);
}

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

.geo-city__search {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 4.6rem;
  margin: 0;
  padding: 1rem 4rem 1rem 1.6rem;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 5px;
  background: var(--input-bg, #f7f8fb);
  color: var(--color-text, #343434);
  font:
    400 1.6rem/2.4rem "Roboto",
    Arial,
    Helvetica,
    sans-serif;
  box-shadow: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow 0.25s;
}

.geo-city__search:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-accent, #ef8b2e);
}

.geo-city__search::placeholder {
  color: var(--color-text-muted, #888);
}

.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: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text, #343434);
  transform: translateY(-50%);
  cursor: pointer;
}

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

.geo-city__search-clear:hover,
.geo-city__search-clear:focus-visible {
  color: var(--color-accent, #ef8b2e);
}

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

.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;
}
