@include export-module('co-dialog-transaction-line-discount-layout') {
  .co-dialog-transaction-line-discount {
    .co-dialog:not(.is-mobile) .co-dialog-wrapper {
      width: $tp-dialog-transaction-line-discount-min-width;
    }
    .transaction-line-discount-wrapper {
      display: flex;
      flex-direction: column;
      row-gap: $tp-dialog-transaction-line-discount-row-gap;
      max-height: $tp-dialog-transaction-line-discount-height;
    }
    .two-column-grid {
      display: flex;
      flex-direction: row;
      column-gap: 10px;
      > * {
        width: calc(50% - 5px);
      }
    }
    .two-column-grid-item {
      display: flex;
      align-items: center;

      div {
        flex: 1;
        min-width: 0;
      }
    }
    .transaction-line-button {
      margin: 10px 0;
    }
    .discount-button {
      margin-left: 10px;
      &.updated {
        background-color: #37c949;
      }
    }
    .discount-codes-modal {
      .co-dialog-wrapper {
        width: 350px !important;
      }

      .dialog-header-caption {
        display: flex;
        align-items: center;
        gap: 0.5em;

        co-icon {
          height: 20px;
          width: 20px;
        }

        .co-dialog-header-title {
          margin: 0;
        }
      }

      .dialog-content {
        margin-top: 20px;
      }

      .dialog-footer {
        border: none;
      }

      co-input-textarea {
        margin-top: 15px;
      }
    }
    .transaction-line-discount-overview {
      margin: $tp-dialog-transaction-line-discount-overview-margin;
      border: $tp-dialog-transaction-line-discount-overview-border;
      border-radius: $tp-dialog-transaction-line-discount-overview-border-radius;
      .transaction-line-discount-overview-item:not(:last-child) {
        border-style: $tp-dialog-transaction-line-discount-overview-item-border-style;
        border-width: $tp-dialog-transaction-line-discount-overview-item-border-width;
      }
    }
    .transaction-line-discount-overview-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: $tp-dialog-transaction-line-discount-overview-item-padding;
      &.total {
        font-size: $tp-dialog-transaction-line-discount-total-font-size;
        font-weight: $tp-dialog-transaction-line-discount-total-font-weight;
      }
    }
    .discount-pricelist-wrapper {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 0 15px 0;
      span {
        font-size: 12px;
      }
    }
  }
}
