.flow-element {
  --border-radius: 0;
  --border-width: 1px;
  border: solid var(--border-width);
  text-align: center;
  background: var(--base);
}
.flow-element.Logic:not(.selected) {
  border-color: var(--custom-color, var(--flow-logic));
}
.flow-element.Logic:not(.selected) .icon-wrapper:before {
  background: var(--custom-color, var(--flow-logic));
}
.flow-element.Input:not(.selected) {
  border-color: var(--custom-color, var(--flow-input));
}
.flow-element.Input:not(.selected) .icon-wrapper:before {
  background: var(--custom-color, var(--flow-input));
}
.flow-element.Output:not(.selected) {
  border-color: var(--custom-color, var(--flow-output));
}
.flow-element.Output:not(.selected) .icon-wrapper:before {
  background: var(--custom-color, var(--flow-output));
}
.flow-element.SubFlow:not(.selected) {
  border-color: var(--custom-color, var(--flow-subflow));
}
.flow-element.SubFlow:not(.selected) .icon-wrapper:before {
  background: var(--custom-color, var(--flow-subflow));
}
.flow-element.Process:not(.selected) {
  border-color: var(--custom-color, var(--flow-process));
}
.flow-element.Process:not(.selected) .icon-wrapper:before {
  background: var(--custom-color, var(--flow-process));
}
.flow-element.BuildPart:not(.selected) {
  border-color: var(--custom-color, var(--flow-buildpart));
}
.flow-element.BuildPart:not(.selected) .icon-wrapper:before {
  background: var(--custom-color, var(--flow-buildpart));
}
.flow-element.BuildStart:not(.selected) {
  border-color: var(--custom-color, var(--flow-buildstart));
}
.flow-element.BuildStart:not(.selected) .icon-wrapper:before {
  background: var(--custom-color, var(--flow-buildstart));
}
.flow-element.BuildEnd:not(.selected) {
  border-color: var(--custom-color, var(--flow-buildend));
}
.flow-element.BuildEnd:not(.selected) .icon-wrapper:before {
  background: var(--custom-color, var(--flow-buildend));
}
.flow-element.Communication:not(.selected) {
  border-color: var(--custom-color, var(--flow-communication));
}
.flow-element.Communication:not(.selected) .icon-wrapper:before {
  background: var(--custom-color, var(--flow-communication));
}
.flow-element.Failure:not(.selected) {
  border-color: var(--custom-color, var(--flow-failure));
}
.flow-element.Failure:not(.selected) .icon-wrapper:before {
  background: var(--custom-color, var(--flow-failure));
}
.flow-element.Script:not(.selected) {
  border-color: var(--custom-color, var(--flow-script));
}
.flow-element.Script:not(.selected) .icon-wrapper:before {
  background: var(--custom-color, var(--flow-script));
}
.flow-element.selected .icon-wrapper:before {
  background: unset !important;
}
.flow-element .icon-wrapper {
  border-right: solid var(--border-width);
  width: 30px;
  min-width: 30px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.flow-element .icon-wrapper:before {
  content: " ";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1;
  opacity: 0.25;
}
.flow-element .icon-wrapper .icon {
  z-index: 2;
  padding-top: 3px;
  display: inline-block;
  vertical-align: middle;
}
.flow-element .icon-wrapper img {
  z-index: 1;
  width: 1.5rem;
}

.flow-element {
  margin: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  padding: 0.25rem 0.25rem 0.25rem 2.25rem;
}
.flow-element.Logic .icon-wrapper {
  border-color: var(--custom-color, var(--flow-logic));
}
.flow-element.Input .icon-wrapper {
  border-color: var(--custom-color, var(--flow-input));
}
.flow-element.Output .icon-wrapper {
  border-color: var(--custom-color, var(--flow-output));
}
.flow-element.SubFlow .icon-wrapper {
  border-color: var(--custom-color, var(--flow-subflow));
}
.flow-element.Process .icon-wrapper {
  border-color: var(--custom-color, var(--flow-process));
}
.flow-element.BuildPart .icon-wrapper {
  border-color: var(--custom-color, var(--flow-buildpart));
}
.flow-element.BuildStart .icon-wrapper {
  border-color: var(--custom-color, var(--flow-buildstart));
}
.flow-element.BuildEnd .icon-wrapper {
  border-color: var(--custom-color, var(--flow-buildend));
}
.flow-element.Communication .icon-wrapper {
  border-color: var(--custom-color, var(--flow-communication));
}
.flow-element.Failure .icon-wrapper {
  border-color: var(--custom-color, var(--flow-failure));
}
.flow-element.Script .icon-wrapper {
  border-color: var(--custom-color, var(--flow-script));
}
.flow-element .label {
  flex-grow: 1;
}
.flow-element.obsolete .ribbon, .flow-element.enterprise .ribbon, .flow-element.ll-basic .ribbon, .flow-element.ll-standard .ribbon, .flow-element.premium .ribbon, .flow-element.ll-professional .ribbon {
  display: unset;
}
.flow-element.obsolete .ribbon-content::before, .flow-element.enterprise .ribbon-content::before, .flow-element.ll-basic .ribbon-content::before, .flow-element.ll-standard .ribbon-content::before, .flow-element.premium .ribbon-content::before, .flow-element.ll-professional .ribbon-content::before {
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f00d";
}

.flow-elements .draggable {
  cursor: grab;
}
.flow-elements .draggable:active {
  cursor: grabbing !important;
}
.flow-elements .draggable:hover {
  cursor: grab;
}

.dragging {
  cursor: grabbing;
}

.ribbon {
  position: absolute;
  right: 8px;
  top: -3px;
  filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.5));
  display: none;
}
.ribbon > .ribbon-content {
  color: white;
  font-size: 0.75rem;
  text-align: center;
  font-weight: 400;
  background: #a90101 linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.25) 100%);
  padding: 8px 2px 4px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 4px), 0 100%);
  width: 20px;
  min-height: 20px;
  transition: clip-path 1s, padding 1s, background 1s;
}

.enterprise:not(.obsolete) .ribbon > .ribbon-content {
  background: #12a901 linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.25) 100%);
}
.enterprise:not(.obsolete) .ribbon > .ribbon-content::before {
  content: "\f19c";
}

.ll-basic:not(.obsolete) .ribbon > .ribbon-content {
  background: #01a97c linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.25) 100%);
}
.ll-basic:not(.obsolete) .ribbon > .ribbon-content::before {
  content: "\f19c";
}

.ll-standard:not(.obsolete) .ribbon > .ribbon-content {
  background: #0174a9 linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.25) 100%);
}
.ll-standard:not(.obsolete) .ribbon > .ribbon-content::before {
  content: "\f19c";
}

.ll-premium:not(.obsolete) .ribbon > .ribbon-content {
  background: #ad14e2 linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.25) 100%);
}
.ll-premium:not(.obsolete) .ribbon > .ribbon-content::before {
  content: "\f19c";
}

.ll-professional:not(.obsolete) .ribbon > .ribbon-content {
  background: #e79900 linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.25) 100%);
}
.ll-professional:not(.obsolete) .ribbon > .ribbon-content::before {
  content: "\f19c";
}

