.mfo-workflow-shell .mfo-compare-map-content.mfo-loading {
  /* An empty accordion body needs room for the shared loading spinner. */
  min-height: 90px;
  flex-shrink: 0;
}

.mfo-compare-map .maplibregl-ctrl-attrib {
  display: none !important;
}

/* Shared comparison controls mirror the Plotly modebar instead of the
   general green widget-button theme. Keep the icons on one row. */
.mfo-compare-map-toolbar {
  gap: 0 !important;
}

.mfo-workflow-shell .mfo-compare-map-button.widget-button {
  flex: 0 0 40px;
  width: 40px !important;
  min-width: 40px !important;
  height: 36px !important;
  min-height: 36px;
  margin: 0 !important;
  padding: 4px 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(68, 68, 68, 0.3) !important;
  box-shadow: none !important;
}

.mfo-workflow-shell .mfo-compare-map-button.widget-button:hover,
.mfo-workflow-shell .mfo-compare-map-button.widget-button:focus-visible {
  color: rgba(68, 68, 68, 0.7) !important;
}

.mfo-workflow-shell .mfo-compare-map-button .fa {
  margin: 0 !important;
  font-size: 28px !important;
  line-height: 1;
}

/* Plotly legends use their own compact typography. Override the global
   1rem widget HTML rule only for this shared comparison legend. */
.mfo-compare-map-legend .widget-html-content {
  font-family: "Open Sans", verdana, arial, sans-serif;
  font-size: 12px !important;
  line-height: 1.5;
  color: #2a3f5f;
  overflow-wrap: anywhere;
}

.mfo-compare-map-legend-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 400;
}

.mfo-compare-map-legend-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

/* Keep wrapped lines close together; spacing belongs between categories. */
.mfo-compare-map-legend-row > span:last-child {
  min-width: 0;
  line-height: 1.2 !important;
}

.mfo-compare-map-legend-swatch {
  display: inline-block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: 1px;
}
