@import '../mixins/text';

.cursor-pointer {
  cursor: pointer !important;
}

.control-group {
  --ec-border-radius: 0;

  > :first-child {
    --ec-border-radius: .25rem 0 0 .25rem;
  }

  > :last-child {
    --ec-border-radius: 0 .25rem .25rem 0;
  }

  > :not(:first-child) {
    margin-left: -1px;
  }
}

.control-group-reverse {
  --ec-border-radius: 0;

  > :last-child {
    --ec-border-radius: .25rem 0 0 .25rem;
  }

  > :first-child {
    --ec-border-radius: 0 .25rem .25rem 0;
  }

  > :not(:last-child) {
    margin-left: -1px;
  }
}

.popover-content-dark {
  @include text-body-1;
  --ec-color-link: var(--ec-color-link-light);
  background-color: var(--ec-color-gray-8);
  color: var(--ec-color-primary-light);
  padding: .375rem .5rem .375rem 1.75rem;

  &.is-right-positioned {
    padding: .375rem 1.75rem .375rem .5rem;
  }
}
