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

.customer-loyalty-container {
  font-family: 'Open Sans';
  line-height: 21px;
}

.placeholder {
  position: relative;
  width: 100%;
  overflow-y: scroll;
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

.description {
  margin: 107px auto 0 auto;
  font-size: 22px;
  width: 359px;
  text-align: center;
}

.personal-cards {
  padding-top: 45px;
  overflow-x: auto;
  white-space: nowrap;
  height: 300px;
}

.partner-cards {
  padding-top: 25px;
  height: 305px;
  width: 100%;

  padding-top: 25px;
  height: 305px;
  display: flex;
  flex-direction: row;
  overflow-x: scroll;
  scroll-behavior: smooth;
}

.parnter-card {
  & .card {
    height: 100%;
    .card-content {
      border-radius: 10px 10px 0 0;
      background-color: #000;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      height: 80%;
      position: relative;

      img.icon {
        height: 28px;
        width: 40px;
        position: absolute;
        right: 20px;
        top: 20px;
      }

      .card-title {
        padding-top: 30px;
        font-size: 14px;
        color: $hima-secondary-title-color;
        font-weight: 600;
        line-height: 21px;
      }

      .card-number {
        font-size: 38px;
        color: #fff;
        font-weight: bold;
        padding: 15px 0 22px 0;
      }

      .barcode {
        height: 80px;
        width: 201px;
        background-color: #ffffff;

        img {
          height: 50px;
          width: 131px;
          display: block;
          margin: 15px auto auto auto;
        }
      }
    }

    .card-footer {
      height: 20%;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      padding-left: 15px;

      .customer-name {
        font-size: 18px;
        color: #000;
        line-height: 21px;
        font-weight: bold;
      }
    }
  }
}

.parnter-card-add {
  height: 266px;
  position: relative;
  border-radius: 10px;
  margin-right: 25px;
  display: inline-block;
  perspective: 1000px;

  & .card {
    height: 260px;
    border: 3px solid $hima-secondary-title-color;
    border-style: dashed;
    width: 421px;

    .card-content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 100%;
      position: relative;
    }
  }
}

.partner-title {
  font-size: 18px;
  color: #000;
  font-weight: bold;
  text-align: center;
  width: 100%;
  display: block;
}

.btn-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.customer-card-container {
  position: relative;
  height: 266px;
  min-width: 421px;
  border-radius: 10px;
  margin-right: 25px;
  display: inline-block;
  perspective: 1000px;
}

.container-flip-card {
  -webkit-perspective: 1000;
  -moz-perspective: 1000;
  perspective: 1000;
  border-radius: 10px;
}

.container-flip-card,
.front,
.back {
  height: 266px;
  min-width: 421px;
  display: inline-block;
  margin-right: 25px;
  border-radius: 10px;
}

.card {
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  height: 100%;
  // box-shadow: 0px -2px 24px 0px #dce2e9;
  box-shadow: 0px 2px 20px -1px rgba(0, 0, 0, 0.5);
  border-radius: 10px;

  .card-content-front {
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 80%;
    position: relative;
    border-radius: 10px 10px 0 0;

    img.icon {
      height: 28px;
      width: 40px;
      position: absolute;
      right: 20px;
      top: 20px;
    }

    .card-title {
      padding-top: 30px;
      font-size: 14px;
      color: $hima-secondary-title-color;
      font-weight: 600;
      line-height: 21px;
    }

    .card-points {
      font-size: 58px;
      color: #fff;
      font-weight: bold;
      padding: 25px 0 35px 0;
    }
  }

  .card-footer-front {
    height: 20%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 15px;

    img {
      height: 22px;
      display: block;
    }
  }

  .card-content-back {
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 80%;
    position: relative;
    border-radius: 10px 10px 0 0;

    img.icon {
      height: 28px;
      width: 40px;
      position: absolute;
      right: 20px;
      top: 20px;
    }

    .card-title {
      padding-top: 30px;
      font-size: 14px;
      color: $hima-secondary-title-color;
      font-weight: 600;
      line-height: 21px;
    }

    .card-number {
      font-size: 38px;
      color: #fff;
      font-weight: bold;
      padding: 15px 0 22px 0;
    }

    .barcode {
      height: 80px;
      width: 201px;
      background-color: #ffffff;

      img {
        height: 50px;
        width: 131px;
        display: block;
        margin: 15px auto auto auto;
      }
    }
  }

  .card-footer-back {
    height: 20%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 15px;

    .customer-name {
      font-size: 18px;
      color: #000;
      line-height: 21px;
      font-weight: bold;
    }
  }
}

.front,
.back {
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.front {
  z-index: 2;
}

.back {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.add-process-button {
  position: relative;
  bottom: 7px;
}

.add-process-icon {
  position: relative;
  top: 7px;
}

/* 
  ##Device = Big Desktops
*/
@media (min-width: 1281px) {
  .center-first-card {
    margin-left: 247.5px;
  }

  .center-last-card {
    margin-right: 247.5px;
  }

  .parnter-card-add {
    min-width: 668.5px;
  }
}

/* 
  ##Device = Laptops, Desktops, Ipad pro
*/
@media (min-width: 1025px) and (max-width: 1280px) {
  .center-first-card {
    margin-left: 247.5px;
  }

  .center-last-card {
    margin-right: 247.5px;
  }

  .parnter-card-add {
    min-width: 668.5px;
  }
}

/* 
  ##Device = Tablets, Ipads
*/
@media (min-width: 768px) and (max-width: 1024px) {
  .center-first-card {
    margin-left: 158px;
  }

  .center-last-card {
    margin-right: 158px;
  }

  .parnter-card-add {
    min-width: 579px;
  }
}
