.cdek-owner-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  max-width: 1240px;
}
.cdek-owner-form .cdek-section { min-width: 0; }
.cdek-owner-form .cdek-section > h2 { margin: 0 0 16px; }
.cdek-owner-form .cdek-section h3 { font-size: 1rem; }
.cdek-owner-form #cdek-order,
.cdek-owner-form #cdek-cargo,
.cdek-owner-form #cdek-summary { grid-column: 1 / -1; }
.cdek-owner-form fieldset,
.cdek-template-settings fieldset { margin: 0 0 14px; min-width: 0; }
.cdek-owner-form .choice-options,
.cdek-template-settings .choice-options { justify-content: flex-start; }
.cdek-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 10px 14px;
  margin: 10px 0;
}
.cdek-fields > label { min-width: 0; }
.cdek-owner-form .detail-item { margin: 0 0 10px; }
.cdek-owner-form .note a { color: inherit; }
.cdek-owner-form .cdek-location-results {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  max-height: 300px;
  overflow-y: auto;
}
.cdek-location-results button { text-align: left; }
.cdek-box { margin: 12px 0; padding: 12px 16px; border: 1px solid #d5dfc8; border-radius: 12px; }
.cdek-box-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.cdek-box-heading h3 { margin: 0; }
.cdek-allocation { border-top: 1px solid #d5dfc8; padding: 8px 0 2px; }
.cdek-service { margin: 8px 0; }
.cdek-owner-form [data-cdek-tariffs] { margin: 12px 0 0; }
.cdek-owner-form [data-cdek-quote] { margin-top: 12px; }
.cdek-owner-form input:read-only { background: #f1f4eb; }
.cdek-owner-form [hidden], .cdek-template-settings [hidden] { display: none !important; }
.cdek-new-shipment { margin-bottom: 12px; }
@media (max-width: 767px) {
  .cdek-owner-form { grid-template-columns: minmax(0, 1fr); }
  .cdek-owner-form .detail-item { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cdek-owner-form .detail-item > label:first-child { grid-column: 1 / -1; }
  .cdek-owner-form .form-actions > button { flex: 1 1 160px; }
}
