/* Address Line Polish 3
   Behavior-only support UI. The accepted Address geometry remains in Polish 2. */
.address-line {
  position: relative;
}

.address-limit-notice,
.address-oversize-review {
  position: absolute;
  z-index: 5;
  top: 2px;
  right: 5px;
  max-width: 210px;
  box-sizing: border-box;
  border: 1px solid rgba(164, 46, 58, 0.5);
  border-radius: 4px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #8b1e2d;
  font: 600 10px/14px "Aptos", "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(7, 31, 58, 0.14);
}

.address-limit-notice {
  pointer-events: none;
}

.address-oversize-review {
  cursor: pointer;
}

.address-oversize-review:hover,
.address-oversize-review:focus-visible {
  border-color: #a42e3a;
  outline: 2px solid rgba(164, 46, 58, 0.22);
  outline-offset: 1px;
}

.address-history-dialog {
  width: min(560px, calc(100vw - 40px));
  box-sizing: border-box;
  border: 1px solid #6f8298;
  border-radius: 10px;
  padding: 0;
  color: #0b2d52;
  background: #fff;
  box-shadow: 0 18px 55px rgba(3, 22, 43, 0.35);
}

.address-history-dialog::backdrop {
  background: rgba(3, 22, 43, 0.48);
  backdrop-filter: blur(3px);
}

.address-history-dialog-card {
  padding: 20px;
}

.address-history-dialog h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.address-history-dialog p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
}

.address-history-editor {
  display: block;
  width: 100%;
  min-height: 128px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #7f8da1;
  border-radius: 6px;
  padding: 8px 10px;
  color: #0b2d52;
  font: 15px/1.4 "Aptos", "Segoe UI", Arial, sans-serif;
}

.address-history-message {
  min-height: 18px;
  margin-top: 7px;
  color: #9a2030;
  font-size: 12px;
  font-weight: 600;
}

.address-history-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.address-history-actions button {
  min-width: 128px;
  min-height: 34px;
  border: 1px solid #50657d;
  border-radius: 6px;
  padding: 6px 12px;
  background: #132f50;
  color: #fff;
  font: 600 13px/1 "Aptos", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.address-history-actions .address-history-apply {
  border-color: #a51f31;
  background: #c52639;
}

@media print {
  .address-limit-notice,
  .address-oversize-review,
  .address-history-dialog {
    display: none !important;
  }
}
