@import '../style/variables/default.scss';

$zIndex: 10;

.rm-badge {
  position: relative;
  display: inline-block;
  font-size: 0;
  vertical-align: middle;

  &.block {
    display: block;
  }

  &-mark {
    position: absolute;
    z-index: $zIndex;
    display: inline-block;
    text-align: center;
    font-size: 20px;
    line-height: 32px;
    width: 32px;
    min-height: 32px;
    right: 8px;
    top: 0px;
    background: $color-error;
    color: $color-text-base-inverse;
    box-shadow: 4px -2px 8px 0 rgba(233, 59, 61, 0.2);

    &:before {
      content: '';
      position: absolute;
      z-index: $zIndex;
      bottom: -8px;
      left: 0px;
      right: 0px;
      border-left: 16px solid $color-error;
      border-right: 16px solid $color-error;
      border-top: 2px solid $color-error;
      border-bottom: 8px solid transparent;
      box-shadow: 4px -8px 8px 0 rgba(233, 59, 61, 0.2);
    }
  }

  &-wrapper {
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  &-ribbon {
    position: absolute;
    z-index: #{($zIndex - 1)};
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    font-size: 20px;

    &-content {
      width: 100%;
      height: 100%;
      background-color: $color-error;
      background-image: none !important;
      background-repeat: no-repeat;
      background-position: center center;
      white-space: nowrap;
      padding: 2px 0px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 4px -2px 8px 0 rgba(233, 59, 61, 0.2);

      &-text {
        display: flex;
        text-align: center;
        align-items: center;
        justify-content: center;
        flex: 1;
        white-space: nowrap;
        text-align: center;
        color: $color-text-base-inverse;
        border-top: 0px solid $color-border-split;
        border-bottom: 0px solid $color-border-split;
        // text-shadow: 0 0 5px $color-grey-1;
        padding: 0px 32px;
        height: 100%;
      }
    }
  }
}
