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

.minContentWidth {
  width: min-content !important;
}

.infoDisplay {
  display: flex;
  flex-direction: column;
  align-self: center;

  h4 {
    margin: $spacing-none !important;
  }

  p {
    margin: $spacing-none !important;
  }
}

.ta-swatch {
  display: flex;
  min-height: 160px;

  &__block {
    position: relative;

    > img {
      width: 100%;
    }
  }

  &.-ta-banner {
    align-items: center;
    background: $ta-red500;
    max-height: 10.125rem;
    padding: 2.25rem;

    * {
      color: $ta-white100;
    }

    img {
      float: left;
      height: em($target: 98px);
      width: em($target: 31px);
    }
  }

  h4 {
    text-transform: none;
    font-weight: $font-weight-light;
    line-height: 1.125;

    span {
      font-weight: $font-weight-normal;
    }
  }

  p {
    font-weight: $font-weight-light;
    width: 85%;

    &:first-child {
      width: 100%;
    }
  }

  > .ta-col {
    margin-left: em($target: 35px);
  }

  &__name {
    font-weight: $font-weight-light;
  }

  span {
    font-weight: $font-weight-medium;
  }

  &__info-area {
    background-color: initial !important;
    max-width: rem(350px);
    width: 100%;
  }

  ins {
    text-decoration: none;
  }

  &__block {
    content: "";
    height: em($target: 160px);
    min-height: 100%;
    min-width: em($target: 60px);
    width: em($target: 60px);
  }
}

:host-context(.smallSwatch) {
  .ta-swatch {
    display: flex;
    min-height: 2.4rem;
    min-width: max-content;
    margin: $spacing-sm auto;

    h4 {
      text-transform: none;
      margin: 0;
    }

    .color-value {
      display: none;
    }

    .description {
      font-size: $h6-font-size;
      color: $ta-grey700;
      width: 100%;
      margin: 0 0 $spacing-xs;
    }

    > .ta-col {
      margin-left: 1rem;
    }

    &__name {
      font-size: 1.375rem;
      font-weight: 300;
    }

    span {
      font-weight: $font-weight-book;
    }

    &__info-area {
      display: flex;
      flex-direction: column-reverse;
      max-width: 10rem;
    }

    &__block {
      height: fit-content;
      min-height: 3rem;
      min-width: 1rem;
      width: 1rem;
    }
  }
}

:host-context(.solidBackground) {
  .ta-swatch {
    display: flex;
    min-height: 160px;
    flex-direction: column-reverse;
    position: relative;

    &.-ta {
      align-items: center;
      background: $ta-red500;
      max-height: 160px;
      padding-bottom: em($target: 38px);

      * {
        color: inherit;
      }

      img {
        float: none;
        height: auto;
        width: auto;
      }
    }

    p {
      max-width: 100%;
      display: block;
    }

    ins {
      text-decoration: none;
      display: block;
    }

    * div {
      overflow: hidden;
    }

    > .ta-col {
      margin: 0;
    }

    &__name {
      font-size: em($target: 18px);
      font-weight: 300;
      line-height: 1.5;

      &::after {
        content: '|';
        font-weight: 300;
        padding: 0 1%;
      }

      span {
        font-size: em($target: 24px);
        display: block;
      }
    }

    &__info-area {
      padding: 0 2%;
    }

    .color-value {
      letter-spacing: 1px;
    }

    &__block {
      height: auto !important;
      min-height: 100%;
      width: 100%;
      display: none;
    }
  }
}
