﻿.orders-offers-home {
  background-color: var(--pacific-blue-50);
  position: relative;
  padding: 35px 64px 0px;
}

  .orders-offers-home::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; 
    height: 160px; 
    background-image: url('../../images/home/Frame2_Desktop.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
  }

.orders-and-offers-in-process {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  gap: 16px;
  max-width: 1500px;
  margin: 0 auto;
  z-index: 1;
}

.orders-and-offers-in-process-title {
  padding: 16px 16px 16px 0;
  position: absolute;
  width: 100%;
  max-width: 1500px;
  display: flex;
  justify-content: left;
  box-sizing: border-box;
  left: 0;
}

  .orders-and-offers-in-process-title h2 {
    color: var(--grey-800);
    font-size: 18px;
  }

.orders-in-process-left,
.offers-in-process-right {
  position: relative;
  flex: 1;
  align-content: end;
  padding-top: 4rem;
}

.orders-card, .offers-card {
  border-radius: 12px;
  min-height: 154px;
  height: 100%;
  border: solid 1px var(--pacific-blue-100);
  background-color: var(--grey-50);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 8px;
}

  .orders-card img {
    width: 16px;
    height: 16px;
  }

.card-body-title {
  display: flex;
  padding-bottom: 12px;
}

  .card-body-title h2,
  .card-body-title p {
    color: var(--grey-800);
    font-size: 24px;
    font-weight: 600;
  }

.card-body.order-sent,
.card-body.order-in-process {
  align-items: center;
  border-bottom: 1px solid var(--grey-300);
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.card-body .card-row.item-left .card-order-number {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.card-body .card-column.items {
  display: flex;
  gap: 20px;
}

.card-body .card-row.item-middle,
.card-body .card-row.item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

  .card-body .card-row.item-middle p {
    font-size: 12px;
    font-weight: 600;
    color: var(--grey-800);
  }

  .card-body .card-row.item-right button,
  .card-body .card-row.item-right a {
    display: flex;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pacific-blue-600-principal);
    border: none;
    background: none;
  }

  .card-body .card-row.item-right p {
    text-wrap: nowrap;
  }

.orders-and-offers-in-process-actions {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}

  .orders-and-offers-in-process-actions a {
    width: 138px;
    height: 31px;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 26px;
    border-radius: 40px;
    background-color: var(--blue-900);
    color: var(--color-white);
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-weight: 600;
  }

  .orders-and-offers-in-process-actions.order-detail a {
    width: 138px;
    height: 31px;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 26px;
    border-radius: 40px;
    border: 2px solid var(--pacific-blue-700) !important;
    background-color: var(--grey-50);
    color: var(--pacific-blue-700);
    text-align: center;
    font-family: Montserrat;
    font-size: 12px;
    font-weight: 600 !important;
  }

.scrollable-orders.shipped {
  display: grid;
  gap: 8px;
  max-height: 70px;
  overflow-y: auto;
  padding-right: 10px;
}

.scrollable-orders.process {
  display: grid;
  gap: 8px;
  max-height: 40px;
  overflow-y: auto;
  padding-right: 10px;
}

  .scrollable-orders.shipped::-webkit-scrollbar,
  .scrollable-orders.process::-webkit-scrollbar {
    width: 6px;
  }

  .scrollable-orders.shipped::-webkit-scrollbar-thumb,
  .scrollable-orders.process::-webkit-scrollbar-thumb {
    background-color: var(--grey-300);
    border-radius: 3px;
  }

  .scrollable-orders.shipped::-webkit-scrollbar-track,
  .scrollable-orders.process::-webkit-scrollbar-track {
    background: var(--grey-100);
  }


/*Mobile*/
@media all and (max-width: 744px) {
  .orders-offers-home {
    padding: 0 !important;
  }

    .orders-offers-home::after {
      background-image: none;
    }

  .orders-and-offers-in-process {
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 0;
    height: auto;
  }

  .orders-in-process-left {
    padding-bottom: 1rem;
  }

  .orders-in-process-left, .offers-in-process-right {
    padding-top: 0;
  }

  .orders-and-offers-in-process-title {
    padding: 16px 0;
    position: relative;
  }

    .orders-and-offers-in-process-title h2 {
      font-size: 16px;
      line-height: 22.4px;
    }

  .orders-card, .offers-card {
    max-height: 325px;
  }

  .card-body-title {
    padding-bottom: 6px;
  }

    .card-body-title h2, .card-body-title p {
      font-size: 16px;
    }

  .card-body.order-sent {
    flex-direction: column;
  }

  .card-body .card-row.item-left {
    width: 100%;
  }

    .card-body .card-row.item-left .card-order-number {
      font-size: 14px;
      padding-bottom: 4px;
    }

  .card-body.order-sent .card-row.item-right button,
  .card-body.order-sent .card-row.item-right a {
    font-size: 10px;
    text-decoration: underline;
  }

  .card-footer {
    padding: 0 16px;
    justify-content: center;
    display: flex;
    left: 0;
    width: 100%;
  }

  .orders-and-offers-in-process-actions {
    width: 100%;
  }

    .orders-and-offers-in-process-actions a {
      width: 100%;
    }

  .card-body .card-column.items {
    width: 100%;
    justify-content: space-between;
  }

  .card-body .card-row.item-middle {
    width: 100%;
  }

  .card-body .card-row.item-right {
    justify-content: flex-end;
  }

  .scrollable-orders.shipped {
    max-height: 105px !important;
  }

  .scrollable-orders.process {
    max-height: 60px !important;
  }

  .orders-and-offers-in-process-actions.order-detail a {
    width: 128px;
    height: auto;
    max-height: 31px;
  }
}
/*Tablet*/
@media all and (min-width: 745px) and (max-width: 1365px) {
  .orders-and-offers-in-process {
    max-height: 414px;
    height: auto;
  }

  .orders-in-process-left, .offers-in-process-right {
    padding-top: 3rem;
  }

  .orders-card, .offers-card {
    max-height: 325px;
    gap: 8px;
  }

  .card-body-title {
    padding-bottom: 8px;
  }

    .card-body-title h2, .card-body-title p {
      font-size: 22px;
    }

  .card-body.order-sent {
    flex-direction: column;
  }

  .card-body .card-row.item-left {
    width: 100%;
  }

    .card-body .card-row.item-left .card-order-number {
      font-size: 12px;
      padding-bottom: 4px;
    }

  .card-body.order-in-process {
    flex-direction: row;
  }

  .card-body .card-column.items {
    width: 100%;
    justify-content: space-between;
  }

  .scrollable-orders.shipped {
    max-height: 105px !important;
  }

  .scrollable-orders.process {
    max-height: 40px !important;
  }
}
/*Web*/
@media (min-width: 1366px) {

}
