.fm-delivery-map {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  margin: 0 0 2rem;
}

.fm-delivery-map__title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #1f2937;
  border-left: 5px solid #E3825F;
  padding-left: 1rem;
}

.fm-delivery-map__lead {
  margin: 0 0 1.25rem;
  color: #4b5563;
  line-height: 1.5;
}

.fm-delivery-map__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.fm-delivery-map__canvas-wrap {
  position: relative;
  min-height: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

#fm-delivery-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.fm-delivery-map__hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: calc(100% - 24px);
}

.fm-delivery-map__aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fm-zone-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  text-align: left;
  width: 100%;
}

.fm-zone-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fm-zone-card.is-active {
  border-color: currentColor;
  box-shadow: 0 0 0 2px rgba(227, 130, 95, 0.15);
  transform: translateY(-1px);
}

.fm-zone-card--zone1 { color: #e53935; }
.fm-zone-card--zone2 { color: #1e88e5; }
.fm-zone-card--zone3 { color: #c79100; }
.fm-zone-card--zone4 { color: #6b7280; }

.fm-zone-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.fm-zone-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}

.fm-zone-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.fm-zone-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4b5563;
}

.fm-zone-card__text a {
  color: #E3825F;
}

.fm-delivery-map__result {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: #fef5ed;
  border: 1px solid #f3d5c4;
  color: #1f2937;
  display: none;
}

.fm-delivery-map__result.is-visible {
  display: block;
}

.fm-delivery-map__result-title {
  font-weight: 600;
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.fm-delivery-map__result-text {
  margin: 0;
  color: #4b5563;
  line-height: 1.45;
}

.fm-delivery-map__note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

@media (max-width: 900px) {
  .fm-delivery-map__layout {
    grid-template-columns: 1fr;
  }

  .fm-delivery-map__canvas-wrap,
  #fm-delivery-map-canvas {
    min-height: 360px;
  }
}
