@import "../../style/mixins/index";

@include b(result) {
  padding: 48px 32px;

  @include e(icon-wrapper) {
    font-size: 72px;
    margin-bottom: 24px;
    text-align: center;

    @include when(image) {
      width: 250px;
      height: 295px;
      margin: 0 auto 24px auto;
    }
  }

  @include e(title) {
    color: $--x-result-title-color;
    font-size: $--x-result-title-font-size;
    line-height: 1.5em;
    text-align: center;
    margin-bottom: 10px;
  }

  @include e(subtitle) {
    color: $--x-result-subtitle-color;
    font-size: $--x-result-subtitle-font-size;
    line-height: 1.5em;
    text-align: center;
  }

  @include e(extra) {
    margin-top: 2rem;
    text-align: center;
    > * {
      margin-right: 0.5rem;

      &:last-child {
        margin-right: 0;
      }
    }
  }

  @include e(content) {
    margin-top: 24px;
    padding: 24px 40px;
    background-color: $--x-result-content-background;
  }

  @include m(success) {
    @include e(icon) {
      color: $--color-success;
    }
  }

  @include m(error) {
    @include e(icon) {
      color: $--color-danger;
    }
  }

  @include m(warning) {
    @include e(icon) {
      color: $--color-warning;
    }
  }

  @include m(info) {
    @include e(icon) {
      color: $--color-primary;
    }
  }

}
