/*
IBM Confidential
694970X, 69497O0
© Copyright IBM Corp. 2022, 2024
*/


@use '@carbon/themes/scss/tokens' as theme;
@use "../../global/config" as *;

.#{$prefix}--bmrg-tooltip {
  background-color: theme.$background-inverse;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
  border-radius: 0.125rem;
  height: auto;
  max-width: 13rem;
  padding: 0.5rem 1rem;
  text-align: left;

  .tippy-svg-arrow {
    fill: theme.$background-inverse;
  }

  &.tippy-box[data-placement^="top"] > .tippy-svg-arrow > svg {
    left: 0.25rem !important;
  }

  &.tippy-box[data-placement^="bottom"] > .tippy-svg-arrow > svg {
    left: 0.25rem !important;
  }

  &.tippy-box[data-placement^="left"] > .tippy-svg-arrow > svg {
    left: 0.9375rem;
  }

  &.tippy-box[data-placement^="right"] > .tippy-svg-arrow > svg {
    right: 0.9375rem;
  }

  .tippy-content {
    color: theme.$text-inverse;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.125rem;
    letter-spacing: 0.01rem;
    padding: 0rem;
  }
}
