@import "../../../style/mixin";

@include export-module('co-transaction-tile-layout') {
  .co-transaction-tile {

    .transaction-tile-wrapper {
      //max-width: 500px;
      background: white;
      border-radius: 11px;
      border: 1px solid #5fdbb2;
      padding: 12px 12px 12px 19px;
    }

    .header-row {
      width: 100%;
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px;

      .header-transport-container {
        display: flex;
        flex-direction: row;

        .transport-method-icon {
          width: 40px;
          height: 40px;
          margin: -10px 5px -10px 0;
        }

        .transport-method-text {
          font-family: $tp-font-family;
          font-size: 12px;
        }
      }

      .header-date {
        font-family: $tp-font-family;
        font-size: 12px;
        color: #5fdbb2;
      }

      .header-side-panel-button {
        cursor: pointer;
      }
    }

    .transaction-details-row {
      display: flex;
      height: 60px;
      justify-content: space-between;

      .transaction-details-container {
        display: flex;
        flex-direction: column;
        width: 75%;

        .transaction-tile-title {
          font-family: $tp-font-family;
          font-size: 12px;
          margin-bottom: 5px;
          overflow-x: clip;
          white-space: nowrap;
          text-overflow: ellipsis;
        }

        .transaction-tile-description {
          font-family: $tp-font-family;
          font-size: 12px;
          overflow-y: hidden;
          color: #7d81a1;
        }
      }

      .tile-image {
        margin-right: 5px;
        width: 60px;
        height: 60px;
      }
    }

    .transaction-order-status-row {
      display: flex;
      width: 100%;
      padding: 10px;
      justify-content: flex-end;

      .indicators-wrapper {
        display: flex;
        min-width: 70px;

        .transaction-order-status-indicator {
          width: 12px;
          height: 8px;
          margin: 1px;
        }
      }
    }

    .transaction-data-row {
      display: flex;
      width: 100%;

      .transaction-data-header {
        width: inherit;
        display: flex;
        justify-content: space-between;
      }

      .transaction-data-header-label {
        font-family: $tp-font-family;
        font-size: 10px;
        color: #7d81a1;
      }

      .transaction-data-header-field {
        font-family: $tp-font-family;
        font-size: 12px;
        overflow-x: clip;
        white-space: nowrap;
        text-overflow: ellipsis;
      }

      .transaction-data-header-divider {
        display: flex;
        border-right: 2px solid #ebebeb;
        margin: 5px;
      }

      .transaction-data-header-item {
        display: flex;
        flex-direction: column;
        row-gap: 10px;

        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
          -webkit-appearance: none;
          margin: 0;
        }
      }
    }

    .center {
      align-items: center;
    }

    .bold {
      font-weight: bold;
    }

    .amount-input {
      width: 26px;
      text-align: center;
    }

    .mutable {
      padding: 4px 11px;
      border-radius: 9px;
      background: $tp-default-background-accent;
      margin-left: 3%;
    }
  }
}
