#bp-blockcart-wrapper.bp-shoppingcart-wrapper {
  display: inline-flex;
  vertical-align: middle;
  position: relative;
  z-index: auto;
  isolation: isolate;
}

#bp-blockcart-wrapper .blockcart {
  margin: 0;
  padding: 0;
  position: relative;
  z-index: auto;
}

#bp-blockcart-wrapper .header {
  line-height: 1;
}

#bp-blockcart-wrapper .bp-shoppingcart__link,
#bp-blockcart-wrapper .bp-shoppingcart__link:hover,
#bp-blockcart-wrapper .bp-shoppingcart__link:focus {
  align-items: center;
  color: inherit;
  display: inline-flex;
  line-height: 1;
  text-decoration: none;
}

#bp-blockcart-wrapper .bp-shoppingcart__icon-wrap {
  display: inline-flex;
  height: 1.75rem;
  line-height: 1;
  min-width: 1.75rem;
  overflow: visible;
  position: relative;
  z-index: 0;
}

#bp-blockcart-wrapper .bp-shoppingcart__icon.material-icons {
  color: currentColor;
  direction: ltr;
  display: inline-block;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: normal;
  height: 1.5rem;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  width: 1.5rem;
  word-wrap: normal;
}

#bp-blockcart-wrapper .bp-shoppingcart__count {
  align-items: center;
  background: var(--bs-primary, var(--brand-secondary, #0d6efd));
  border: 1px solid var(--bs-body-bg, #fff);
  border-radius: 999px;
  color: var(--bs-white, #fff);
  display: inline-flex;
  font-size: .625rem;
  font-weight: 700;
  height: 1rem;
  justify-content: center;
  line-height: 1;
  min-width: 1rem;
  padding: 0 .25rem;
  position: absolute;
  right: -.35rem;
  text-align: center;
  top: -.25rem;
  z-index: auto;
  pointer-events: none;
}

#bp-blockcart-wrapper .bp-shoppingcart__count--empty {
  display: none;
}

#bp-blockcart-wrapper.bp-shoppingcart--header .body {
  display: none !important;
}

#bp-blockcart-wrapper:not(.bp-shoppingcart--header) .blockcart .body {
  margin-top: .75rem;
}

#bp-blockcart-wrapper:not(.bp-shoppingcart--header) .bp-cart-products {
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0;
}

#bp-blockcart-wrapper:not(.bp-shoppingcart--header) .bp-cart-products li,
#bp-blockcart-wrapper:not(.bp-shoppingcart--header) .cart-subtotals > div,
#bp-blockcart-wrapper:not(.bp-shoppingcart--header) .cart-total {
  align-items: center;
  display: flex;
  gap: .5rem;
  justify-content: space-between;
}

/* Keep the cart icon inside the header stacking context so it does not cover menus, modals, or page content. */
#bp-blockcart-wrapper.bp-shoppingcart--header,
#bp-blockcart-wrapper.bp-shoppingcart--header .blockcart,
#bp-blockcart-wrapper.bp-shoppingcart--header .header,
#bp-blockcart-wrapper.bp-shoppingcart--header .bp-shoppingcart__link {
  z-index: auto !important;
}

/* Add-to-cart confirmation modal */
body.bp-cart-modal-open {
  overflow: hidden;
}

#bp-blockcart-modal.bp-cart-modal {
    backdrop-filter: blur(6px);
    align-items: center;
    background: rgb(147 147 147 / 45%);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    opacity: 0;
    padding: 1rem;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity .24s ease;
    z-index: 1030;
}

#bp-blockcart-modal.bp-cart-modal--visible {
  opacity: 1;
  pointer-events: auto;
}

#bp-blockcart-modal.bp-cart-modal--closing {
  pointer-events: none;
}

#bp-blockcart-modal .bp-cart-modal__dialog {
  background: var(--bs-body-bg, #fff);
  border-radius: .75rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .25);
  color: var(--bs-body-color, #222);
  max-width: 28rem;
  opacity: 0;
  position: relative;
  text-align: center;
  transform: translateY(1.25rem) scale(.96);
  transition: opacity .24s ease, transform .24s cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}

#bp-blockcart-modal.bp-cart-modal--visible .bp-cart-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#bp-blockcart-modal.bp-cart-modal--closing .bp-cart-modal__dialog {
  transform: translateY(.75rem) scale(.98);
}

#bp-blockcart-modal .bp-cart-modal__content {
  padding: 2rem 1.5rem 1.5rem;
}

#bp-blockcart-modal .bp-cart-modal__x {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.75rem;
  height: 2.5rem;
  justify-content: center;
  line-height: 1;
  opacity: .7;
  padding: 0;
  position: absolute;
  right: .5rem;
  top: .5rem;
  width: 2.5rem;
}

#bp-blockcart-modal .bp-cart-modal__x:hover,
#bp-blockcart-modal .bp-cart-modal__x:focus {
  opacity: 1;
}

#bp-blockcart-modal .bp-cart-modal__product-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .75rem;
}

#bp-blockcart-modal .bp-cart-modal__message {
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

#bp-blockcart-modal .bp-cart-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

#bp-blockcart-modal .bp-cart-modal__button,
#bp-blockcart-modal .bp-cart-modal__button:hover,
#bp-blockcart-modal .bp-cart-modal__button:focus {
  align-items: center;
  border-radius: .35rem;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 2.5rem;
  padding: .65rem 1rem;
  text-decoration: none;
}

#bp-blockcart-modal .bp-cart-modal__button--primary {
  background: var(--bs-primary, var(--brand-primary, #24b9d7));
  border: 1px solid var(--bs-primary, var(--brand-primary, #24b9d7));
  color: var(--bs-white, #fff);
}

#bp-blockcart-modal .bp-cart-modal__button--secondary {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}

html[dir="rtl"] #bp-blockcart-modal .bp-cart-modal__x,
body.lang-rtl #bp-blockcart-modal .bp-cart-modal__x {
  left: .5rem;
  right: auto;
}


@media (prefers-reduced-motion: reduce) {
  #bp-blockcart-modal.bp-cart-modal,
  #bp-blockcart-modal .bp-cart-modal__dialog {
    transition: none;
  }
}
