@import '../../core/src/style/variables';

:host {
  a {
    color: $lochmara;
    font-size: 0.85rem;
  }
  p {
    margin: 0.4rem 0;
    line-height: normal;
  }
  wpt-icon {
    font-size: 1.4rem;
    width: 1.4rem;
    height: 1.4rem;
    display: inline-block;
    margin-left: 10px;

    &.no-datasheet {
      margin-left: 0;
    }

    &.BomIcon--Refresh-e {
      margin-left: 5px;
    }
  }
  &.bom-part-user-data {
    color: $darkgrey;

    .bom-part-user-data-element {
      display: block;
      label {
        font-size: 1.2rem;
        p {
          font-size: 1.4rem;
          margin: 0;
          font-weight: bold;
          overflow: hidden;
          max-height: 70px;
          margin-bottom: 0.5rem;
          line-height: normal;
        }
      }
    }
    .bom-part-number-element {
      display: none;
    }
  }
  &.bom-part-number {
    .bom-part-number-element {
      line-height: normal;
      display: inline-block;
      &.is-alternate-modal {
        max-width: 107px;
      }
      .pdp-link {
        color: black;
        font-weight: bold;
        font-size: 1.4rem;
        text-decoration: underline;
        margin: 4px;
      }

      .part-error,
      .error-message {
        color: $red;
      }
      p {
        line-height: normal;
        margin: 0;
        &.manufacturers {
          margin: 0.2rem 0 0.5rem 0;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
      wpt-inline-editable {
        button {
          flex-shrink: unset;
        }
      }
    }
    .bom-part-user-data-element {
      line-height: normal;
      display: none;
    }
  }

  .data-sheet,
  .bom-part-toggleCrosses {
    color: $lochmara;
    text-align: left;
    text-decoration: underline;
    margin-top: 5px;
    letter-spacing: 0;
    font-size: 1.2rem;
    span {
      cursor: pointer;
    }
  }

  .green-icon {
    color: $green;
  }

  .grey-icon {
    color: $middarkergrey;
  }

  .red-icon {
    color: $red;
  }
}
