/* CSS Document */
#shopCartDetail {
  display: grid;
  align-items: center;
  justify-items: start;
  border: 1px solid #ddd;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  width: 100%;
  padding: 10px;
  grid-auto-flow: dense;
}
#shopCartDetail a{
  color:black;
  white-space: nowrap;
  font-size: .8rem;
}
#shopCartDetail .cartItemImage{
  justify-self: center;
}
#shopCartDetail a:hover{
  color:var(--color1);
  transition: none;
}
#shopCartDetail img{
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  vertical-align: baseline;
  margin-left: 10px;
}
#shopCartDetail h3{
  display: inline-block;
  font-size:1em;
  font-weight: bold;
  margin:0;
}
#shopCartDetail input{
  width: 40px;
  text-align: center;
  padding: 5px;
}
#shopCartDetail .price {
  white-space: nowrap;
  color: black;
  font-size: .8rem;
}
#shopCartDetail .price:after {
  content: ' تومان';
}
#shopCartDetail #subtotalPrice:before{
  content:'مبلغ خرید : ';
  color: white;
}
#shopCartDetail #subtotalPrice, #totalPrice{
  grid-column: 1 / -1;
  color: red;
  background-color: #aaa;
  width: 100%;
  padding: 0 5px;
  text-align: left;
}
#shopCartDetail #subtotalPrice:after, #totalPrice::after{
  color: white;
}
#shopCartDetail a#gotoShopCart{
  display: none;
}
.qtyWrapper {
  white-space: nowrap;
  margin-left: 30px;
  font-size: .7rem;
}
#shopCartDetail .qtyWrapper::before{
  content: 'تعداد: ';
}
#shopCartDetail .qtyWrapper::after {
  content: 'عدد';
}

.col1Start{
  grid-column-start: 1;
}
.colToEnd{
  grid-column: auto / -1;
}
#postType{
  font-size:0.8rem;
  color:red;
  white-space: normal !important;
}
#postCost, #discountCodePrice{
  direction: ltr;
  text-align: left;
}
#shopCartDetail #subtotalPrice:after, #postCost::after, #discountCodePrice::after, #totalPrice::after{
  content: ' تومان';
}
#totalPrice{
  color:white;
}
#totalPrice:before{
  content:'مبلغ قابل پرداخت : ';
  color:white;
}
#totalPrice{background-color:var(--color1)}
#postCost:before{
  content:'هزینه پست : ';
}
#discountCodePrice:before{
  content:'تخفیف : ';
}

#profileForm {
    display: grid;
    grid-template-columns: repeat(auto-fill, 6rem minmax(10rem, 1fr));
    grid-column-gap: .5vw;
    grid-row-gap: .5vw;
    margin-top: 10px;
    padding: 10px;
  }
  
  #profileForm * {
    white-space: nowrap;
    font-family: iransans;
  }
  
[for="profile_address"]{
  grid-column: 1 / 2;
}
  #profile_address {
    grid-column: 2 / -1;
  }
  
  #profileForm button {
    grid-column: 1 / -1;
  }
.loading .loaderDots {
  content: url(/images/loader-dots.svg);
  width: 2rem;
}
.loading .loaderDots.white {
  content: url(/images/loader-dots-white.svg);
  width: 2rem;
}

#printInvoice{
  cursor: pointer;
  color:var(--color1);
  text-align: center;
}

  @media screen and (min-width:901px){
    #shopCartDetail {
      grid-template-columns: min-content auto min-content min-content min-content;
    }    
    #shopCartDetail .removeCartItem:before{
      font-family:var(--bodyFont);
      font-weight:normal;
      display: block;
      content: 'حذف';
      color: white;
      background-color: #aaa;
      font-size:15px;
      line-height: 24px;
      border-radius: 5px;
      padding: 5px 15px;
      text-align: center;
      cursor: pointer;
    }
    #shopCartDetail .removeCartItem:hover:before {
      background-color:red;
    }
    #shopCartDetail .removeCartItem{
      grid-column: -2 / -1;
    }
    
  }
  @media screen and (max-width: 900px) {
    #shopCartDetail .removeCartItem:before{
      display: block;
    content: '×';
    color: white;
    background-color: red;
    font-size:20px;
    line-height: 24px;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    }
    #shopCartDetail {
      grid-template-columns: min-content min-content auto min-content min-content;
      grid-gap: 1vw;
    }    
    #shopCartDetail a{
      white-space: normal;
    }
    
  }
@media print {
  body{
    font-size: 12pt;
  }
  #shopCart::before{
    display: block;
    content: 'انتشارات گیسا / پیش‌فاکتور';
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color1);
    color: var(--color1);
    padding: .4rem;
  }
  #heading #logo{
    display: block;
    height: 75px;
    width: 75px;
    margin-top: .5vw;
    background-image: url("../images/logo2.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
  }
  #navIcon, #enamad, #copyright, #feedbackLink, #printInvoice, #submitShopCart, #goTop, .removeCartItem, #searchBox, #user, #shopCartBtn, #menu, #footerMenu{display:none !important;}
  .itemCount {
    border:none;
  }
  #shopCartDetail {
    grid-template-columns: min-content auto min-content min-content min-content;
  }
  
  #footer_address{
    flex:100%;
    margin-left: 0;
  }
  footer{
    background-color: white;
  }
  footer #contents{
    background-color: var(--color1);
  }
  select, input{
    border:none;
  }
}