@use "../../../../../../styles" as *;

.make-order {
  position: absolute;
  width: 100%;
  left: 0;
  height: calc(100% - $header-height);
  padding: 0 25px;
  z-index: 2;
  margin-top: $header-height;
  background-color: $col-dark;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: show-animation 500ms ease-out 0s 1 normal both;
  &:has(input[type="checkbox"].back-input:checked) {
    animation: hide-animation 500ms ease-out 0s 1 normal both;
  }
  .btn {
    width: 100%;
    padding: 12px 0;
    border-radius: $rad-10;
    &:nth-of-type(1) {
      margin-bottom: 20px;
    }
  }
  .order-over-view {
    flex: 1;
    width: 100%;
    height: 500px;
    overflow-x: hidden;
    overflow-y: scroll;
    &::-webkit-scrollbar {
      display: none;
    }
    .item {
      display: flex;
      flex-direction: column;
      gap: $gap-15;
      padding: $gap-15 0;
      &:first-of-type {
        padding: 0;
        padding-bottom: $gap-15;
      }
      .item-head {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        color: $col-white;
        h4 {
          font-size: 16px;
          margin-bottom: 5px;
        }
        .date {
          span {
            font-weight: 200;
          }
        }
      }
      .details-items {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding-top: 15px;
        .detail {
          display: flex;
          align-items: center;
          justify-content: left;
          height: 35px;
          border-radius: $rad-10;
          .price-and-size {
            flex-basis: 50%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-radius: $rad-7 + 5;
            width: fit-content;
            background-color: $col-dark;
            h3 {
              padding: 8px 0;
              text-align: center;
              border-right: 2px solid $col-border;
              color: $col-white;
              font-weight: 500;
              height: 100%;
            }
            .price {
              text-align: center;
              padding: 8px 0;
              flex: 1;
            }
          }
          .quantity {
            width: 90px;
            text-align: center;
            span.Xsign {
              color: $col-orange;
            }
            color: $col-white;
            font-size: 18px;
            font-weight: 600;
          }
          .price {
            text-align: center;
          }
        }
      }
    }
  }
}
.buy-box {
  height: 120px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  background-color: #0c0f14;
  .approve-order {
    width: 240px;
    padding: 20px 0;
    text-align: center;
    border-radius: 25px;
  }
}
