@import (reference) "../../node_modules/@transferwise/neptune-css/src/less/mixins/_logical-properties.less";

.np-summary {
  min-width: 280px;

  &__body {
    flex: 1;
  }

  &__title {
    margin-top: 2px;
    line-height: calc(22 / 16);
    font-weight: var(--font-weight-semi-bold);
    justify-content: space-between;
    margin-top: 0;

    span {
      line-height: 1.375;
      margin-bottom: 0 !important;
      letter-spacing: normal;
    }

    .np-info {
      button {
        margin-top: 0;
      }

      &__small {
        margin-top: 0;
      }

      .tw-icon {
        color: var(--color-interactive-primary);
      }
    }
  }

  &__icon {
    position: relative;
    color: var(--color-content-primary);

    // delete after March 1st
    .np-summary-icon__done {
      color: var(--color-sentiment-positive);
    }

    .np-summary-icon__pending {
      color: var(--color-sentiment-warning);
    }

    // The second icon is the badge
    :nth-child(2) {
      background-color: transparent;
      border-radius: 50%;
      position: absolute;
      .right(calc(var(--size-8) * -1));

      bottom: -6px;
    }
  }

  &__description {
    margin-top: var(--size-4);
    font-size: var(--font-size-14);
    line-height: calc(20 / 14);

    color: var(--color-content-secondary);
    padding-right: calc(var(--size-24) + var(--size-8));

    [dir="rtl"] & {
      padding-left: calc(var(--size-24) + var(--size-8));
      padding-right: 0;
    }
  }
  &__description-icon {
    margin-top: var(--size-4);
  }

  &__action {
    margin-top: var(--size-4);
  }

  & + .np-summary {
    margin-top: var(--size-24);
  }
}
