.cryex-osm-map {
  --cx-map-status-layer: 1001;
  position: relative;
  min-height: 280px;
  overflow: hidden;
  color: var(--cx-ink);
  background: var(--cx-surface-muted);
  isolation: isolate;
}

.cryex-osm-map--coarse-pointer {
  touch-action: pan-y pinch-zoom !important;
}

.cryex-osm-map--coarse-pointer-interactive {
  touch-action: pan-x pan-y pinch-zoom !important;
}

.cryex-osm-map.leaflet-container {
  font: 500 13px/1.45 var(--cx-font-sans, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

.cryex-osm-map:focus-visible,
.cryex-osm-map .leaflet-control a:focus-visible,
.cryex-osm-map .leaflet-marker-icon:focus-visible {
  outline: 3px solid var(--cx-focus, #4a7a00);
  outline-offset: 2px;
}

.cryex-osm-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(11, 18, 32, .16);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(11, 18, 32, .16);
}

.cryex-osm-map .leaflet-control-zoom a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #0b1220;
  background: #ffffff;
  font: 800 20px/1 var(--cx-font-sans, sans-serif);
}

.cryex-osm-map .leaflet-control-attribution {
  max-width: calc(100% - 12px);
  padding: 3px 6px;
  color: var(--cx-ink-muted);
  background: rgba(255, 255, 255, .94);
  font-size: 11px;
  line-height: 1.35;
}

.cryex-osm-map .leaflet-control-attribution a {
  color: var(--cx-accent-ink);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pb-map-marker {
  display: grid;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  place-items: center;
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #2456c9;
  box-shadow: 0 7px 18px rgba(11, 18, 32, .3);
}

.pb-map-marker span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.pb-map-marker svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.25;
}

.pb-map-marker-pickup {
  color: #fff;
  background: #17784a;
}

.pb-map-marker-dropoff {
  color: #0b1220;
  background: #a9d61c;
}

.pb-map-marker-driver {
  color: #fff;
  background: #2456c9;
}

.pb-map-marker-point {
  color: #0b1220;
  background: #c5f23a;
}

.cryex-osm-map .leaflet-tooltip {
  max-width: min(280px, 70vw);
  padding: 7px 9px;
  color: #0b1220;
  border: 1px solid rgba(11, 18, 32, .14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(11, 18, 32, .14);
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
}

.pb-map-status {
  position: absolute;
  z-index: var(--cx-map-status-layer);
  top: 12px;
  left: 12px;
  max-width: min(340px, calc(100% - 78px));
  padding: 9px 11px;
  color: var(--cx-warning);
  border: 1px solid color-mix(in srgb, var(--cx-warning) 30%, transparent);
  border-radius: 9px;
  background: var(--cx-warning-soft);
  box-shadow: 0 7px 20px rgba(11, 18, 32, .14);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.pb-map-status[hidden] {
  display: none;
}

.pb-map-location-helper {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--cx-ink);
  border-bottom: 1px solid var(--cx-border);
  background: var(--cx-surface);
}

.pb-map-location-helper__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--cx-accent-ink);
  border: 1px solid var(--cx-border);
  border-radius: 12px;
  background: var(--cx-accent-soft);
}

.pb-map-location-helper__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.pb-map-location-helper__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  line-height: 1.4;
}

.pb-map-location-helper__copy strong {
  font-size: 14px;
  font-weight: 800;
}

.pb-map-location-helper__copy span {
  color: var(--cx-ink-muted);
  font-size: 13px;
}

.pb-map-location-helper__button {
  min-height: 44px;
  padding: 9px 14px;
  color: var(--cx-on-accent);
  border: 1px solid transparent;
  border-radius: var(--cx-radius-pill);
  background: var(--cx-accent);
  font: 800 13px/1.2 var(--cx-font-sans);
  white-space: nowrap;
}

.pb-map-location-helper__button:hover:not(:disabled) {
  background: var(--cx-accent-strong);
}

.pb-map-location-helper__button:focus-visible {
  outline: none;
  box-shadow: var(--cx-focus-ring);
}

.pb-map-location-helper__button[aria-busy="true"] {
  cursor: wait;
  opacity: .72;
}

.pb-map-location-helper__button:disabled:not([aria-busy="true"]) {
  cursor: not-allowed;
  opacity: .62;
}

@media (max-width: 560px) {
  .cryex-osm-map {
    min-height: 250px;
  }

  .cryex-osm-map .leaflet-control-attribution {
    font-size: 11px;
  }

  .pb-map-location-helper {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .pb-map-location-helper__button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cryex-osm-map *,
  .cryex-osm-map *::before,
  .cryex-osm-map *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .pb-map-marker {
    color: ButtonText;
    border-color: ButtonText;
    background: ButtonFace;
    forced-color-adjust: auto;
  }

  .pb-map-location-helper,
  .pb-map-location-helper__icon,
  .pb-map-location-helper__button {
    border-color: ButtonText;
  }
}
