/* BeeConnect live quantity-stepper polish
   This file has a unique name so hosting/browser cache cannot keep showing the old +/- buttons. */

html body main .product-card .product-purchase-row {
  align-items: stretch !important;
  gap: 14px !important;
}

html body main .product-card .quantity-picker {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  min-width: 0 !important;
}

html body main .product-card .quantity-picker .variant-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  color: #5e4630 !important;
  font-size: 0.92rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

html body main .product-card .quantity-picker .qty-wrapper,
html body .product-quick-modal .qty-wrapper {
  position: relative !important;
  display: inline-grid !important;
  grid-template-columns: 44px 62px 44px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: max-content !important;
  max-width: 100% !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 4px !important;
  overflow: hidden !important;
  border: 1px solid rgba(215, 148, 13, 0.34) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fffdf8 0%, #fff1cc 100%) !important;
  box-shadow:
    0 12px 28px rgba(109, 72, 7, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

html body main .product-card .quantity-picker .qty-wrapper::before,
html body .product-quick-modal .qty-wrapper::before {
  content: "" !important;
  position: absolute !important;
  inset: 3px !important;
  z-index: 0 !important;
  pointer-events: none !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(255,255,255,0.78), rgba(255,240,196,0.45), rgba(255,255,255,0.78)) !important;
}

html body main .product-card .quantity-picker .qty-wrapper > *,
html body .product-quick-modal .qty-wrapper > * {
  position: relative !important;
  z-index: 1 !important;
}

html body main .product-card .quantity-picker .qty-wrapper:focus-within,
html body .product-quick-modal .qty-wrapper:focus-within {
  border-color: rgba(245, 166, 0, 0.82) !important;
  box-shadow:
    0 15px 30px rgba(109, 72, 7, 0.15),
    0 0 0 4px rgba(245, 166, 0, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}

html body main .product-card .quantity-picker .qty-btn,
html body main .product-card .quantity-picker button.qty-btn,
html body .product-quick-modal .qty-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 0 !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  transform: translateZ(0) !important;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, opacity 160ms ease !important;
}

html body main .product-card .quantity-picker .qty-btn::before,
html body .product-quick-modal .qty-btn::before {
  display: block !important;
  font-size: 1.38rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

html body main .product-card .quantity-picker .minus-btn,
html body .product-quick-modal .minus-btn {
  color: #8a5a08 !important;
  background: linear-gradient(180deg, #fffaf0 0%, #ffe6a6 100%) !important;
  box-shadow:
    0 6px 14px rgba(111, 73, 6, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

html body main .product-card .quantity-picker .minus-btn::before,
html body .product-quick-modal .minus-btn::before {
  content: "−" !important;
}

html body main .product-card .quantity-picker .plus-btn,
html body .product-quick-modal .plus-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ffc83d 0%, #f0a000 48%, #c97900 100%) !important;
  box-shadow:
    0 9px 18px rgba(222, 138, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

html body main .product-card .quantity-picker .plus-btn::before,
html body .product-quick-modal .plus-btn::before {
  content: "+" !important;
}

html body main .product-card .quantity-picker .qty-btn:hover:not(:disabled),
html body main .product-card .quantity-picker .qty-btn:focus-visible:not(:disabled),
html body .product-quick-modal .qty-btn:hover:not(:disabled),
html body .product-quick-modal .qty-btn:focus-visible:not(:disabled) {
  transform: translateY(-1px) !important;
  filter: saturate(1.04) !important;
}

html body main .product-card .quantity-picker .plus-btn:hover:not(:disabled),
html body main .product-card .quantity-picker .plus-btn:focus-visible:not(:disabled),
html body .product-quick-modal .plus-btn:hover:not(:disabled),
html body .product-quick-modal .plus-btn:focus-visible:not(:disabled) {
  box-shadow:
    0 12px 24px rgba(222, 138, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.46) !important;
}

html body main .product-card .quantity-picker .minus-btn:hover:not(:disabled),
html body main .product-card .quantity-picker .minus-btn:focus-visible:not(:disabled),
html body .product-quick-modal .minus-btn:hover:not(:disabled),
html body .product-quick-modal .minus-btn:focus-visible:not(:disabled) {
  box-shadow:
    0 10px 20px rgba(111, 73, 6, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.97) !important;
}

html body main .product-card .quantity-picker .qty-btn:active:not(:disabled),
html body .product-quick-modal .qty-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.97) !important;
}

html body main .product-card .quantity-picker .qty-input,
html body main .product-card .quantity-picker input.qty-input[type="number"],
html body .product-quick-modal .qty-input {
  appearance: textfield !important;
  -moz-appearance: textfield !important;
  display: block !important;
  width: 62px !important;
  height: 42px !important;
  min-width: 62px !important;
  min-height: 42px !important;
  max-width: 62px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  outline: none !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    inset 0 0 0 1px rgba(232, 205, 153, 0.85),
    inset 0 2px 8px rgba(99, 64, 6, 0.06) !important;
  color: #2d2316 !important;
  font-family: inherit !important;
  font-size: 1.02rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
  line-height: 42px !important;
  text-align: center !important;
}

html body main .product-card .quantity-picker .qty-input::-webkit-outer-spin-button,
html body main .product-card .quantity-picker .qty-input::-webkit-inner-spin-button,
html body .product-quick-modal .qty-input::-webkit-outer-spin-button,
html body .product-quick-modal .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

html body main .product-card .quantity-picker .qty-wrapper.is-at-min .minus-btn,
html body main .product-card .quantity-picker .qty-wrapper.is-at-max .plus-btn,
html body .product-quick-modal .qty-wrapper.is-at-min .minus-btn,
html body .product-quick-modal .qty-wrapper.is-at-max .plus-btn {
  opacity: 0.45 !important;
  filter: grayscale(0.15) !important;
}

html body main .product-card .quantity-picker .qty-btn:disabled,
html body main .product-card .quantity-picker .qty-input:disabled,
html body .product-quick-modal .qty-btn:disabled,
html body .product-quick-modal .qty-input:disabled {
  cursor: not-allowed !important;
  opacity: 0.48 !important;
}

html body main .product-card .quantity-picker .qty-wrapper.qty-just-changed .qty-input,
html body .product-quick-modal .qty-wrapper.qty-just-changed .qty-input {
  animation: beeconnectQtyPop 260ms ease-out !important;
}

@keyframes beeconnectQtyPop {
  0% { transform: scale(1); }
  42% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@media (max-width: 720px) {
  html body main .product-card .product-purchase-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 13px !important;
  }

  html body main .product-card .quantity-picker .qty-wrapper {
    grid-template-columns: 48px minmax(64px, 1fr) 48px !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 5px !important;
  }

  html body main .product-card .quantity-picker .qty-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
  }

  html body main .product-card .quantity-picker .qty-input {
    width: 100% !important;
    max-width: none !important;
    height: 46px !important;
    min-height: 46px !important;
    line-height: 46px !important;
    font-size: 1.08rem !important;
  }

  html body main .product-card .product-btn-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
}

@media (min-width: 721px) {
  html body main .product-card .quantity-picker {
    flex: 0 0 auto !important;
  }

  html body main .product-card .product-btn-group {
    min-width: 150px !important;
  }
}
