.warehouse-box-addresses-shell {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #d9e2ec;
  border-radius: 18px;
  background: #fff;
  color: #172033;
}

.box-address-heading h2,
.box-address-linked h3,
.box-address-preview h3 { margin: 0; }

.box-address-heading p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: #526277;
}

.box-address-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 22px;
}

.box-address-form label { display: grid; gap: 7px; font-weight: 700; }
.box-address-form input { min-width: 0; }
.box-address-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.box-address-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #e7edf4;
  color: #172033;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.box-address-actions button:last-child { background: #132e55; color: #fff; }
.box-address-actions button:disabled { cursor: not-allowed; opacity: .55; }

.box-address-preview {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #c8d7e8;
  border-radius: 14px;
  background: #f5f9fd;
}

.box-address-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.box-address-preview-grid div,
.box-address-clients { display: grid; gap: 4px; }
.box-address-preview span,
.box-address-row span { color: #526277; }
.box-address-clients { margin-top: 12px; }

.box-address-notice { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; }
.box-address-notice.is-error { background: #fff1f1; color: #9b1c1c; }
.box-address-notice.is-success { background: #edf9f1; color: #176b39; }

.box-address-linked { margin-top: 22px; }
.box-address-row {
  display: grid;
  grid-template-columns: minmax(130px, .45fr) minmax(180px, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e7edf3;
}
.box-address-empty { color: #66758a; }

@media (max-width: 600px) {
  .warehouse-box-addresses-shell { padding: 16px; border-radius: 14px; }
  .box-address-form,
  .box-address-preview-grid,
  .box-address-row { grid-template-columns: minmax(0, 1fr); }
  .box-address-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .box-address-actions button { width: 100%; }
}
