/* --- Zovarin Mobile Floating Buy Bar: Double Collapse Indicators & Luxury UI --- */
product-float-buy-buttons {
  position: fixed !important;
  inset-inline-start: 0 !important;
  inset-block-end: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
  background: #ffffff !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12) !important;
  padding: 10px 16px max(12px, env(safe-area-inset-bottom, 12px)) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.25s ease !important;
  will-change: transform;
}

/* Flex Row inside the floating bar: [ ⌄ 收起折叠按钮 ] + [ ADD TO CART 大牌药丸按键 ] */
product-float-buy-buttons .product-form__buttons {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Dedicated Inline Circular Collapse Button (收起标识 1) */
.zv-inline-collapse-btn {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 50% !important;
  background: #f3f4f6 !important;
  border: 1.5px solid #d1d5db !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #111827 !important;
  flex-shrink: 0 !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.zv-inline-collapse-btn:active {
  background: #e5e7eb !important;
  transform: scale(0.92) !important;
}

.zv-inline-collapse-btn svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #111827 !important;
  stroke-width: 2.8 !important;
  pointer-events: none !important;
}

/* Beautiful Rounded Pill Add to Cart Button (NO UGLY RECTANGULAR BOX!) */
product-float-buy-buttons .product-form__submit {
  flex: 1 !important;
  background: #111827 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  height: 48px !important;
  min-height: 48px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

product-float-buy-buttons .product-form__submit:active {
  transform: scale(0.98) !important;
  opacity: 0.92 !important;
}

product-float-buy-buttons .product-form__submit span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #ffffff !important;
  font-family: inherit !important;
}

/* Collapsed state: slides 100% down off screen */
/* 0% chopped button, 0% ugly box visible! */
product-float-buy-buttons.zv-collapsed,
product-float-buy-buttons.zv-scroll-hidden {
  transform: translateY(100%) !important;
  box-shadow: none !important;
  border-top-color: transparent !important;
  pointer-events: none !important;
}

/* The Top Toggle Tab Pill (收起标识 2: 高对比度深色胶囊拉手) */
.zv-float-toggle-tab {
  position: absolute !important;
  top: -32px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  height: 32px !important;
  padding: 0 18px !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 -4px 14px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  font-size: 12px !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;
  pointer-events: auto !important;
  transition: all 0.25s ease !important;
}

.zv-float-toggle-tab:active {
  background: #1f2937 !important;
  transform: translateX(-50%) scale(0.96) !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: #ffffff;
  stroke-width: 2.8;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  pointer-events: none;
}

.zv-toggle-label {
  pointer-events: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Collapsed State: Bold Obsidian Black Badge Floating at the Bottom */
product-float-buy-buttons.zv-collapsed .zv-float-toggle-tab,
product-float-buy-buttons.zv-scroll-hidden .zv-float-toggle-tab {
  top: -46px !important;
  height: 38px !important;
  background: #111827 !important;
  color: #ffffff !important;
  border: 1.5px solid #1f2937 !important;
  border-bottom: none !important;
  border-radius: 20px 20px 0 0 !important;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.3) !important;
  padding: 0 22px !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;
  }
}
