.crm-yandex-map {
  position: relative;
  border: 1px solid var(--border, #858585);
  border-radius: var(--ds-radius-md, 12px);
  background: var(--bg-surface, #fff);
  color: var(--text-primary, #242424);
  overflow: clip;
}

.crm-yandex-map [hidden] { display: none; }

.crm-yandex-map-viewport {
  position: relative;
  overflow: hidden;
  height: clamp(240px, 42vh, 380px);
  background: #e9e9e9;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.crm-yandex-map-viewport:active { cursor: grabbing; }

.crm-yandex-map-viewport:focus-visible {
  outline: 2px solid var(--text-primary, #242424);
  outline-offset: -3px;
  z-index: 1;
}

.crm-yandex-map-tiles,
.crm-yandex-map-tiles img,
.crm-yandex-map-marker,
.crm-yandex-map-crosshair {
  position: absolute;
  inset: 0 auto auto 0;
  pointer-events: none;
}

.crm-yandex-map-tiles img {
  width: 256px;
  height: 256px;
  max-width: none;
}

.crm-yandex-map-tiles img[data-failed] { visibility: hidden; }

.crm-yandex-map-marker {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #292929;
  box-shadow: 0 1px 5px #0009;
  translate: -50% -100%;
  rotate: -45deg;
}

.crm-yandex-map-crosshair {
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #292929;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #fff;
  transform: translate(-50%, -50%);
}

.crm-yandex-map-logo {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: block;
}

.crm-yandex-map-logo img { display: block; }

.crm-yandex-map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
}

.crm-yandex-map-control {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  background: var(--bg-surface, #fff);
  color: inherit;
  border: 1px solid var(--border, #858585);
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.crm-yandex-map-control:hover,
.crm-yandex-map-control:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.crm-yandex-map-control:disabled { opacity: .55; }
.crm-yandex-map-status { margin: 0; padding: 8px 10px; font-size: .875rem; }

.booking-map-details { grid-column: 1 / -1; padding: 10px 0; }
.booking-map-details summary { cursor: pointer; font-weight: 650; color: var(--text-primary); }
.booking-map-details p { margin: 8px 0; color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.booking-map-details > a { display: inline-block; margin: 8px; color: var(--text-secondary); font-size: 12px; }
#modal-order #order-location-section > #order-map-details[open] > #order-map-host { display: block !important; }
