product-float-buy-buttons {
  position: fixed !important;
  inset-inline-start: 0 !important;
  inset-block-end: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease !important;
  will-change: transform;
}

/* Collapsed state: slides down into screen bottom, leaving a sleek 38px bar visible */
product-float-buy-buttons.zv-collapsed,
product-float-buy-buttons.zv-scroll-hidden {
  transform: translateY(calc(100% - 38px)) !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
}

/* When collapsed: the collapsed bar container and its toggle tab receive touches */
product-float-buy-buttons.zv-collapsed,
product-float-buy-buttons.zv-scroll-hidden {
  pointer-events: auto !important;
}

/* Disable inner product options/buttons when collapsed so they don't capture touch */
product-float-buy-buttons.zv-collapsed .product-form,
product-float-buy-buttons.zv-scroll-hidden .product-form {
  pointer-events: none !important;
}

/* The toggle tab and ALL its children MUST have pointer-events: auto and user-select: none */
.zv-float-toggle-tab,
.zv-float-toggle-tab * {
  pointer-events: auto !important;
}

/* Toggle Pill Tab at top-center of the floating bar */
.zv-float-toggle-tab {
  position: absolute !important;
  top: -26px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  height: 27px !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-bottom: none !important;
  border-radius: 14px 14px 0 0 !important;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  color: #374151 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  outline: none !important;
  z-index: 100001 !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  transition: all 0.25s ease !important;
}

.zv-float-toggle-tab:active {
  background: #f3f4f6 !important;
  transform: translateX(-50%) scale(0.95) !important;
}

.zv-toggle-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  pointer-events: none;
}

.zv-toggle-arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  pointer-events: none;
}

.zv-toggle-label {
  pointer-events: none;
}

/* Collapsed state styling: prominent high-contrast badge */
product-float-buy-buttons.zv-collapsed .zv-float-toggle-tab,
product-float-buy-buttons.zv-scroll-hidden .zv-float-toggle-tab {
  top: -34px !important;
  height: 35px !important;
  background: #111827 !important;
  color: #ffffff !important;
  border: 1px solid #111827 !important;
  border-bottom: none !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.3) !important;
  padding: 0 20px !important;
  font-size: 13px !important;
}

product-float-buy-buttons.zv-collapsed .zv-toggle-arrow,
product-float-buy-buttons.zv-scroll-hidden .zv-toggle-arrow {
  stroke: #ffffff !important;
}

@media (max-width: 767px) {
  body:has(product-float-buy-buttons.zv-collapsed) #zv-floating-cart-fab,
  body:has(product-float-buy-buttons.zv-scroll-hidden) #zv-floating-cart-fab,
  body:has(product-float-buy-buttons:not(.show)) #zv-floating-cart-fab {
    bottom: 24px !important;
  }
}
