.address-editor {
  margin: 20px 0;
  padding-top: 8px;
  border-top: 1px solid var(--line, #e0e7f0);
}
.region-editor {
  margin-bottom: 24px;
}
.region-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.region-map-heading h3 {
  margin: 0;
}
.region-map-heading span {
  color: #576880;
  font-size: 12px;
}
.region-search {
  display: flex;
  align-items: end;
  gap: 12px;
}
.region-search .field {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.region-search .btn {
  min-height: 44px;
}
.region-map {
  height: 340px;
  border: 1px solid #dce6f5;
  border-radius: 12px;
  overflow: hidden;
  background: #edf3fa;
}
.region-search-results {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.region-search-result {
  border: 1px solid #dce6f5;
  border-radius: 8px;
  padding: 11px 14px;
  text-align: left;
  background: white;
  color: #243d63;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.region-search-result:hover,
.region-search-result[aria-pressed="true"] {
  background: #edf3ff;
  border-color: #2761df;
}
.region-map-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.region-map-tools .field {
  margin: 0 0 0 auto;
  width: 190px;
}
.region-details-title {
  border-top: 1px solid #e0e7f0;
  padding-top: 20px;
}
.modal:has(.region-editor) {
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
}
.modal:has(.region-editor) form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.modal:has(.region-editor) .modalbody {
  max-height: none;
  min-height: 0;
  overscroll-behavior: contain;
}
.modal:has(.region-editor) .modalhead,
.modal:has(.region-editor) .modalfooter {
  flex-shrink: 0;
}
@media (max-width: 650px) {
  .region-search,
  .region-map-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .region-map {
    height: 280px;
  }
  .region-map-tools .field {
    width: 100%;
    margin: 0;
  }
  .modal:has(.region-editor) {
    max-height: 100dvh;
  }
}
.address-editor h3 {
  margin: 12px 0;
}
.cep-search {
  display: flex;
  align-items: end;
  gap: 10px;
}
.cep-search .field {
  flex: 1;
  margin-bottom: 0;
}
.cep-search .btn {
  min-height: 44px;
  margin-bottom: 0;
}
.map-note {
  color: #576880;
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0;
}
.location-editor {
  padding: 16px;
  border: 1px solid #dce6f5;
  border-radius: 12px;
  background: #f7faff;
}
.location-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.location-heading h3,
.location-heading p {
  margin: 0;
}
.location-heading .btn {
  flex-shrink: 0;
}
.route-map,
.address-map {
  height: 340px;
  width: 100%;
  border: 1px solid #dce6f5;
  border-radius: 12px;
  background: #eaf0f6;
  isolation: isolate;
}
.address-map {
  height: 280px;
}
.leaflet-container {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
}
.leaflet-container a {
  color: #174fb9;
}
.leaflet-control-attribution {
  font-size: 10px;
}
.coletii-map-pin {
  background: transparent;
  border: 0;
}
.coletii-map-pin span {
  display: grid;
  place-items: center;
  height: 32px;
  width: 32px;
  border-radius: 50% 50% 50% 4px;
  background: #2761df;
  color: white;
  border: 3px solid white;
  box-shadow: 0 2px 8px #13356355;
  font-size: 13px;
  font-weight: 750;
}
.map-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #edf4ff;
  border: 1px solid #dce8fa;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 18px;
  gap: 12px;
}
.map-metrics strong {
  display: block;
  color: #174fb9;
  font-family: Manrope, sans-serif;
  font-size: 24px;
}
.map-metrics span {
  font-size: 12px;
  color: #506582;
}
.map-stops {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.map-stops li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e9f3;
}
.map-stops li > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.modal:has(.address-editor),
.modal:has([data-route-preview]) {
  overflow: hidden;
}
.modal[open]:has(.address-editor),
.modal[open]:has([data-route-preview]) {
  display: flex;
  flex-direction: column;
}
.modal:has(.address-editor) form,
.modal:has([data-route-preview]) form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.modal:has(.address-editor) .modalbody,
.modal:has([data-route-preview]) .modalbody {
  max-height: none;
  min-height: 0;
  overscroll-behavior: contain;
}
.modal:has(.address-editor) .modalhead,
.modal:has(.address-editor) .modalfooter,
.modal:has([data-route-preview]) .modalhead,
.modal:has([data-route-preview]) .modalfooter {
  flex-shrink: 0;
}
.map-stops .stopnum {
  flex: 0 0 30px;
}
.map-stops p {
  margin: 4px 0;
  font-size: 13px;
  color: #576880;
}
.map-stops span.muted,
.map-pending {
  font-size: 12px;
}
.map-pending {
  color: #955c09;
}
[data-route-preview] {
  margin-top: 16px;
}
.leaflet-control a:focus-visible {
  outline: 3px solid #163b86;
  outline-offset: 2px;
}
@media (max-width: 650px) {
  .location-editor {
    padding: 12px;
  }
  .location-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .map-metrics {
    padding: 12px;
    gap: 8px;
  }
  .map-metrics strong {
    font-size: 20px;
  }
  .route-map {
    height: 300px;
  }
  .cep-search {
    align-items: stretch;
    flex-direction: column;
  }
  .leaflet-touch .leaflet-bar a {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
}
