.geo {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  font-size: 15px;
}

.geo__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--ib-line, #e4e7ec);
  border-radius: 999px;
  background: var(--ib-bg, #fff);
  color: inherit;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 17, 21, .12);
}

.geo__pin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ib-accent, #008f76);
}

.geo__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 280px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--ib-line, #e4e7ec);
  border-radius: 16px;
  background: var(--ib-bg, #fff);
  box-shadow: 0 18px 44px rgba(15, 17, 21, .18);
}

.geo__title {
  margin: 0 0 12px;
  font-weight: 600;
}

.geo__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.geo__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.geo__item:hover,
.geo__item:focus-visible {
  background: var(--ib-bg-soft, #f2f6f5);
  outline: none;
}

.geo__item.is-current {
  color: var(--ib-accent-ink, var(--ib-accent, #008f76));
  font-weight: 600;
}

.geo__phone {
  color: var(--ib-muted, #5c6270);
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .geo {
    left: 12px;
    bottom: 12px;
  }

  .geo__panel {
    width: calc(100vw - 24px);
  }
}

.geo-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.geo-inline__control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 34px 9px 14px;
  border: 1px solid var(--ib-line, #eef2f7);
  border-radius: 12px;
  background: var(--ib-bg, #fff);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.geo-inline__control:hover {
  border-color: var(--ib-accent, #008f76);
}

.geo-inline__control::after {
  content: "";
  position: absolute;
  right: 13px;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .5;
  pointer-events: none;
}

.geo-inline__pin {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  background: var(--ib-accent, #008f76);
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='12' cy='10' r='2.6' fill='%23000'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='12' cy='10' r='2.6' fill='%23000'/%3E%3C/svg%3E");
}

.geo-inline__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 200px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.geo-inline__toggle:focus {
  outline: none;
}

.geo-inline__list {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--ib-line, #eef2f7);
  border-radius: 14px;
  background: var(--ib-bg, #fff);
  box-shadow: 0 18px 40px rgba(15, 17, 21, .14);
  animation: geo-inline-in .22s cubic-bezier(.22, .61, .36, 1) both;
}

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

.geo-inline__item {
  display: block;
}

.geo-inline__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ib-fg, #0f1115);
  font: inherit;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.geo-inline__option:hover,
.geo-inline__option:focus-visible {
  outline: none;
  background: var(--ib-bg-soft, #f4f6f8);
}

.geo-inline__option.is-current {
  color: var(--ib-accent-ink, var(--ib-accent, #008f76));
  font-weight: 600;
}

.geo-inline__option.is-current::after {
  content: "";
  width: 6px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.geo-inline.is-loading {
  opacity: .6;
  pointer-events: none;
}

@keyframes geo-inline-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .geo-inline__list {
    animation: none;
  }
}

.geo-inline__control:focus-within {
  border-color: var(--ib-accent, #008f76);
  box-shadow: 0 0 0 3px var(--ib-accent-soft, #e3f1ec);
}

.geo-inline__phone {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.geo-inline__phone:hover {
  color: var(--ib-accent-ink, var(--ib-accent, #008f76));
}

@media (max-width: 900px) {
  .geo-inline__phone {
    display: none;
  }
}

@media (max-width: 640px) {
  .geo-inline__list {
    right: 0;
    left: auto;
  }
}

.geo-inline__hint {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

