.customerLocationsEditor {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}

.customerLocationsHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.customerLocationsHead h3,
.customerLocationsHead p {
  margin: 0;
}

.customerLocationsHead p {
  margin-top: .3rem;
  color: #475569;
  font-size: .9rem;
}

.customerLocationsHead button,
.customerLocationActions button {
  min-height: 42px;
}

.customerLocationList {
  display: grid;
  gap: 1rem;
}

.customerLocationCard {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid #94a3b8;
  border-radius: 12px;
  background: #fff;
}

.customerLocationCard legend {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .45rem;
  max-width: calc(100% - 1rem);
  padding: 0 .4rem;
  color: #0f172a;
}

.customerLocationCard legend span {
  font-weight: 750;
}

.customerLocationCard legend small {
  color: #64748b;
}

.customerLocationCityGrid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(90px, 1fr) minmax(110px, 1fr);
  gap: .75rem;
}

.customerLocationDetails,
.legacyAddressNotes {
  margin-top: .75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: .75rem;
  background: #f8fafc;
}

.customerLocationDetails summary,
.legacyAddressNotes summary,
.contractorQuickAdd summary {
  cursor: pointer;
  font-weight: 700;
}

.customerLocationActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .75rem;
}

.customerPrimaryChoice {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: #123f53;
}

.customerPrimaryChoice input {
  width: 20px;
  height: 20px;
}

.customerLocationRemove {
  color: #9f1239;
  border-color: #fecdd3;
  background: #fff1f2;
}

.contractorQuickAdd {
  margin-top: .85rem;
}

@media (max-width: 680px) {
  .customerLocationsHead,
  .customerLocationActions {
    align-items: stretch;
    flex-direction: column;
  }

  .customerLocationCityGrid {
    grid-template-columns: 1fr;
  }

  .customerLocationsHead button,
  .customerLocationActions button {
    width: 100%;
  }
}
