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


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

.#{$prefix}--bmrg-member-bar {
  align-items: center;
  background-color: transparent;
  border: none;
  border-bottom: 0.0625rem solid theme.$background-active;
  cursor: pointer;
  display: flex;
  height: 3.56rem;
  justify-content: space-between;
  padding: 0.5rem 1rem 0.5rem 1rem;
  width: 100%;

  &:disabled {
    cursor: not-allowed;
  }

  &:hover {
    background-color: theme.$background-active;
  }

  &:focus {
    @include utils.focus-outline();
  }
  &.#{$prefix}--bmrg-member-bar--detail {
    cursor: initial;
    &:hover {
      background-color: inherit;
    }
  }

  .#{$prefix}--bmrg-avatar {
    path {
      fill: theme.$text-primary;
    }
  }
}

.#{$prefix}--bmrg-member-bar__user {
  align-items: center;
  display: flex;
}

.#{$prefix}--bmrg-member-bar__data {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-left: 1rem;
}

.#{$prefix}--bmrg-member-bar__name {
  color: theme.$text-primary;
  font-size: 0.87rem;
  line-height: 1.125rem;
  margin-bottom: 0.25rem;
}

.#{$prefix}--bmrg-member-bar__email {
  color: theme.$text-secondary;
  font-size: 0.75rem;
  line-height: 0.93rem;
}

.#{$prefix}--bmrg-member-bar__close-icon {
  fill: theme.$support-error-inverse;
  height: 1.25rem;
  width: 1.25rem;
  margin-left: 1rem;
}

.#{$prefix}--bmrg-member-bar__partner-text {
  color: theme.$text-secondary;
  font-size: 0.75rem;
  letter-spacing: 0.02rem;
  line-height: 0.9375rem;
}

.#{$prefix}--bmrg-member-bar__partner-not-allowed-text {
  color: theme.$support-error;
  font-size: 0.75rem;
  letter-spacing: 0.02rem;
  line-height: 0.9375rem;
}

.#{$prefix}--bmrg-member-bar__right-section {
  align-items: center;
  display: flex;
}
