/* Cart panel base style */
.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 375px;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  border-left: 2px solid var(--website-color-3);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease-in-out;
  padding: var(--space-6);
}

.cart-panel.open {
  right: 0;
}

/* .cart-panel {
  position: fixed;
  right: var(--space-12);
  width: 375px;
  height: 75vh;

  top: 60%;
  transform: translateY(-50%);

  background: rgba(255, 255, 255, 1);
  border-left: 2px solid var(--website-color-3);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-panel.open {
  opacity: 1;
  visibility: visible;
} */


button#close-cart {
  cursor: pointer;
  color: black;
  background-color: transparent;
  font-size: 26px;
  border: none;
}

.cart-footer {
  background: rgb(255, 255, 255);
  /* border-top: 1px solid var(--website-color-1); */
}

.cart-header .cart-title {
  font-family: "Merriweather", serif;
  font-size: calc(1.125rem + 0.5vw);
  color: var(--website-color-1);
  font-weight: 700;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgb(255, 255, 255);
  padding: 0 0 var(--space-4);
  border-bottom: 1px solid var(--website-color-1);
}

.cart-content {
  flex-grow: 1;
  padding: var(--space-4) 0;
  overflow: auto;      /* or scroll */
  -ms-overflow-style: none;  /* IE + Edge */
  scrollbar-width: none;     /* Firefox */
}
.cart-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.cart-header p,
.cart-content p,
.cart-footer p {
  color: black;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cart-footer p {
  font-size: calc(1rem + 0.25vw);
  font-weight: 700;
}


.product-container-id {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(94, 94, 94, 0.2);
}

.item-inline-box {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: calc(0.67rem + 0.15vw);
}

.item-inline-box:last-child {
  margin-top: var(--space-4);
}


.item-inline-box .item-type {
  font-size: calc(0.47rem + 0.10vw);
  color: rgba(94, 94, 94, 1);
  text-transform: uppercase;
}

.item-inline-box .item-name,
.item-inline-box .item-id,
.item-inline-box .item-spec {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.item-inline-box .item-name {
  font-size: calc(0.825rem + 0.2vw);
  font-weight: 700;
}


.item-inline-box .item-id {
  font-size: calc(0.57rem + 0.10vw);
  color: rgba(94, 94, 94, 1);
}

.item-inline-box .item-spec {
  font-size: calc(0.67rem + 0.15vw);
  color: rgb(24, 24, 24);
}



.item-inline-box .item-price {
  flex: 1;
  display: inline;
  text-align: left;
}

.item-inline-box .item-qty {
  flex: 1;
  display: inline;
  text-align: right;
  font-size: 14px;
  color: black;
}

.item-inline-box .cart-item-price {
  font-size: calc(0.825rem + 0.2vw);
  font-weight: 500;
}

.item-inline-box .cart-product-price-element,
.item-inline-box .cart-product-price {
  font-weight: 500;
}

.item-inline-box small {
  font-size: calc(0.57rem + 0.10vw);
  color: rgba(94, 94, 94, 1);
}

.item-inline-box input {
  width: 65px;
  outline: none;
  border: 1px solid rgba(94, 94, 94, 0.4);
  padding: var(--space-1) var(--space-2);
}

.item-inline-box input:focus {
  outline: none;
  border: 1px solid rgb(0, 0, 0);
}

.item-inline-box a.remove-item-btn {
  display: block;
  font-size: calc(0.57rem + 0.10vw);
  color: rgba(94, 94, 94, 0.8);
  border: 1px solid rgba(94, 94, 94, 0.8);
  padding: 1px 4px 2px;
  border-radius: 3px;
  transition: all .4s ease-in-out;
}

.item-inline-box a.remove-item-btn:hover {
  color: rgb(0, 0, 0);
  border: 1px solid rgb(0, 0, 0);
}

.cart-footer #cart-total {
  text-align: right;
  margin: var(--space-6) 0 var(--space-6);
}

.cart-footer .cart-total-price {
  font-size: calc(1.125rem + 0.5vw);
  /* font-size: calc(1rem + 0.25vw); */
}

.cart-btn {
  width: 100%;
  height: 100%;
  text-align: center;
}

.cart-btn .btn {
  width: 100%;
  text-align: center;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--border-radius-medium);

}


#checkout section .flexbox-row .add-ons .add-item-btn,
#checkout section .flexbox-row .add-ons .package-btn,
#checkout section .flexbox-row .checkout-summary .checkout-payment-btn {
  width: 100%;
  display: block;
  text-align: center;
  margin-top: var(--space-2);
}



@media (max-width: 48rem) {
  .cart-panel {
    width: auto;
    max-width: 100%;
  }

  .cart-content {
    width: 100%;
  }
}

@media (max-width: 25rem) {
  .cart-panel {
    width: 100%;
    border-left: none;
    padding: var(--space-4)
  }
}