.location-map-picker {
  display: grid;
  gap: 10px;
}

.location-map-picker__head,
.location-map-picker__status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.location-map-picker__head strong {
  color: inherit;
  font-size: 13px;
  font-weight: 900;
}

.location-map-picker__head small {
  display: block;
  margin-top: 4px;
  color: var(--location-map-muted, #746e80);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}

.location-map {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 290px;
  overflow: hidden;
  background: #e9e5ef;
  border: 1px solid var(--location-map-border, rgba(35, 25, 51, 0.14));
  border-radius: 18px;
}

.location-map.is-unavailable {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--location-map-muted, #746e80);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.location-map-picker__status {
  min-width: 0;
  color: var(--location-map-muted, #746e80);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.location-map-picker__status[data-state="selected"] {
  color: var(--location-map-accent, #6d28d9);
}

.location-map-picker__clear {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--location-map-accent, #6d28d9);
  background: color-mix(
    in srgb,
    var(--location-map-accent, #6d28d9) 9%,
    transparent
  );
  border: 1px solid
    color-mix(
      in srgb,
      var(--location-map-accent, #6d28d9) 22%,
      transparent
    );
  border-radius: 11px;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.location-map-picker__clear[hidden] {
  display: none;
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-control-attribution {
  font-size: 9px;
}

.leaflet-bar a {
  color: #2f2440;
}

.leaflet-marker-icon {
  filter: hue-rotate(30deg) saturate(1.2);
}

html[data-theme="dark"] .location-map {
  background: #17131f;
  border-color: rgba(214, 202, 232, 0.18);
}

html[data-theme="dark"] .leaflet-tile-pane {
  filter: brightness(0.78) contrast(1.08) saturate(0.78);
}

html[data-theme="dark"] .leaflet-control-zoom a {
  color: #f4effb;
  background: #1e1829;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .leaflet-control-attribution {
  color: #d9d0e4;
  background: rgba(20, 16, 28, 0.84);
}

html[data-theme="dark"] .leaflet-control-attribution a {
  color: #c4a7ff;
}

@media (max-width: 640px) {
  .location-map {
    height: 250px;
    border-radius: 15px;
  }

  .location-map-picker__head {
    align-items: flex-start;
  }

  .location-map-picker__status-row {
    align-items: flex-start;
  }
}
