@import './mixins/mixins.scss';

@mixin result-status-mixin ($status){
  @include m($status + '-status') {
    @include b(result-icon) {
      @include b(icon) {
        fill: map-get($--result-icon-fill, $status);
        stroke: map-get($--result-icon-fill, $status);
      }
    }
  }
}

@include themes-mixin {
  @include b(result) {
    color: $--result-description-text-color;
    @include result-status-mixin('success');
    @include result-status-mixin('info');
    @include result-status-mixin('warning');
    @include result-status-mixin('error');
    @include once {
      font-size: 14px;
      transition: color .3s $--n-ease-in-out-cubic-bezier;
      @include b(result-icon) {
        display: flex;
        justify-content: center;
        @include e(status-image) {
          width: 80px;
          height: 80px;
        }
      }
      @include b(result-content) {
        margin-top: 24px;
      }
      @include b(result-footer) {
        margin-top: 24px;
        text-align: center;
      }
    }
    @include b(result-header) {
      @include e(title) {
        @include once {
          margin-top: 16px;
          font-size: 32px;
          font-weight: 500;
          transition: color .3s $--n-ease-in-out-cubic-bezier;
          text-align: center;
        }
        color: $--result-header-text-color;
      }
      @include once {
        @include e(description) {
          margin-top: 4px;
          text-align: center;
          font-size: 14px;
        }
      }
    }
  }
}