@import '../../../../../assets/scss/variables';

.card-container {
  background-color: white;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0px 0px 10px 0px #dce2e9;
  height: calc(100% - 70px);
  margin-top: 10px;
  overflow-y: scroll;
  padding: 15px 20px;
  scroll-behavior: smooth;
}

.spacer {
  margin-top: 15px;
  margin-bottom: 15px;
  margin-left: -20px;
  width: calc(100% + 40px);
}

.grid-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.header {
  margin-bottom: 10px;
  margin-left: -20px;
  width: calc(100% + 30px);

  &.ipad {
    margin-left: -19px;
  }
}

.history {
  margin-left: -20px;
  width: calc(100% + 30px);

  &.ipad {
    margin-left: -19px;
  }
}

.align-right {
  margin-right: 0;
  margin-left: auto;
  display: block;
}

.more-btn {
  font-size: 16px;
  font-weight: bold;
  color: #596470;
  display: flex;
  align-items: center;
  align-self: right;
  cursor: pointer;
  padding-left: 80px;
}

.expand-more {
  justify-content: flex-end;
  padding-left: 0px;

  &.ipad {
    padding-right: 1px;
  }
}

.order-details {
  .main {
    display: flex;
    flex-direction: row;
    align-items: center;

    .customer {
      font-size: 26px;
      font-weight: bold;
      color: black;
    }
    .status {
      font-size: 16px;
      font-weight: bold;
      color: rgba(90, 114, 138, 1);
      flex: 1 1 auto;
      margin-left: 10px;
    }
    .order {
      font-size: 26px;
      font-weight: bold;
      color: black;
    }
  }

  .secondary {
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;

    width: 100%;
    .grid {
      display: grid;
      grid-template-rows: 1fr;
      grid-template-columns: 170px max-content;

      &.first {
        grid-template-columns: 120px max-content;
      }
    }
    .label {
      font-size: 16px;
      color: rgba(0, 0, 0, 1);
    }
    .data {
      font-size: 16px;
      font-weight: bold;
      color: rgba(0, 0, 0, 1);
      position: relative;
    }

    .pickup-data {
      font-size: 16px;
      font-weight: bold;
      color: rgba(0, 0, 0, 1);
      position: relative;
    }

    .dropdown {
      position: absolute;
      right: -15px;
      top: -5px;
    }
  }
}

.item {
  display: block;
  margin-bottom: -30px;
}

.actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.status-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin-left: 5px;
}
.customer-feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 12px;
  span {
    font-weight: bold;
    color: #557596;
    font-size: 16px;
  }
}

.edit-order {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: flex-end;
  padding-bottom: 5px;
  padding-top: 4px;
  cursor: pointer;
  span {
    font-size: 18px;
    color: #f70400;
    font-weight: bold;
  }
}

.not-available-extras {
  display: flex;
  flex-direction: column;
  .row {
    display: flex;
    flex-direction: row;
    padding-top: 5px;
    padding-bottom: 5px;
    justify-content: space-between;

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

      .label span {
        font-size: 16px;
        font-weight: bold;
        margin-right: 20px;
        line-height: 25px;
        padding-bottom: 0px;
      }

      .data {
        width: 100%;
        .input {
          font-family: 'Open Sans';
          border: none;
          font-size: 16px;
          color: black;
          opacity: 1;
          text-align: left;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          width: 100%;
          caret-color: #f70400;
        }
        .message-data {
          display: flex;
          flex-direction: row;
          .input {
            width: 50px;
          }
          span {
            padding-left: 10px;
          }
        }
      }

      .input:focus {
        outline: none;
      }
    }

    .action {
      cursor: pointer;
      span {
        font-size: 18px;
        color: #f70400;
        font-weight: bold;
      }

      .save-action {
        display: flex;
        flex-direction: row;
      }
    }
  }
}

.invalid-feedback {
  position: absolute;
  width: 285px;
  text-align: right;
  right: 145px;
  animation: shake 0.3s cubic-bezier(0.7, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  font-size: 14px;
  font-weight: bold;
  color: $hima-error-msg-color;
  margin-top: -20px;
}

.tags {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 30px;

  lib-tag {
    margin-right: 15px;
  }
}

.all-items-wrapper {
  display: flex;
  width: 100%;
  justify-content: center;
  .all-items {
    display: flex;
    overflow: scroll;
    padding-left: 10px;
    padding-right: 10px;
    justify-content: flex-start;

    .all-items-item {
      margin-right: 15px;
      opacity: 0.2;

      &.current {
        opacity: 1;
      }
    }
  }

  .thumbnail {
    margin-top: 18px;
    width: 58px;
    height: 95px;
    box-shadow: 0 0 12px 0 #b8b3b7;
    border-radius: 6px;
  }
}

.back-arrow-container {
  width: 118px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: absolute;
  z-index: 50;
  transform: rotate(180deg);
  left: 15px;
  padding-bottom: 20px;
  cursor: pointer;
}

.foward-arrow-container {
  width: 118px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: absolute;
  z-index: 50;
  right: 15px;
  cursor: pointer;
}

.label {
  display: flex;
  flex-direction: column;

  .checkbox {
    display: flex;
    justify-content: center;
    flex-direction: row;

    &.un-checked {
      margin-bottom: -5px;
    }

    .filter-checkbox {
      padding-right: 10px;
      cursor: pointer;
    }

    .checked-box {
      margin-left: 3px;
      margin-top: -27px;
    }

    span {
      font-size: 16px;
      font-weight: 600;
      color: #000000;
    }
  }
  .info {
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin-top: 27px;

    span {
      width: 402px;
      text-align: center;
      font-size: 16px;
      color: #596470;
      font-weight: 600;
    }
  }
}

.not-available-extras {
  display: flex;
  flex-direction: column;
  .row {
    display: flex;
    flex-direction: row;
    padding-top: 5px;
    padding-bottom: 5px;
    justify-content: space-between;

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

      .label span {
        font-size: 16px;
        font-weight: bold;
        margin-right: 20px;
        line-height: 25px;
        padding-bottom: 0px;
      }

      .data {
        width: 100%;
        .input {
          font-family: 'Open Sans';
          border: none;
          font-size: 16px;
          color: black;
          opacity: 1;
          text-align: left;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          width: 100%;
          caret-color: #f70400;
        }
        .message-data {
          display: flex;
          flex-direction: row;
          .input {
            width: 50px;
          }
          span {
            padding-left: 10px;
          }
        }
      }

      .input:focus {
        outline: none;
      }
    }

    .action {
      cursor: pointer;
      span {
        font-size: 18px;
        color: #f70400;
        font-weight: bold;
      }

      .save-action {
        display: flex;
        flex-direction: row;
      }
    }
  }
}

@keyframes shake {
  10% {
    transform: translate3d(-1px, 0, 0);
  }

  50% {
    transform: translate3d(2px, 0, 0);
  }

  70% {
    transform: translate3d(-3px, 0, 0);
  }

  90% {
    transform: translate3d(3px, 0, 0);
  }
}
