@import '../helpers/helpers';

.page_wismo-details {
  .layout_right-aside .page-header::before {
    content: none;
  }

  .back-to-link {
    display: flex;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.375rem;

    .icon {
      margin-right: 5px;
    }
  }

  .wismo-order {
    &-wrap {
      margin-left: 0;
      margin-right: 0;
    }

    &__heading {
      background-color: $gray-bg;
    }
  }

  .order-history-table__transactions {
    margin-top: 0;
    padding: 0;

    .payment-transactions {
      &__line {
        flex-direction: column;
        margin-top: 20px;

        & span {
          line-height: 1.375rem;
          font-size: .875rem;
        }

        &_date {
          @include make-col(12, 12);
          font-weight: 500;
        }

        &_type,
        &_status  {
          @include make-col(12, 12);
          padding: 0;
        }
      }
    }
  }

  .wismo__ref-wrap {
    margin-bottom: 0;
    padding: 0;
  }
}

.wismo {
  &-row {
    margin: 0 -30px;
  }

  &-info {
    margin: 30px 0;
  }

  .content {
    &-wismo-order {
      background: $gray-bg;
      padding: 20px;
    }

    &-head {
      padding-bottom: 20px;
      margin-bottom: 50px;
      color: $gray-dark;
      font-size: 1.5rem;
      font-weight: 500;
      line-height: 1.875rem;
      border-bottom: 1px solid $gray;
    }
  }

  &__header {
    margin-bottom: 10px;
  }

  &__order-heading {
    margin-bottom: 30px;
    display: block;

    & .order-heading {
      &__info {
        @include make-col(6);

        &:nth-child(2) {
          justify-content: flex-end;
          align-items: center;
        }
      }

      &__number {
        & .order-heading {
          &__title,
          &__value {
            font-size: 1.875rem;
            line-height: 2.875rem;

            &-linked {
              font-size: 1.5rem;
              line-height: 2rem;

              &.title {
                font-weight: 500;
              }

              &.numbers__list {
                text-align: right;
              }
            }
          }

          &__value {
            font-weight: 500;
          }
        }
      }

      &__date {
        & .order-heading {
          &__title,
          &__value {
            font-size: 1.35rem;
            line-height: 1.875rem;
          }

          &__value {
            font-weight: 500;
          }
        }
      }
    }
  }

  &__order-right {
    background: $gray-bg;
    padding: 20px 15px 15px;
    margin-bottom: 30px;

    & .heading {
      padding-bottom: 20px;
      border-bottom: 1px solid $gray;
      margin-bottom: 15px;
    }
  }

  &__order-sum {
    & .wrap-item,
    .total {
      display: flex;
      justify-content: space-between;
      line-height: 1.5rem;
      font-size: .875rem;
    }

    & .wrap-item {
      padding: 5px 0;

      &__value {
        font-weight: 500;
      }
    }

    & .total {
      border-top: 1px solid $gray;
      padding: 17px 0 27px;
      margin-top: 15px;
      font-weight: 500;

      &__name {
        font-weight: 500;
      }

      &__value {
        font-size: 1.5rem;
        font-weight: bold;
      }
    }
  }

  &__order-pay {
    & .wrap-item {
      line-height: 1.375rem;
      font-size: .875rem;
      margin-bottom: 20px;

      &__name {
        font-weight: 500;
      }
    }
  }

  .google-logo-img {
    img {
      height: 30px;
    }
  }
}

@include media-breakpoint-down(md) {
  .wismo {
    &__header {
      margin-top: 10px;
      font-size: 1.625rem;
      line-height: 2.25rem;
    }

    &__order-heading {
      margin: 0 0 30px;
      flex-direction: column;

      & .order-heading {
        &__info {
          @include make-col(12);

          &:nth-child(2) {
            display: block;
          }
        }

        &__number {
          display: flex;
          justify-content: space-between;

          & .order-heading {
            &__title,
            &__value {
              font-size: 1.375rem;
              line-height: 1.875rem;

              &-linked {
                font-size: 1.2rem;
              }
            }

            &__value {
              font-weight: 500;
              text-align: right;
            }
          }
        }

        &__date {
          display: flex;
          justify-content: space-between;

          & .order-heading {
            &__title,
            &__value {
              font-size: 1.125rem;
              line-height: 1.875rem;
            }

            &__value {
              font-weight: 500;
              text-align: right;
            }
          }
        }
      }
    }

    &__order-right {
      background: $gray-bg;
      padding: 20px 15px 15px;

      & .heading {
        padding-bottom: 20px;
        border-bottom: 1px solid $gray;
        margin-bottom: 15px;
      }
    }

    &__order-sum {
      & .wrap-item,
      .total {
        display: flex;
        justify-content: space-between;
        line-height: 1.5rem;
        font-size: .875rem;
      }

      & .wrap-item {
        padding: 5px 0;

        &__value {
          font-weight: 500;
        }
      }

      & .total {
        border-top: 1px solid $gray;
        padding: 17px 0 27px;
        margin-top: 15px;
        font-weight: 500;

        &__name {
          font-weight: 500;
        }

        &__value {
          font-size: 1.5rem;
          font-weight: bold;
        }
      }
    }

    &__order-pay {
      & .wrap-item {
        line-height: 1.375rem;
        font-size: .875rem;
        margin-bottom: 20px;

        &__name {
          font-weight: 500;
        }
      }
    }
  }
}

@include media-breakpoint-up(lg) {
  .wismo {
    &__order-heading {
      display: flex;
    }
  }
}

@include media-breakpoint-down(sm) {
  .wismo {
    &-info {
      margin: 30px 30px 0;
    }
  }
}
