.react-flow__edge-path-selector:hover {
  cursor: pointer;
}
.react-flow__edge-path-selector:hover + .react-flow__edge-path,
.react-flow__edge-path:hover {
  stroke: #555;
  cursor: pointer;
}
.react-flow__edge-path-selector {
  fill: none;
  stroke: transparent;
  stroke-width: 28;
}

.react-flow__node {
  /* border: 1px solid #aaa; */
  /* background-color: white; */
  /* padding: 1em; */
  /* border-radius: 25rem; */
  /* font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace; */
  /* box-shadow: 0 0 0 -1px rgba(128, 200, 255, 0.5); */
  transition: box-shadow 200ms;
}
.react-flow__node-start,
.react-flow__node-end {
  border-radius: 25rem;
}
.react-flow__node-special {
  border-radius: 0.2em;
}
.react-flow__node-start.selected,
.react-flow__node-end.selected {
  box-shadow: 0 0 0 3px rgba(0, 47, 255, 0.829);
  /* border-radius: 25rem; */
  border: none;
}
.react-flow__node-special.selected {
  box-shadow: 0 0 0 3px rgba(0, 47, 255, 0.829);
  /* border-radius: 0.2em; */
  border: none;
}
.react-flow__node-special.selected:has(.node-validation-error) {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4);
  border-radius: 0.5rem;
}
.react-flow__node h3 {
  text-decoration: underline;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.react-flow__handle {
  background: transparent;
  border-radius: 0;
  border: 0;
  height: 100%;
  right: 0;
  width: 50%;
}

.react-flow__handle::after {
  background-color: white;
  border-radius: 100%;
  border: 1px solid rgb(216, 216, 216);
  content: '';
  display: block;
  height: 0.5rem;
  position: absolute;
  top: 50%;
  transform: translate(-20%, -50%);
  width: 0.5rem;
}

.react-flow__controls {
  box-shadow: none !important;
  display: flex !important;
  flex-direction: row !important;
  column-gap: 4px !important;
}

.react-flow__controls-button {
  background: #ffffffb3 !important;
  backdrop-filter: blur(8px) !important;
  border-bottom: 0px solid #eee !important;
  border-radius: 4px !important;
}

:hover.react-flow__controls-button {
  background: #ffffffe6 !important;
  box-shadow: rgba(11, 24, 76, 0.03) 0px 0px 0px 0.5px, rgba(11, 24, 76, 0.1) 0px 4px 8px !important;
}

.react-flow__edge-path {
  stroke: rgba(11, 24, 76, 0.08);
  stroke-width: 2px;
}

.workflow-builder-minimap {
  opacity: 0.72;
  border-radius: 8px;
  overflow: hidden;
  transform: scale(0.58);
  transform-origin: bottom right;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

.workflow-builder-minimap:hover,
.workflow-builder-minimap:focus-within {
  opacity: 1;
  transform: scale(1);
}

.workflow-builder-minimap .react-flow__minimap-svg {
  border-radius: 8px;
  overflow: hidden;
}

.workflow-builder-minimap .react-flow__minimap-mask {
  transform: var(--workflow-minimap-transform);
}

.workflow-builder-minimap-controls {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0.72;
  transition: opacity 180ms ease;
  z-index: 5;
}

.workflow-builder-minimap-controls:hover,
.workflow-builder-minimap-controls:focus-within {
  opacity: 1;
}

.workflow-builder-minimap-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(11, 24, 76, 0.7);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 24, 76, 0.08);
  border-radius: 3px;
  backdrop-filter: blur(8px);
}

.workflow-builder-minimap-controls button:hover:not(:disabled) {
  color: rgba(11, 24, 76, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

.workflow-builder-minimap-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

/* .react-flow .react-flow__edges {
  z-index: 4;
} */
