@import "../../styles/component.scss";

.productImageList {
  width: 112px;
  height: 112px;
  object-fit: contain;
}
.buckButton{
  font-size: 16px;
  font-weight: 600;
  color: $lightGray;
  &:hover{
    color: $primaryColor;
    font-weight: 900;
  }
}
.cartProductName {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  padding-right: 0.25rem;
}

.loaderContainer {
  position: fixed;
  z-index: 9;
  top: 50%;
  left: 50%;
  width: 100%;
  background: rgb(0 0 0 / 40%);
  height: 100%;
  transform: translate(-50%, -50%);

  & span {
    font-size: 80px;
    position: fixed !important;
    top: 50%;
    left: 50%;
    z-index: 99999;
  }
}

.cartProductDesc {
  font-weight: 500;
  font-size: 10px;
  line-height: 18px;
}

.cartItemCard {
  background: #fafafa;
  border-radius: 6px;
  padding: 18px 29px;
  :global(.ant-checkbox-inner) {
    width: 20px;
    height: 20px;
    border-color: $primaryColor;
    border-width: 3px;
  }

  
}

.deleteIcon {
  color: red;
}

.searchDropdown {
  height: 54px;
  max-width: 200px;
  margin-left: 1rem;
  padding: 0.5rem;

  :global(.ant-select-selection-item) {
    color: $primaryColor;
    align-items: center;
    margin-top: 29px;
  }

  // width: 115px !important;
}

.searchDropdown>div {
  display: flex;
  align-items: center;
  height: 100%;
}

.spanDate {
  font-weight: 300;
  font-size: 10px;
  margin-bottom: 0;
  margin-top: 2px;
}

.deliveryDetails {
  color: $primaryColor;
  font-size: 12px;
  font-weight: 600;
}

.divDate {
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  justify-content: center;
}

.plusMinusIcon {
  font-weight: 400;
  font-size: 18px;
  color: #2158bf;
  height: fit-content !important;
}

.cartContainer {
  max-width: 70%;
  width: 100%;
}

.continueShoppingButton {
  border: 1px solid #291c61;
  color: #291c61;
  width: 200px;
  height: 40px;
}

.sectionHeader {
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 13px;
}

.cartHeader {
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 13px;
}

.textSecondary {
  font-style: normal;
  font-weight: 300;
  font-size: 11px;
  line-height: 18px;
}

.itemCountWrapper {
  background-color: white;
  border-radius: 30px;
  width: fit-content;
  border: 1px solid #e4e4e4;
}

.itemPricingContainer {
  width: 20%;
}

.itemPricingLeftCol {
  font-size: 12px;
  float: left;
  opacity: 0.58;
  color: #4f5661;
}

.itemPricingRightCol {
  font-size: 12px;
  float: right;
  color: #4f5661;
}

.itemPricingTotal {
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  float: right;
  color: #4f5661;
}

.stickyCartFooter {
  z-index: 1;
  position: fixed;
  bottom: 0;
  background: #ffffff;
  box-shadow: 3px 0px 6px rgba(0, 0, 0, 0.16);
}

.offerContainer {
  display: flex;
  flex-direction: column;
  padding: 20px;
  // width: 361px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  height: fit-content;
}

.scrollContainer {
  height: 300px;
  background: #FFFFFF;
  border: 1px solid #E4E4E4;
  overflow-y: auto;
  margin-top: 1rem;
}

.mainCardOffer {
  background: #EDEDED;
  border-radius: 5px;
  margin: 1rem 0.5rem;
  padding: 1rem 0.5rem;
}

.rowCardOffer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.codeOffer {
  font-weight: 600;
  font-size: 15px;
}

.descriptionOffer {
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  color: #8C8C8C;

}

.buttonOffer {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  color: $primaryColor;

}

.useCodeOffer {
  background: #FFD855;
  border: 1px dashed #707070;
  max-width: 130px;
  // width: 100px;
  padding: 0.12rem 0.5rem;
  margin: 0.2rem;
}

.useCodeText {
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  text-align: center;

  color: #444444;

}

.useCode {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  /* identical to box height, or 125% */

  text-align: center;

  color: #444444;
}

