.location-field { position: relative; }
.location-field.is-open { z-index: 1600; }
.location-control { position: relative; }
.location-control input { padding-left: 35px; padding-right: 34px; text-overflow: ellipsis; }
.location-field.has-value input { padding-right: 63px; }
.location-pin {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  stroke: #727e65;
  stroke-width: 1.7;
  pointer-events: none;
  transition: stroke .18s;
}
.is-open .location-pin, .has-value .location-pin { stroke: var(--red); }
.is-open .location-control input { border-color: #a3ad98; box-shadow: 0 0 0 3px #e8ecdf; }
.location-toggle, .location-clear {
  position: absolute;
  top: 1px;
  bottom: 1px;
  right: 1px;
  display: grid;
  place-items: center;
  width: 31px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #727c69;
  border-radius: 7px;
}
.location-clear { right: 31px; width: 28px; }
.location-toggle:hover, .location-clear:hover { background: #f0f3e9; color: var(--i); }
.location-toggle svg, .location-clear svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; transition: transform .22s var(--ease-out); }
.is-open .location-toggle svg { transform: rotate(180deg); }
.location-clear[hidden], .location-menu[hidden], .location-empty[hidden] { display: none; }
.location-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  display: flex;
  flex-direction: column;
  width: max(100%, 350px);
  max-width: calc(100vw - 40px);
  max-height: var(--location-height, 430px);
  padding: 0 7px;
  border: 1px solid #e1e6d9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px -15px #26301d30, 0 4px 12px #26301d08;
  transform-origin: top left;
  animation: location-enter .2s var(--ease-out);
}
.opens-up .location-menu { top: auto; bottom: calc(100% + 9px); transform-origin: bottom left; }
.location-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: 16px 10px 13px;
  gap: 16px;
  font-size: 12px;
  font-weight: 650;
}
.location-country { display: flex; gap: 6px; align-items: center; font-size: 10px; font-weight: 500; color: #7b8172; }
.location-country i { height: 5px; width: 5px; background: #b36b67; border-radius: 50%; }
.location-list { position: relative; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #dce1d4 transparent; min-height: 0; }
.location-group-label { display: flex; justify-content: space-between; padding: 17px 12px 7px; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; color: #828b76; }
.location-group-label > :last-child { padding-right: 24px; font-size: 8px; }
.location-option { display: flex; align-items: center; gap: 11px; min-height: 56px; padding: 8px 11px; margin: 2px 0; border: 1px solid transparent; border-radius: 11px; cursor: pointer; transition: background .14s, border-color .14s; }
.location-option-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid #edf0e8; border-radius: 10px; color: #7b876c; background: #fafbf8; transition: color .14s, background .14s; }
.location-option-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.location-option-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.location-option-copy strong { font-size: 13px; font-weight: 600; line-height: 1.4; }
.location-option-copy small { font-size: 10px; font-weight: 450; color: #7a8370; }
.location-option-count { margin-left: auto; font-size: 15px; font-weight: 550; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #6c7860; }
.location-check { flex: none; width: 13px; height: 13px; stroke: var(--red); stroke-width: 1.8; opacity: 0; }
.location-option[data-chosen="true"] .location-check { opacity: 1; }
.location-option[data-chosen="true"] { background: #f2f5ec; }
.location-option.is-active { background: #f1f4ea; border-color: #ccd6bc; }
.location-option.is-active .location-option-icon { color: #4f653c; background: #e9eede; border-color: transparent; }
.location-all { margin-top: 0; background: #f7f8f3; padding-top: 12px; padding-bottom: 12px; }
.location-all .location-option-icon { width: 39px; height: 39px; color: #ce493f; background: #fff; border-color: #ebe8df; }
.location-all .location-option-count { font-size: 22px; color: #d94338; }
.location-empty { display: flex; flex-direction: column; padding: 27px 16px 33px; text-align: center; gap: 7px; }
.location-empty strong { font-size: 14px; font-weight: 600; }
.location-empty > span { font-size: 11px; color: #77816c; }
.location-menu-foot { display: flex; flex: none; align-items: center; justify-content: space-between; border-top: 1px solid #edf0e7; margin-top: 6px; padding: 11px 9px 12px; gap: 12px; color: #858c7b; font-size: 8px; }
.location-keys { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.location-keys > span { padding: 0 4px; }
.location-keys kbd { font: inherit; font-size: 10px; min-width: 15px; line-height: 16px; text-align: center; background: #f6f7f2; border: 1px solid #e6e9df; border-radius: 3px; }
@keyframes location-enter { from { opacity: 0; transform: translateY(-5px) scale(.99); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .location-option:hover { background: #f1f4ea; }
  .location-option:hover .location-option-icon { color: #50613f; background: #e9eede; }
}
@media (max-width: 560px) {
  .bar > .location-field { flex-basis: 100%; }
  .bar > .f:nth-of-type(4) { flex-basis: calc(50% - 12px); }
  .location-menu { width: 100%; max-width: calc(100vw - 40px); border-radius: 15px; }
  .location-option { min-height: 57px; }
  .location-keys { display: none; }
  .location-menu-foot { font-size: 9px; }
}
