.Invoice {
  .title {
    margin-bottom: 0;
    font-weight: var(--font-weight-medium);
    color: var(--accent-color);
  }

  .info {
    line-height: 1.25;
  }

  .description {
    position: relative;
    margin-top: 0.5rem;

    .description-text {
      .star-amount-icon {
        margin-inline-start: 0;
      }
    }

    &.has-image {
      .content-inner:not(.forwarded-message) & {
        margin: 0.5rem -0.5rem -0.375rem;
      }

      .message-content.has-reactions & {
        margin-bottom: 0;
      }

      .invoice-image {
        position: relative;

        width: 100%;
        max-width: 100%;
        max-height: 30rem;
        border-bottom-right-radius: var(--border-bottom-right-radius);
        border-bottom-left-radius: var(--border-bottom-left-radius);

        object-fit: cover;

        .forwarded-message & {
          border-top-left-radius: var(--border-top-left-radius);
          border-top-right-radius: var(--border-top-right-radius);
        }
      }

      .description-text {
        position: absolute;
        top: 0;

        margin: 0.25rem;
        padding: 0.25rem 0.5rem;
        border-radius: var(--border-radius-messages-small);

        font-weight: var(--font-weight-medium);
        color: var(--color-white);

        background-color: rgba(0, 0, 0, 0.4);
      }
    }

    .test-invoice {
      margin-left: 0.5rem;
    }

    .invoice-currency-icon {
      margin-inline-end: 0.125rem;
      line-height: 1.5;
    }
  }

  .invoice-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .thumbnail {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
  }
}