.tcOffer {
  font-weight: 400;
  font-size: 10px;
  line-height: 18px;
  color: #505050;
  text-align: center;
}

.offerCardHeader {
  border-bottom: 1px solid #e4e4e4;
}

.offerCard {
  border: 1px solid #e4e4e4;
  border-radius: 10px;
}

.couponApplyButton {
  width: 65;
  height: 40px;
  border-radius: 0 4px 4px 0;
}

.couponInputField {
  width: 310px;
  height: 40px;
  border-radius: 4px 0 0 4px;
}

.placeOrderButton {
  width: 200px;
  height: 40px;
}

.cartEmpty {
  text-align: center;
  font-size: 16px;
  color: red;
  font-weight: 600;
}

.cartItemDetails {
  display: flex;

  :global(.ant-radio-wrapper) {
    margin-right: 1px;
  }

  :global(span.ant-radio + *) {
    padding-right: 5px;
    padding-left: 3px;
    gap: 1px;
  }
}

.codeContainer {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  border: $metalicGrayBorder;
  padding: 0 0.5rem;
  border-radius: 4px;
}

.applyCode {
  color: $primaryColor;
  font-size: 14px;
  padding: 0.5rem;
}

.codeRemove {
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  color: red;
}

.deleteContainer {
  display: flex;
  align-items: center;
}

.emptyCart {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin: 2em 10em;
  padding: 2em;
  width: 50%;
  box-shadow: 0px 0px 5px 0px #9796965e;
}

.headerDiv {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin: 2em 10em;
}

.emptyCart h1 {
  font-size: 26px;
}
.cartItemSubContainer{
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 1199.98px) {
  .cartItemDetails {
    display: flex;
  }

  .cartPageContainer {
    flex-direction: column;
    margin: 15px 0;
    padding: 0;
    padding-bottom: 80px;
  }

  .cartContainer {
    padding: 0;
    margin: 0;
  }

  .cartItemCard {
    padding: 20px;
    flex-direction: column;
  }

  .itemPricingContainer {
    width: 100%;
    margin: 20px 0;
  }

  .deleteIcon {}

  .itemCountWrapper {
    background: #f5f5f5;
    border-radius: 4px;
    justify-content: space-between;
    height: 30px;
  }

  .continueShoppingButton {
    display: none;
  }

  .placeOrderButton {
    width: 100%;
    height: 40px;
    font-weight: 500;
    font-size: 14px;
  }

  .stickyCartFooter {
    padding: 20px;
    margin-bottom: 65px;
  }

  .cartHeader {
    font-weight: 700;
    font-size: 28px;
    line-height: 35px;
  }

  .sectionHeader {
    font-weight: 600;
    font-size: 20px;
  }

  .textSecondary {
    font-weight: 400;
    font-size: 13px;
  }

  .cartProductName {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    padding-right: 0.25rem;
  }

  .cartProductDesc {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
  }

  .itemPricingLeftCol {
    font-weight: 400;
    font-size: 16px;
  }

  .itemPricingRightCol {
    font-weight: 600;
    font-size: 16px;
  }

  .itemPricingTotal {
    font-weight: 700;
    font-size: 16px;
  }

  .offerContainer {
    width: auto;
    margin: 1rem 0 1rem 0;
  }

  .deleteContainer {
    display: flex;
  }
}

@media (max-width: 768.98px) {
  .cartContainer {
    max-width: 100%;
    // margin: 2rem;
  }
  .cartHeader {
    margin-top: 5rem;
  }
  .textSecondary {
    margin-top: 5rem;
  }
  .mobileCartNameView{
    padding-left: 10px;
  }
  .cartItemSubContainer{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .emptyCart {
    width: 100%;
  }

  .headerDiv {
    margin: 5rem 2rem;
    align-content: center;
    align-items: center;
  }

  .deleteContainer {
    display: flex;
    margin-bottom: 0.5rem;
    align-items: center;
  }

  .cartPageContainer {
    width: 100%;
    padding: 1rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
  }

  .cartItemDetails {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .cartProductName {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    padding-right: 0.25rem;
  }

  .cartContainer {
    width: 100%;
  }

  .offerContainer {
    width: auto;
    margin: 0.5rem;
  }
}