.wrapper {
  position: relative;

  &:hover .variableDot:before {
    opacity: 1;
    transform: scale(1);
  }

  // Style border of wrapped children when open
  &[data-open='true'] *::after {
    --current-border-color: var(--color-support-tertiary-40) !important;
    --text-field-border-color: var(--color-support-tertiary-40) !important;
  }

  // Style border of children when hovered
  &[data-is-variable='true']:hover *::after {
    --current-border-color: var(--color-support-tertiary-40) !important;
    --text-field-border-color: var(--color-support-tertiary-40) !important;
  }

  &[data-full-width='true'] {
    width: 100%;
  }
}

.variableDot {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 6px;
  height: 6px;
  padding: 0;
  z-index: 1;
  cursor: pointer;

  &:after,
  &:before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-neutral-100);
    margin-top: -6px;
    margin-left: -6px;
    border: 4px solid var(--color-support-tertiary-40);
    opacity: 0;
    transform-origin: center center;
    transition: transform 0.2s ease;
  }
  &:before {
    transform: scale(0);
    transform-origin: center center;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }
  &:after {
    content: attr(data-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    font-weight: bold;
    background: var(--color-support-tertiary-40);
    transition: opacity 0.2s ease;
  }
  &:hover:after {
    transform: scale(1.2);
    opacity: 1;
  }
}
