/* Kody pocztowe – style stron bazy i wyszukiwarek. Fonty i kolory tekstu dziedziczone z motywu. */
:root {
  --tp-postal-accent: #c8102e;
  --tp-postal-border: #e3e5e8;
  --tp-postal-bg: #f6f7f9;
}

.tp-postal-facts {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--tp-postal-bg);
  border: 1px solid var(--tp-postal-border);
  border-radius: 6px;
}
.tp-postal-facts th, .tp-postal-facts td { padding: 9px 16px; border-bottom: 1px solid var(--tp-postal-border); text-align: left; vertical-align: top; }
.tp-postal-facts th { width: 38%; font-weight: 400; opacity: .7; }
.tp-postal-facts tr:last-child th, .tp-postal-facts tr:last-child td { border-bottom: 0; }
.tp-postal-facts td strong { font-size: 18px; letter-spacing: .02em; }

/* wyszukiwarka ogólna */
.tp-postal-search { margin: 24px 0; padding: 20px 24px; border: 2px solid #111; border-radius: 6px; }
.tp-postal-search label, .tp-postal-streets label { display: block; margin-bottom: 10px; font-weight: 700; font-size: 18px; }
.tp-postal-search-field { display: flex; gap: 8px; }
.tp-postal-search input, .tp-postal-streets input {
  flex: 1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #b8bcc2;
  border-radius: 4px;
  font-size: 17px;
}
.tp-postal-search button[type="submit"] {
  padding: 12px 22px;
  border: 0;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.tp-postal-search button[type="submit"]:hover { background: var(--tp-postal-accent); }
.tp-postal-result:empty { display: none; }
.tp-postal-result { margin-top: 12px; }
.tp-postal-result ul { margin: 8px 0 0; padding-left: 1.2em; }
.tp-postal-hint {
  margin: 2px 0;
  padding: 3px 9px;
  border: 1px solid #b8bcc2;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.tp-postal-hint:hover { border-color: #111; }

/* wyszukiwarka ulic */
.tp-postal-streets { margin: 16px 0 28px; }
.tp-postal-streets-result { margin-top: 12px; }
.tp-postal-show-all {
  padding: 9px 16px;
  border: 1px solid #111;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* listy i tabele */
.tp-postal-list { columns: 2 240px; column-gap: 32px; padding-left: 1.2em; }
.tp-postal-list li { break-inside: avoid; }
.tp-postal-list--streets { columns: 3 180px; }
.tp-postal-codes { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.tp-postal-codes li { padding: 3px 9px; border: 1px solid var(--tp-postal-border); border-radius: 4px; font-variant-numeric: tabular-nums; }
.tp-postal-number { font-size: 13px; opacity: .7; white-space: nowrap; }
.tp-postal-table { overflow-x: auto; margin: 16px 0 24px; }
.tp-postal-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tp-postal-table th, .tp-postal-table td { padding: 8px 10px; border-bottom: 1px solid var(--tp-postal-border); text-align: left; vertical-align: top; }
.tp-postal-table th { background: var(--tp-postal-bg); font-weight: 700; }
.tp-postal-source { margin-top: 28px; font-size: 13px; opacity: .7; }

@media (max-width: 720px) {
  .tp-postal-search { padding: 16px; }
  .tp-postal-search-field { flex-direction: column; }
  .tp-postal-facts th, .tp-postal-facts td { padding: 8px 12px; }
}
