/*
 * Copyright (c) 2016-2025 Broadcom. All Rights Reserved.
 * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
 * This software is released under MIT license.
 * The full license information can be found in LICENSE in the root directory of this project.
 */
@use '../../utils/mixins';
@use '../../utils/variables/variables.density' as density;
@use '@cds/core/tokens/tokens.scss';

@include mixins.exports('tooltip.properties') {
  @include mixins.root-or-host() {
    // Usage: ../popover/tooltip/_tooltips.clarity.scss
    --clr-tooltip-font-weight: #{tokens.$cds-global-typography-body-font-weight};

    &,
    & [clr-density] {
      --clr-tooltip-border-radius: #{density.$clr-base-border-radius-s};
    }

    &,
    & [cds-theme] {
      --clr-tooltip-background-color: #{tokens.$cds-alias-object-interaction-color-active};
      --clr-tooltip-color: #{tokens.$cds-alias-typography-color-100};
    }
  }
}
