/* Keep customer details readable and the draft tools clear of the form. */
.bn-single .single-customerbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  align-items: start;
  gap: 18px;
  margin: 16px 0 24px;
}

.bn-single .single-customerbar .customer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px 18px;
  min-width: 0;
}

.bn-single .single-customerbar .customer > label,
.bn-single .single-customerbar .customer-address-fields > label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  max-width: none;
  white-space: normal;
  line-height: 1.35;
}

.bn-single .single-customerbar .customer-signer-field,
.bn-single .single-customerbar .customer-address-fields {
  grid-column: 1 / -1;
}

.bn-single .single-customerbar .customer-address-fields {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(95px, .7fr) minmax(110px, .8fr) minmax(150px, 1.5fr);
  gap: 14px;
  min-width: 0;
}

.bn-single .single-customerbar .customer input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 44px;
  flex: none;
}

.bn-single .single-customerbar .single-tools {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  align-self: start;
}

.bn-single .single-customerbar .single-tools > summary {
  cursor: pointer;
}

.bn-single .single-customerbar .single-tools > div {
  position: static;
  box-sizing: border-box;
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .bn-single .single-customerbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .bn-single .single-customerbar .single-tools {
    max-width: 320px;
  }

  .bn-single .single-customerbar .customer-address-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .bn-single .single-customerbar .customer,
  .bn-single .single-customerbar .customer-address-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
