/* 
==========
Cart
==========
*/

.cart-sidebar{
  position:fixed;
  top:0;
  right:-400px;
  width:400px;
  height:100vh;
  background: var(--dark-color);
  transition:.4s;
  z-index:2000;
  display:flex;
  flex-direction:column;
}

#close-cart{
    background-color: var(--silver-color);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

#close-cart:hover{
    background-color: var(--silver-color);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    opacity: .7;
    cursor: pointer;
    transition: all ease-in-out .3s;
}

.cart-sidebar.active{
  right:0;
}

.cart-header{
  padding:20px;
  display:flex;
  justify-content:space-between;
  border-bottom:1px solid var(--dark-color);
}

.cart-header h2{
    color: var(--white-color);
}

.cart-items{
  flex:1;
  overflow:auto;
  padding:20px;
}

.cart-item{
  margin-bottom:20px;
  display:flex;
  justify-content:space-between;
  color: var(--white-color);
}

.cart-footer{
  padding:20px;
  border-top:1px solid var(--dark-color);
}

.cart-footer h3{
    color: var(--white-color);
}

.cart-footer button{
  width:100%;
  margin-top:15px;
  padding:15px;
  border:none;
  background:var(--green-color);
  color:var(--white-color);
  font-weight:600;
  border-radius:8px;
  cursor:pointer;
}

.container__delivery{
  width: 100%;
  height: auto;
  padding-left: 1em;
  padding-right: 1em;
  color: var(--white-color);
}

/* 
==========
Responsive styles.
==========
*/

@media(max-width:768px){
  .cart-sidebar{
    width:100%;
  }

}