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

.cart-confirmation-container {
  background-color: #ffffff;
  border-radius: 5px 5px 0 0;
  box-shadow: 0px 0px 10px 0px #dce2e9;
  font-family: 'Open Sans';

  display: grid;
  grid-template-rows: min-content 1fr min-content;
  grid-template-columns: 100%;
  z-index: 10;
  position: relative;
  overflow-y: scroll;
  scroll-behavior: smooth;

  .header {
    height: 75px;
    background-color: #fff;

    .print {
      display: flex;
      justify-content: flex-end;
      align-items: flex-end;
      width: 100%;
      position: relative;
      top: 10px;
      right: 15px;
    }

    .heading {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      span {
        font-size: 22px;
        text-align: center;
        line-height: 28px;
        width: 310px;
        padding-top: 5px;
      }
    }
  }

  .content {
    z-index: 10;
    position: relative;

    .sub-title {
      font-size: 22px;
      color: #000000;
      text-align: center;
      line-height: 28px;
      width: 100%;
      padding-bottom: 20px;

      display: flex;
      justify-content: center;
      align-items: center;

      span {
        width: 300px;
      }
    }
  }

  .footer {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 108px;

    .overview {
      display: flex;
      justify-content: space-between;
      justify-items: center;
      width: 95%;

      .items {
        font-size: 16px;
        color: #557596;
        text-align: left;
        font-weight: bold;
      }

      .overview-price-container {
        display: flex;
        justify-content: flex-start;
        justify-items: center;
        flex-direction: column;

        .overview-price {
          font-size: 18px;
          font-weight: bold;
          text-align: left;
        }

        .overview-tax {
          font-size: 14px;
          text-align: right;
        }
      }
    }
  }
}

.recommendations {
  background-color: #fff;
  box-shadow: 0px -2px 18px 0px #dce2e9;
  z-index: 11;
  // position: relative;
  position: fixed;
  border-radius: 4px 4px 0 0;

  // This will be removed later
  .header {
    width: 100%;
    text-align: left;
    color: rgba(23, 32, 98, 1);
    display: flex;
    align-items: center;
    height: 60px;
    padding-left: 20px;

    .icon {
      height: 17px;
      width: 24px;
      background-image: url(/assets/images/Empfehlungen_Icon.svg);
      padding-top: 7px;
      background-repeat: no-repeat;
      background-position: center;
    }

    span {
      font-family: 'Open Sans';
      font-size: 15px;
      font-weight: bold;
      text-transform: uppercase;
      margin-left: 10px;
      padding-top: 4px;
    }
  }
}

.loading {
  position: absolute;
  top: 275px;
  width: 100%;
  margin-top: 0;
  z-index: 100;
}

/* 
  ##Device = Big Desktops
*/
@media (min-width: 1281px) {
  .footer,
  .header,
  .recommendations {
    width: 916px;
  }
}

/* 
  ##Device = Laptops, Desktops, Ipad pro
*/
@media (min-width: 1025px) and (max-width: 1280px) {
  .footer,
  .header,
  .recommendations {
    width: 916px;
  }
}

/* 
  ##Device = Tablets, Ipads
*/
@media (min-width: 768px) and (max-width: 1024px) {
  .footer,
  .header,
  .recommendations {
    width: 737px;
  }
}

/* 
  ##Device = Low Resolution Tablets, Mobiles (Landscape)
*/
@media (min-width: 481px) and (max-width: 767px) {
  .footer {
    width: 94%;
  }
}

/* 
  ##Device = Most of the Smartphones Mobiles (Portrait)
*/
@media (min-width: 320px) and (max-width: 480px) {
  .footer {
    width: 94%;
  }
}
