/**************************
 * Copyright Monkey Exchange. All Rights Reserved
 * This style guide was developed by Monkey Exchange Team
 * MIT Licence
**************************/
@mixin badge-size-empty($suffix, $size) {
  &-#{$suffix}:empty {
    width: $size;
    height: $size;
    min-width: unset;
    border-radius: 50%;
  }
}

@mixin badge-size($suffix, $size, $fontSize) {
  &-#{$suffix} {
    height: $size;
    min-width: $size;
    font-size: $fontSize;
  }
}

.monkey-badge {
  top: 0;
  right: 0;
  padding: 2px;
  display: flex;
  color: var(--badge-color, var(--mecx-color-white));
  width: max-content;
  position: absolute;
  border-radius: 30px;
  background-color: var(--badge-background, var(--mecx-color-success-main));
  box-sizing: border-box;
  justify-content: center;
  transform: translate(40%, -40%);

  @include badge-size('sm', 12px, 8px);
  @include badge-size('md', 16px, 12px);
  @include badge-size('lg', 20px, 16px);
  @include badge-size-empty('sm', 10px);
  @include badge-size-empty('md', 12px);
  @include badge-size-empty('lg', 14px);

  &-left {
    left: 0;
    transform: translate(-30%, -30%);
  }
}
