/* Chip/tag input for German PLZ prefixes. Theme-agnostic: colours are derived
   from currentColor and translucent accents so it reads on both the branded
   (orange) public form and the Unfold admin in light or dark mode. */
.plz-field {
  --plz-accent: var(--orange, #ff5620);
  position: relative;
  font: inherit;
}
/* The server-rendered source input is hidden once JS enhances the field; without
   JS it stays a plain, usable text input. */
.plz-field .plz-source.is-enhanced {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.plz-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  min-height: 2.6rem;
  border: 1px solid rgba(128, 128, 128, 0.4);
  border-radius: var(--radius-sm, 10px);
  background: rgba(127, 127, 127, 0.04);
  cursor: text;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.plz-box.is-focus {
  border-color: var(--plz-accent);
  box-shadow: 0 0 0 4px rgba(255, 86, 32, 0.14);
}
.plz-box.is-invalid {
  border-color: #d64530;
}
.plz-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding-left: 0.15rem;
  color: var(--plz-accent);
  opacity: 0.75;
  pointer-events: none;
}
.plz-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
.plz-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.plz-quick[hidden] {
  display: none;
}
.plz-quick-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
  margin-right: 0.1rem;
}
.plz-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: inherit;
  background: rgba(127, 127, 127, 0.06);
  border: 1px solid rgba(128, 128, 128, 0.28);
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.plz-quick-btn span {
  color: var(--plz-accent);
  font-weight: 700;
}
.plz-quick-btn:hover {
  background: rgba(255, 86, 32, 0.1);
  border-color: rgba(255, 86, 32, 0.4);
}
.plz-quick-btn:focus-visible {
  outline: 2px solid var(--plz-accent);
  outline-offset: 1px;
}
.plz-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.2rem 0.15rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--plz-accent);
  background: rgba(255, 86, 32, 0.12);
  border: 1px solid rgba(255, 86, 32, 0.28);
  border-radius: 999px;
  white-space: nowrap;
}
.plz-chip small {
  font-weight: 500;
  opacity: 0.8;
}
.plz-chip.is-selected {
  outline: 2px solid var(--plz-accent);
  outline-offset: 1px;
}
.plz-chip button {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
}
.plz-chip button:hover {
  background: rgba(255, 86, 32, 0.2);
}
.plz-chip button:focus-visible {
  outline: 2px solid var(--plz-accent);
  outline-offset: 1px;
}
.plz-entry {
  flex: 1 1 6rem;
  min-width: 6rem;
  padding: 0.25rem 0.15rem;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  outline: none;
}
.plz-entry::placeholder {
  color: rgba(127, 127, 127, 0.8);
}
.plz-suggest {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  margin: 0.25rem 0 0;
  padding: 0.25rem;
  list-style: none;
  max-height: 15rem;
  overflow-y: auto;
  background: var(--surface, #fff);
  border: 1px solid rgba(128, 128, 128, 0.28);
  border-radius: var(--radius-sm, 10px);
  box-shadow: 0 18px 40px -20px rgba(24, 20, 30, 0.35);
}
.plz-suggest[hidden] {
  display: none;
}
.plz-suggest li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.92rem;
  border-radius: 8px;
  cursor: pointer;
}
.plz-suggest li .plz-code {
  font-weight: 700;
}
.plz-suggest li .plz-city {
  color: rgba(127, 127, 127, 0.95);
}
.plz-suggest li[aria-selected="true"],
.plz-suggest li:hover {
  background: rgba(255, 86, 32, 0.14);
}
.plz-error {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: #d64530;
}
.plz-error[hidden] {
  display: none;
}
