
#cart-view {
  display: none;
  right: -20em;
  width: 30em;
  height: 100vh;
  top: 0;
  background-color: var(--background);
  position: absolute;
  z-index: 101;
  overflow-y: scroll;
}

#cart-content {
  width: 85%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#screen-cover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--black);
  z-index: -1;
  display: none;
}

#close-cart {
  position: absolute;
  right: 7.5%;
  top: 10px;
  font-size: 2rem;
  border: none;
  background: none;
}

#cart-items {
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
}

#continue-to-checkout {
  text-align: center;
  font-size: 1.2rem;
  width: 100%;
  margin: auto;
  margin-top: 1em;
  padding: 0.7em 0;
  margin-bottom: 2em;
}

.cart-item {
  font-size: 1rem;
  border: 1px solid black;
  border-radius: 0.2em;
  padding: 1em;
  margin: 1em 0;
}

.cart-item-header {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.cart-item-title {
  width: calc(100% - 5em);
  font-size: 1.1em;
  font-weight: bold;
}

.cart-item-name {
  margin: 0.2em 0;
}

.cart-item-image {
  width: 5em;
  height: 5em;
  object-fit: contain;
}

.label-bold {
  font-weight: 400;
}

.cart-item-actions button {
  padding: 0.5em;
  margin-right: 1em;
}

.extra-cart-price-breakdown, .cart-item-display-custom  {
  display: none;
}

.toggleShow {
  padding: 0.2em;
  margin: 1em 1em 1em 0;
  background-color: var(--action);
  color: white;
  border: 1px solid black;
  border-radius: 0.2em;
  transition: 0.3s;
}

.toggleShow:hover {
  background-color: var(--action-hover);
}

.cart-item-pricing {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 2em;
}

.cart-item-pricing label {
  width: 50%;
}

.cart-item-pricing p {
  width: 20%;
  text-align: right;
}

.cart-displayable-data {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 2em;
}

.cart-displayable-data label {
  width: 50%;
}

.cart-section-title {
  text-decoration: underline;
  font-weight: bold;
  padding: 1em 0 0.5em 0;
  margin: 0;
}

.remove-item {
  background-color: var(--error) !important;
}