/* General Cart */

#cart {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  visibility: visible;
  opacity: 1;
  transition: all 0.4s;
  overflow: scroll;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: sans-serif;
  z-index: 1100;
}

#cart .cart-dialog {
  overflow-x: hidden;
  background-color: #fff;
  -webkit-transition-duration: 600ms;
  transition-duration: 600ms;
  z-index: 10;
  box-shadow: 0 0.25em 1em rgba(0, 0, 0, .5);
  display: flex;
  flex-direction: column;
}

#cart #cart-overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  visibility: visible;
}

#cart.closed #cart-overlay {
  opacity: 0;
  visibility: hidden;
}

/* Panel-cart Cart */

#cart.panel-cart .cart-dialog {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 30em;
}

#cart.panel-cart.closed {
  visibility: hidden;
}

#cart.panel-cart.closed.initial {
  display: none;
}

#cart.panel-cart.closed .cart-dialog {
  transform: translate(100%);
  -webkit-transform: translate(100%);
}

@media only screen and (max-width: 30em) {
  #cart.panel-cart .cart-dialog {
    width: 100%;
  }
}

/* Modal-cart Cart */

#cart.modal-cart .cart-dialog {
  display: block;
  border-radius: .25em;
  position: relative;
  width: auto;
  margin: 0.5em;
}

#cart.modal-cart.closed {
  visibility: hidden;
  opacity: 0;
}

#cart.modal-cart #cart-overlay {
  opacity: 0.5;
  background-color: #000;
}

@media only screen and (min-width: 768px) {
  #cart.modal-cart .cart-dialog {
    width: 30em;
    margin: 2em auto;
  }
}

/* Cart interior */

#cart .closebtn {
  position: absolute;
  text-decoration: none;
  top: -0.15em;
  left: 0.25em;
  font-size: 1.5em;
  color: white;
  border: none;
}

#cart .cart-header, #cart .cart-body, #cart .cart-summary {
  padding: 0.75em;
}

#cart .cart-header {
  font-size: 1.5em;
  text-align: center;
  background-color: #555;
  color: white;
}

#cart .cart-body {
  flex-grow: 2;
  overflow: scroll;
  overflow-x: hidden;
  overflow-y: auto;
}

#cart .product-subtotal {
  text-align: right;
}

#cart .cart-summary {
  padding: 0.75em;
  background-color: #ddd;
}

#cart .cart-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

#cart .continue-shopping {
  text-decoration: none;
  border-bottom: none;
}

#cart .footer-copy {
  text-align: center;
  font-style: italic;
  background-color: #ddd;
  padding-bottom: 0.25em;
  padding-bottom: env(safe-area-inset-bottom, 0.25em);
}

#cart .footer-copy p {
  margin: 0;
}

#cart a.checkout-btn {
  text-decoration: none;
  background-color: #990000;
  color: white;
  padding: 0.5em 0.75em;
  font-size: 1.25em;
  border-radius: 0.25em;
  border: none;
  margin-left: 0.5em;
}

#cart ul {
  margin: 0;
  -webkit-padding-start: 0px;
  -webkit-margin-after: 0px;
  -webkit-margin-before: 0px;

  -moz-padding-start: 0px;
  -moz-margin-after: 0px;
  -moz-margin-before: 0px;
}

#cart li.item-row {
  border-bottom: 1px solid #ededed;
  width: 100%;
  list-style-type: none;
  padding: 0.25em 0em;
  display: flex;
  justify-content: space-between
}

#cart .quantity {
  margin-top: 0.125em;
}

#cart .quantity a {
  text-decoration: none;
  border: none;
  color: #990000;
  font-size: 1.5em;
  margin-left: 0.75em;
}

#cart .empty-cart {
  text-align: center;
  font-size: 1.5em;
  margin-top: 10%;
}

/* Price fields */

.retail-strike-no-label, .retail-strike-with-label .field__item {
  text-decoration: line-through;
}

.hide-price {
  display: none;
}

/* Member Only */

.ew-memberonly, .ew-qty-buy.member-only {
  display: none;
}