.pf-city-picker {
  position: fixed;
  inset: 0;
  z-index: 2100;
}
.pf-city-picker[hidden] {
  display: none !important;
}
.pf-city-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.pf-city-picker__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.pf-city-picker__head {
  position: relative;
  flex-shrink: 0;
  padding: 18px 24px 7px;
  text-align: center;
}
.pf-city-picker__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #171717;
}
.pf-city-picker__close .icon {
  width: 22px;
  height: 22px;
}
.pf-city-picker__label {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: #171717;
}
.pf-city-picker__current {
  color: #171717;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  margin-top: 3px;
}
.pf-city-picker__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 16px 32px;
  -webkit-overflow-scrolling: touch;
}
.pf-city-picker__search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 19px;
  background: #f4f4f6;
  border-radius: 10px;
}
.pf-city-picker__search-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: rgba(23, 23, 23, 0.4);
}
.pf-city-picker__search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #171717;
  outline: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 52px;
}
.pf-city-picker__search-input::placeholder {
  color: rgba(23, 23, 23, 0.4);
}
.pf-city-picker__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.pf-city-picker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 33px;
  margin-bottom: 28px;
}
.pf-city-picker__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  padding: 8px 12px;
  height: 33px;
  background: #F3F4F7;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  color: #171717;
}
.pf-city-picker__chip:hover {
  background: #ececf0;
}
.pf-city-picker__chip.is-active {
  background: #171717;
  color: #fff;
}
.pf-city-picker__chip[hidden] {
  display: none !important;
}
.pf-city-picker__hint-title {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: #171717;
}
.pf-city-picker__hint-text {
  margin: 6px 0 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: rgba(23, 23, 23, 0.4);
}
/* Планшет и десктоп: боковая панель справа, как в макете Figma */
@media (min-width: 768px) {
  .pf-city-picker__panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 505px;
    max-width: 92vw;
    border-radius: 20px 0 0 20px;
    box-shadow: -4px 0 34px rgba(0, 0, 0, 0.08);
  }
}
@media (min-width: 1180px) {
  .pf-city-picker__backdrop {
    background: rgba(0, 0, 0, 0.35);
  }
  .pf-city-picker__head {
    padding: 40px 59px 15px 40px;
    text-align: center;
  }
  .pf-city-picker__close {
    top: 49px;
    right: 20px;
    width: 22px;
    height: 22px;
    opacity: 0.7;
  }
  .pf-city-picker__close .icon {
    width: 22px;
    height: 22px;
  }
  .pf-city-picker__current {
    font-size: 28px;
    line-height: 34px;
  }
  .pf-city-picker__body {
    padding: 0 20px 40px;
  }
  .pf-city-picker__search {
    min-height: 52px;
    gap: 8px;
    padding: 16px 20px;
    background: #f6f7fa;
    border-radius: 8px;
  }
  .pf-city-picker__search-input {
    height: auto;
    background: transparent;
    border-radius: 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
  }
  .pf-city-picker__chips {
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .pf-city-picker__chip {
    padding: 8px 12px;
    height: 33px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
  }
  .pf-city-picker__hint-text {
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 20px;
    color: rgba(23, 23, 23, 0.6);
  }
}

/* ---------- Подтверждение города (как на drel-shop) ---------- */
.pf-city-confirm {
  position: absolute;
  z-index: 1000;
  top: 46px;
  left: var(--space-8, 8px);
  width: 15rem;
  padding: 21px 8px 12px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
  color: #171717;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.pf-city-confirm[hidden] {
  display: none !important;
}
.pf-city-confirm::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 18px;
  width: 12px;
  height: 12px;
  border: 2px solid #e8e8e8;
  border-right: 0;
  border-bottom: 0;
  background: #fff;
  transform: rotate(45deg);
}
.pf-city-confirm__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.3;
  color: #171717;
}
.pf-city-confirm__label {
  flex-shrink: 0;
}
.pf-city-confirm__city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  min-width: 0;
  font-weight: 600;
}
.pf-city-confirm__city-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--color-btn-main--default, #ef773d);
}
.pf-city-confirm__city-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-city-confirm__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
}
.pf-city-confirm__yes {
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--color-btn-main--default, #ef773d);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pf-city-confirm__yes:hover {
  background: var(--color-btn-main--hover, #ff905b);
}
.pf-city-confirm__other {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(23, 23, 23, 0.55);
  font-family: inherit;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.pf-city-confirm__other:hover {
  color: #171717;
}

@media (max-width: 1179px) {
  .pf-city-confirm {
    position: fixed;
    top: calc(var(--space-8, 8px) + 50px + 10px);
    left: var(--space-8, 8px);
  }
}

@media (min-width: 1360px) {
  .pf-city-confirm {
    left: calc(var(--space-8, 8px) + 24px);
  }
}
