@import "settings/settings";
@import "tools/tools";

:host {
  display: block;
  margin-bottom: $spacing-2xl;

  @media screen and (min-width: $ta-bp-sm) {
    width: 50%;
  }
}

.ta-iconOverviewItem {
  &__icon,
  i::before {
    color: ta-color("blue");
    font-size: rem(28px);
  }

  &__iconWrapper {
    align-items: center;
    background-color: ta-color("grey", 100);
    border: rem(2px) solid $ta-grey400;
    display: flex;
    height: rem(80px);
    justify-content: center;
    text-decoration: none;
    width: rem(80px);

    &:hover {
      background-color: rgba(0, 0, 0, 0.4);
      border: rgba(0, 0, 0, 0.4);
      cursor: pointer;

      i::before {
        color: ta-color("white");
        content: $ta-download-icon;
      }
    }
  }

  &__title {
    color: ta-color("grey", 600);
    font-weight: 600;
  }

  &__className {
    color: ta-color("blue", 500);
    font-weight: 600;

    .ta-icon::before {
      color: ta-color("blue", 500);
      font-size: rem(20px);
      margin-left: em(1px);
      display: inline-block;
      vertical-align: middle;
      line-height: normal;
    }

    &:hover {
      cursor: pointer;
    }
  }

  a {
    text-transform: lowercase;
  }

  .ta-success-icon::before,
  .ta-success-icon-alt::before {
    color: $success;
  }

  .ta-error-icon::before,
  .ta-error-icon-alt::before {
    color: $error;
  }
}

:host-context(.storytelling-icon) {
  i::before {
    color: $ta-grey500;
  }
}
