@import '~moda-themes';

$color-checkmark: #77bb65;

.empty {
  .mini-cart-container {
    height: 80px;
    min-height: unset;
    overflow-y: hidden;
  }
  .mini-cart-caret-component {
    z-index: 15;
    border-bottom: 9px solid color('nokia');
    &:before,
    &:after {
      z-index: 15;
      border-bottom: 8px solid color('white');
    }
  }
}

.mini-cart-container {
  position: absolute;
  max-height: 680px;
  width: 400px;
  display: block;
  top: 56px;
  right: 0;
  bottom: auto;
  z-index: 10;
  border: 1px solid color('nokia');
  border-radius: 0px;
  background-color: color('white');
  overflow-y: visible;
  overflow-x: hidden;
  box-shadow: 0 7px 11px 0 rgba(black, 0.1);
  cursor: default;

  @media screen and (max-width: 992px) {
    position: fixed;
    z-index: 999999;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(34, 34, 34, 0.3);
    top: 48px;
    width: 100%;
    border-left: none;
    border-right: none;
    max-height: unset;
  }
  &.empty {
    height: 80px;
    min-height: unset;
  }

  .markdown-message-container {
    padding: 1em;

    .markdown-notification-icon {
      color: color('fuchsia');
      padding-right: 5px;
      display: inline-block;
      top: space(2);
    }

    span {
      padding-left: space(3);
    }
  }
  .items {
    overflow-y: visible;
    overflow-x: hidden;
    min-height: 200px;
    max-height: 400px;

    .available-now-header,
    .preorder-header {
      background: color('noise');
      height: 40px;
      width: inherit;
      padding: 0 20px 0 20px;
      color: color('black');
      font-family: font-family('sans');
      font-size: 14px;
      line-height: 2.86;
      text-align: left;
    }
    .available-now-products,
    .preorder-products {
      padding: 0 15px;

      .cart-item {
        cursor: pointer;
        padding: 32px 10px;
        border-bottom: 1px solid color('cashmere');
        &:last-of-type {
          border: none;
        }
        .data-container {
          display: flex;
        }
        .image-container {
          vertical-align: top;
          display: inline-block;
          width: 120px;
          img {
            width: 120px;
          }
        }
        .container-no-x {
          width: 100%;
        }
        .info-container {
          max-width: 190px;
          vertical-align: top;
          text-align: left;
          display: inline-block;
          padding: 0 5px;
          font-family: font-family('sans');
          font-size: 12px;
          line-height: 1.67;
          color: color('cement');

          .designer-product-name {
            padding-bottom: 6px;
          }
          .designer {
            font-family: font-family('sans');
            color: color('black');
          }
          .name {
            color: color('cement');
          }

          .price {
            padding: 6px 0;
            .original-amount {
              font-family: font-family('sans');
              color: color('black');
              font-size: 12px;
              line-height: 1.67;

              .previous-amount {
                font-family: font-family('sans');
                color: color('black');
                &.strike-text {
                  text-decoration: line-through;
                  color: color('nokia');
                }
              }
            }
            .markdown-percentage-text {
              padding: 0 space(2);
              color: color('fuchsia')
            }
          }

          .item-info,
          .delivery-date {
            padding: 6px 0;
          }

          .low-stock-alert {
            &--red {
              color: color('code-red')
            }
          }

        }
        .remove {
          margin-top: -3px;
          width: auto !important;
          float: right;
          box-sizing: border-box;
          font-size: 20px;
          height: 13px;
          color: color('elephant');
        }
      }
    }
  }
  &.just-added {
    &:after,
    &:before {
      border-bottom: 8px solid color('white');
    }
  }
  .just-added-content-container {
    overflow: hidden;

    @media screen and (max-width: 992px) {
      position: fixed;
      z-index: 10000001;
      left: 0;
      right: 0;
      background-color: color('white');
    }

    .header-container {
      display: flex;
      justify-content: center;
      margin: 25px 0 10px 0;

      .header {
        padding-left: 10px;
        color: color('black');
        font-family: font-family('serif');
        font-size: 24px;
        line-height: 1;
        text-align: center;
        align-self: center;
      }

      .checkmark-mini-cart {
        color: color('money-good');
        align-self: center;
      }
    }
    .image-container {
      display: flex;
      justify-content: center;
      width: 125px;
      height: 199px;
      margin: 0 auto;
    }
  }

  .summary {
    padding: 20px;
    position: relative;
    border-top: 1px solid color('cashmere');
    cursor: default;

    .subtotal {
      height: 20px;
      color: color('cement');
      font-family: font-family('sans');
      font-size: 12px;
      letter-spacing: 0.09px;
      line-height: 1.67;
      margin-bottom: 12px;
      .text {
        float: left;
      }
      .amount {
        float: right;
        color: color('cement');
        font-family: font-family('sans');
        font-size: 12px;
        letter-spacing: 0.09px;
        line-height: 1.67;
        text-align: right;
      }
    }
    .pay-today {
      height: 22px;
      color: color('black');
      font-family: font-family('sans');
      font-size: 14px;
      letter-spacing: 0.12px;
      line-height: 1.43;
      .text {
        float: left;
        @media screen and (min-width: 1280px) {
          .tooltip-help-message {
            bottom: 35px;
            margin-left: -3px;
          }
        }
      }
      .amount {
        float: right;
        color: color('black');
        font-family: font-family('sans');
        font-size: 14px;
        letter-spacing: 0.12px;
        line-height: 1.43;
        text-align: right;
      }
    }
    .button-container {
      display: flex;
      width: 100%;
      .first,
      .second {
        flex: 1;
      }
    }
    .go-to-shopping-bag,
    .go-to-checkout,
    .view-bag {
      flex: 1;
      height: 44px;
      background-color: color('black');
      box-shadow: 0 2px 2px 0 rgba(black, 0.05);
      color: color('white');
      font-family: font-family('sans');
      font-size: 12px;
      line-height: 3.67;
      display: block;
      padding: 0 30px;
      margin-top: 20px;
      text-align: center;
      cursor: pointer;
      text-decoration: none;
      &:hover {
        background-color: color('cement');
      }
    }
    .go-to-checkout {
      margin: 20px 0 0 5px;
    }
    .proceed-to-checkout {
      padding: 0 !important;
    }
    .view-bag {
      margin: 20px 5px 0 0;
    }
    .go-to-shopping-bag {
      width: 100%;
    }
  }
  @media screen and (max-width: 992px) {
    .summary {
      border-top: none;
      &:before {
        content: '';
        display: block;
        margin: 0 auto;
        margin-bottom: 20px;
        width: 100%;
        border-bottom: 1px solid color('cashmere');
      }
    }
  }
}
.empty-cart {
  text-align: center;
  font-family: font-family('sans');
  line-height: 1.34;
  color: color('cement');
  font-size: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 80px;
  min-height: unset;
}
