#bpp-theme-floating-cart {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 9998;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  font-family: inherit;
}

#bpp-theme-floating-cart.is-visible {
  display: flex;
}

#bpp-theme-floating-cart .bpp-theme-cart__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

#bpp-theme-floating-cart.is-open .bpp-theme-cart__overlay {
  opacity: 1;
  pointer-events: auto;
}

#bpp-theme-floating-cart .bpp-theme-cart__panel {
  width: min(92vw, 22rem);
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(2, 6, 23, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  color: #fff;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

#bpp-theme-floating-cart.is-open .bpp-theme-cart__panel {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#bpp-theme-floating-cart .bpp-theme-cart__panel-header,
#bpp-theme-floating-cart .bpp-theme-cart__panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
}

#bpp-theme-floating-cart .bpp-theme-cart__panel-footer {
  border-top: 1px solid rgba(30, 41, 59, 0.95);
  border-bottom: 0;
}

#bpp-theme-floating-cart .bpp-theme-cart__panel-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

#bpp-theme-floating-cart .bpp-theme-cart__panel-subtitle {
  margin: 0.2rem 0 0;
  font-size: 11px;
  color: #94a3b8;
}

#bpp-theme-floating-cart .bpp-theme-cart__close,
#bpp-theme-floating-cart .bpp-theme-cart__remove,
#bpp-theme-floating-cart .bpp-theme-cart__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

#bpp-theme-floating-cart .bpp-theme-cart__close {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

#bpp-theme-floating-cart .bpp-theme-cart__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#bpp-theme-floating-cart .bpp-theme-cart__items {
  max-height: 55vh;
  overflow-y: auto;
  padding: 0.75rem;
}

#bpp-theme-floating-cart .bpp-theme-cart__items::-webkit-scrollbar {
  width: 8px;
}

#bpp-theme-floating-cart .bpp-theme-cart__items::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.9);
  border-radius: 999px;
}

#bpp-theme-floating-cart .bpp-theme-cart__empty,
#bpp-theme-floating-cart .bpp-theme-cart__error {
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

#bpp-theme-floating-cart .bpp-theme-cart__empty {
  border: 1px dashed rgba(51, 65, 85, 0.9);
  color: #94a3b8;
}

#bpp-theme-floating-cart .bpp-theme-cart__error {
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.1);
  color: #fecdd3;
  margin-bottom: 0.75rem;
}

#bpp-theme-floating-cart .bpp-theme-cart__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
}

#bpp-theme-floating-cart .bpp-theme-cart__item + .bpp-theme-cart__item {
  margin-top: 0.5rem;
}

#bpp-theme-floating-cart .bpp-theme-cart__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.85rem;
  flex-shrink: 0;
}

#bpp-theme-floating-cart .bpp-theme-cart__item-copy {
  min-width: 0;
  flex: 1;
}

#bpp-theme-floating-cart .bpp-theme-cart__item-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#bpp-theme-floating-cart .bpp-theme-cart__item-price,
#bpp-theme-floating-cart .bpp-theme-cart__item-subtotal {
  margin: 0.25rem 0 0;
  font-size: 12px;
}

#bpp-theme-floating-cart .bpp-theme-cart__item-price {
  color: #94a3b8;
}

#bpp-theme-floating-cart .bpp-theme-cart__item-subtotal {
  color: #64748b;
}

#bpp-theme-floating-cart .bpp-theme-cart__remove {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  flex-shrink: 0;
}

#bpp-theme-floating-cart .bpp-theme-cart__remove:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
}

#bpp-theme-floating-cart .bpp-theme-cart__remove[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

#bpp-theme-floating-cart .bpp-theme-cart__footer-actions {
  display: flex;
  width: 100%;
  gap: 0.5rem;
}

#bpp-theme-floating-cart .bpp-theme-cart__link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border-radius: 0.9rem;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

#bpp-theme-floating-cart .bpp-theme-cart__link:hover {
  transform: translateY(-1px);
}

#bpp-theme-floating-cart .bpp-theme-cart__link--ghost {
  border: 1px solid rgba(51, 65, 85, 0.95);
  color: #e2e8f0;
  background: transparent;
}

#bpp-theme-floating-cart .bpp-theme-cart__link--primary {
  color: #fff;
  background: linear-gradient(135deg, #34d399, #059669);
}

#bpp-theme-floating-cart .bpp-theme-cart__fab-wrap {
  position: relative;
}

#bpp-theme-floating-cart .bpp-theme-cart__fab {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: rgba(2, 6, 23, 0.92);
  color: #86efac;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

#bpp-theme-floating-cart .bpp-theme-cart__fab:hover {
  transform: translateY(-2px);
}

#bpp-theme-floating-cart .bpp-theme-cart__fab.is-empty {
  border-color: rgba(71, 85, 105, 0.55);
  color: #94a3b8;
}

#bpp-theme-floating-cart .bpp-theme-cart__fab.is-bump {
  animation: bppThemeCartBounce 0.5s ease-out;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.45), 0 18px 55px rgba(0, 0, 0, 0.35);
}

#bpp-theme-floating-cart .bpp-theme-cart__badge,
#bpp-theme-floating-cart .bpp-theme-cart__zero,
#bpp-theme-floating-cart .bpp-theme-cart__plus {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}

#bpp-theme-floating-cart .bpp-theme-cart__badge {
  top: -4px;
  right: -4px;
  min-width: 24px;
  min-height: 24px;
  padding: 0 6px;
  background: #10b981;
  font-size: 11px;
}

#bpp-theme-floating-cart .bpp-theme-cart__zero {
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border: 2px dashed #64748b;
  color: #64748b;
  font-size: 10px;
}

#bpp-theme-floating-cart .bpp-theme-cart__plus {
  top: -34px;
  left: 50%;
  gap: 4px;
  padding: 0.3rem 0.5rem;
  background: #10b981;
  font-size: 11px;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

#bpp-theme-floating-cart .bpp-theme-cart__plus.is-visible {
  animation: bppThemeCartFloatUp 1.35s ease-out forwards;
}

#bpp-theme-floating-cart .bpp-theme-cart__icon {
  width: 20px;
  height: 20px;
}

#bpp-theme-floating-cart .bpp-theme-cart__icon--sm {
  width: 14px;
  height: 14px;
}

@keyframes bppThemeCartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

@keyframes bppThemeCartFloatUp {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-28px); }
}

@media (max-width: 767px) {
  #bpp-theme-floating-cart {
    right: 1rem;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5.5rem);
  }
}
