main {
  -webkit-transition: opacity 0.4s ease;
  transition: opacity 0.4s ease;
}

.cart-container {
  z-index: 100;
  position: fixed;
  right: 12pt;
  top: 0;

  padding: 18pt 4pt 0 4pt;

  width: 25%;
  max-width: 25%;

  height: 100%;
  max-height: 100%;

  margin-bottom: 24pt;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  background-color: white;

  display: block;

  -webkit-transform: translate3d(0, -100%, 0);
  transform: translate3d(0, -100%, 0);

  -webkit-transition: -webkit-transform 0.4s ease;
  transition: transform 0.4s ease;

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  will-change: transform;

  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
}

.cart-item-title {
  margin-bottom: 4pt;
  padding-bottom: 2pt;
  border-bottom: 1pt solid black;
}

.cart-item p {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.cart-item p span {
  margin-right: auto;
}

.cart-empty {
  font-style: italic;
  color: gray;

  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;

  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;

  overflow: hidden;
}

.cart-total {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.cart-total strong {
  margin-right: auto;
}

small {
  font-size: 10pt;
  font-weight: lighter;
  color: gray;
}

.cart-container::-webkit-scrollbar {
  display: none;
}

.cart-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* visible */
.cart-container.show {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* hidden */
.cart-container.hide {
  -webkit-transform: translate3d(0, -200%, 0);
  transform: translate3d(0, -200%, 0);
}

button:hover {
  background-color: black;
  color: white;
  cursor: pointer;
}

.checkout-link,
button {
  font-family: inherit;

  display: block;

  width: 100%;

  position: relative;

  margin-top: 2pt;
  margin-bottom: 24pt;

  padding: 4pt 0;

  font-weight: bold;

  text-align: center;
  text-decoration: none;

  color: white;
  background-color: red;

  -webkit-appearance: none;
  appearance: none;

  border-radius: 0;
}

button {
  background-color: transparent;
  color: gray;
  border: 1pt solid gray;
}

.checkout-link:hover {
  background-color: black;
  color: white;
}

.cart-container > p:first-of-type {
  margin-bottom: 2pt;
  padding-bottom: 2pt;
  border-bottom: 1pt solid black;
}

li,
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.open-cart {
  position: fixed;

  top: 12pt;
  right: 12pt;

  z-index: 110;

  padding: 0 12pt;

  font-weight: bold;

  color: black;
  background-color: red;

  -webkit-tap-highlight-color: transparent;

  will-change: transform;
}

.open-cart:hover {
  cursor: pointer;
}

.open-cart span {
  color: white;
}

@media screen and (min-width: 375px) and (max-width: 768px) {

  .open-cart {
    top: 12pt;
    left: 12pt;
    right: 12pt;

    max-width: none;
  }

  .cart-container {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;

    top: 12pt;
    left: 12pt;
    right: 12pt;

    width: auto;
    max-width: none;

    height: auto;
    min-height: 50%;
  }

}