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

@include export-module('co-transaction-header-customer-portal-layout') {
  .co-transaction-header-customer-portal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    .transaction-header-customer-portal {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .planning-request-button-wrapper {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      .planning-request-button {
        width: 20px;
        height: 20px;
      }
      span {
        font-size: 11px;
      }
      .preferred-delivery-date {
        display: flex;
        flex-direction: column;
      }
    }
    .order-lines-container {
      display: flex;
      flex-direction: column;
      gap: 30px;
      box-shadow: 0 2px 4px 0 #0000002e;
      border: 1px solid #F4F4F9;
      padding: 30px 20px 15px 20px;
      cursor: pointer;
      .order-lines {
        display: flex;
        align-items: center;
        gap: 30px;
        .inner-lines {
          max-width: 25%;
          flex: 1;
        }
      }
    }
    .show-order-wrapper {
      .show-order {
        display: flex;
        gap: 5px;
        align-items: center;
        font-size: 12px;
        font-weight: 500;
        color: #1a73e8;
        cursor: pointer;
        margin-top: 5px;
        .co-icon {
          width: 10px;
          height: 10px;
          svg {
            fill: #1A73E8;
          }
        }
      }
    }
    .transaction-order-info {
      display: flex;
      gap: 30px;
      .order-number-info {
        display: flex;
        gap: 5px;
        align-items: center;
        font-size: 12px;
        font-weight: 600;
        color: #1a73e8;
      }
      .order-details-info {
        display: flex;
        gap: 15px;
      }
      .order-detail-section {
        display: flex;
        gap: 5px;
        align-items: center;
        .value {
          display: flex;
          flex-direction: column;
          font-size: 12px;
          .expected {
            font-size: 10px;
          }
          .expected-label {
            display: flex;
            gap: 2px;
            align-items: center;
          }
          &.totals-wrapper {
            flex-direction: row;
            align-items: center;
            position: relative;
            co-icon {
              height: 14px;
              width: 14px;
              margin-left: 5px;
              cursor: pointer;
            }
            .totals-dropdown {
              display: none;
              flex-direction: column;
              gap: 5px;
              position: absolute;
              font-size: 11px;
              width: 150px;
              span {
                display: flex;
                gap: 10px;
                justify-content: space-between;
              }
            }
            .totals-summary {
              &:hover {
                .totals-dropdown {
                  display: flex;
                  z-index: 3;
                  background: #FFF;
                  box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.3);
                  padding: 10px;
                }
              }
            }
          }
        }
        co-icon {
          height: 18px;
          width: 18px;

        }
      }
    }
  }
}
