/**
 * Wellspring CBD — CRO Mini-Cart & Off-Canvas Cart Stylesheet (v3.5.123).
 *
 * Implements ConversionWise cart best practices:
 * - 3-column top USP row (90-Day Promise, Free Shipping, Lab Verified).
 * - Dynamic free shipping progress bar ($75 goal).
 * - Seamless item cards with stepper and instant delete.
 * - Pageable in-cart cross-sell ("Complete Your Routine").
 * - Prominent green checkout CTA with trust & pay marks directly underneath.
 */

/* ==========================================================================
   1. BLOCKSY #WOO-CART-PANEL OVERRIDES
   ========================================================================== */
#woo-cart-panel,
[data-header*="type-1"] #woo-cart-panel {
  --side-panel-width: 440px !important;
  --panel-backdrop: rgba(0, 0, 0, 0.65) !important;
  background-color: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  color: #192c27 !important;
}

#woo-cart-panel .ct-panel-inner {
  background-color: #ffffff !important;
  color: #192c27 !important;
  width: 440px !important;
  max-width: 440px !important;
  box-sizing: border-box !important;
}

@media (max-width: 480px) {
  #woo-cart-panel .ct-panel-inner {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

#woo-cart-panel .ct-panel-actions {
  padding: 14px 18px !important;
  border-bottom: 1px solid #e6ede8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ffffff !important;
}

#woo-cart-panel .ct-panel-heading {
  font-family: Georgia, serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #192c27 !important;
}

#woo-cart-panel .ct-toggle-close,
.ct-panel-actions .ct-toggle-close {
  color: #ffffff !important;
  background: #192c27 !important;
  background-color: #192c27 !important;
  border: 1.5px solid #192c27 !important;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(25, 44, 39, 0.22) !important;
}

#woo-cart-panel .ct-toggle-close svg,
#woo-cart-panel .ct-toggle-close svg path,
.ct-panel-actions .ct-toggle-close svg,
.ct-panel-actions .ct-toggle-close svg path {
  fill: #ffffff !important;
  color: #ffffff !important;
}

#woo-cart-panel .ct-toggle-close:hover,
.ct-panel-actions .ct-toggle-close:hover {
  background: #62b414 !important;
  border-color: #62b414 !important;
  transform: rotate(90deg) !important;
}

#woo-cart-panel .ct-toggle-close:hover svg,
#woo-cart-panel .ct-toggle-close:hover svg path,
.ct-panel-actions .ct-toggle-close:hover svg,
.ct-panel-actions .ct-toggle-close:hover svg path {
  fill: #ffffff !important;
  color: #ffffff !important;
}

#woo-cart-panel .ct-panel-content {
  padding: 0 !important;
  background: #ffffff !important;
}

#woo-cart-panel .ct-panel-content-inner {
  padding: 0 !important;
  background: #ffffff !important;
  height: 100% !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

#woo-cart-panel .widget_shopping_cart_content {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  width: 100% !important;
}

/* ==========================================================================
   2. MINI-CART WRAPPER & SECTIONS
   ========================================================================== */
.wsc_minicart_wrap {
  display: flex !important;
  flex-direction: column !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  color: #2d3834 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 14px 16px 20px !important;
  gap: 16px !important;
}

.wsc_minicart_wrap * {
  box-sizing: border-box !important;
}

/* ==========================================================================
   3. TOP USP ROW IN CART (Immediate Reassurance)
   ========================================================================== */
.wsc_mc_usp_row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  background: #f8faf9 !important;
  border: 1px solid #e6ede8 !important;
  border-radius: 12px !important;
  padding: 10px 4px !important;
  text-align: center !important;
}

.wsc_mc_usp_item {
  padding: 0 6px !important;
  border-right: 1px solid #e6ede8 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
}

.wsc_mc_usp_item:last-child {
  border-right: none !important;
}

.wsc_mc_usp_icon {
  font-size: 15px !important;
}

.wsc_mc_usp_title {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #192c27 !important;
  line-height: 1.15 !important;
}

.wsc_mc_usp_sub {
  font-size: 8px !important;
  color: #5a6963 !important;
  line-height: 1.2 !important;
}

/* ==========================================================================
   4. DYNAMIC FREE SHIPPING THRESHOLD BAR
   ========================================================================== */
.wsc_mc_shipbar_box {
  background: #fbfcfb !important;
  border: 1px solid #e6ede8 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
}

.wsc_mc_shipbar_text {
  font-size: 11.5px !important;
  color: #192c27 !important;
  margin: 0 0 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.wsc_mc_shipbar_track {
  width: 100% !important;
  height: 6px !important;
  background: #e6ede8 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.wsc_mc_shipbar_fill {
  height: 100% !important;
  background: linear-gradient(90deg, #62b414 0%, #7ecc20 100%) !important;
  border-radius: 4px !important;
  transition: width 0.3s ease !important;
}

/* ==========================================================================
   5. CART ITEMS LIST
   ========================================================================== */
.wsc_mc_items_list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.wsc_mc_item_card {
  display: flex !important;
  gap: 12px !important;
  background: #ffffff !important;
  border: 1px solid #e6ede8 !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  position: relative !important;
  box-shadow: 0 2px 6px rgba(25, 44, 39, 0.02) !important;
}

.wsc_mc_item_imgbox {
  width: 68px !important;
  height: 68px !important;
  border-radius: 10px !important;
  background: #f8faf9 !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #e6ede8 !important;
}

.wsc_mc_item_imgbox img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  mix-blend-mode: multiply !important;
  display: block !important;
}

.wsc_mc_item_details {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.wsc_mc_item_top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.wsc_mc_item_title {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #192c27 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.wsc_mc_item_remove {
  background: none !important;
  border: none !important;
  color: #9cb2a6 !important;
  cursor: pointer !important;
  font-size: 16px !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.wsc_mc_item_remove:hover {
  color: #d11a4a !important;
}

.wsc_mc_item_bot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 8px !important;
}

.wsc_mc_stepper {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #d5e0d9 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.wsc_mc_step_btn {
  width: 26px !important;
  height: 26px !important;
  background: none !important;
  border: none !important;
  color: #192c27 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s !important;
  padding: 0 !important;
}

.wsc_mc_step_btn:hover {
  background: #f4f7f5 !important;
}

.wsc_mc_step_qty {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #192c27 !important;
  width: 24px !important;
  text-align: center !important;
}

.wsc_mc_item_price {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #192c27 !important;
}

/* ==========================================================================
   6. PAGEABLE IN-CART UPSELL ("COMPLETE YOUR ROUTINE")
   ========================================================================== */
.wsc_mc_upsell_sec {
  background: linear-gradient(145deg, #192c27 0%, #0e1a17 100%) !important;
  border: 1px solid rgba(98, 180, 20, 0.28) !important;
  border-radius: 14px !important;
  padding: 12px 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(16, 28, 25, 0.18) !important;
}

.wsc_mc_upsell_hd {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 10px !important;
}

.wsc_mc_upsell_title {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.wsc_mc_upsell_nav {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
}

.wsc_mc_up_arr {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  padding: 0 0 2px 0 !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

.wsc_mc_up_arr:hover {
  background: #62b414 !important;
  color: #ffffff !important;
  border-color: #62b414 !important;
  transform: scale(1.12) !important;
  box-shadow: 0 3px 10px rgba(98, 180, 20, 0.5) !important;
}

.wsc_mc_up_arr:active {
  transform: scale(0.95) !important;
}

.wsc_mc_upsell_track {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding-bottom: 4px !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.wsc_mc_upsell_track::-webkit-scrollbar {
  display: none !important;
}

.wsc_mc_up_card {
  flex: 0 0 125px !important;
  min-width: 125px !important;
  max-width: 125px !important;
  scroll-snap-align: start !important;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 9px !important;
  padding: 7px 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

.wsc_mc_up_img {
  width: 38px !important;
  height: 38px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  background: #f8faf9 !important;
}

.wsc_mc_up_info {
  flex: 1 !important;
  min-width: 0 !important;
}

.wsc_mc_up_name {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #192c27 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.wsc_mc_up_price {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #192c27 !important;
  margin: 1px 0 3px !important;
  line-height: 1.1 !important;
}

.wsc_mc_up_btn {
  background: rgba(98, 180, 20, 0.12) !important;
  border: 1px solid rgba(98, 180, 20, 0.3) !important;
  color: #529810 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: all 0.15s ease !important;
  line-height: 1.2 !important;
}

.wsc_mc_up_btn:hover {
  background: #62b414 !important;
  color: #ffffff !important;
  border-color: #62b414 !important;
}
}

/* ==========================================================================
   7. STICKY FOOTER & PAY MARKS
   ========================================================================== */
.wsc_mc_footer {
  margin-top: auto !important;
  padding-top: 14px !important;
  border-top: 1px solid #e6ede8 !important;
}

.wsc_mc_subtotal_row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
}

.wsc_mc_sub_label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #192c27 !important;
}

.wsc_mc_sub_amount {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #192c27 !important;
}

.wsc_mc_checkout_btn {
  width: 100% !important;
  height: 52px !important;
  background: #62b414 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 6px 18px rgba(98, 180, 20, 0.35) !important;
  text-decoration: none !important;
}

.wsc_mc_checkout_btn:hover {
  background: #529810 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(98, 180, 20, 0.45) !important;
}

.wsc_mc_paymarks_row {
  margin-top: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.wsc_mc_paymarks_row .wsh_pay {
  height: 24px !important;
  padding: 0 9px !important;
  font-size: 10.5px !important;
  border-radius: 5px !important;
  box-shadow: 0 1px 2px rgba(25, 44, 39, 0.05) !important;
}

.wsc_mc_paymarks_row .wsh_pay.mc i {
  width: 12px !important;
  height: 12px !important;
}

.wsc_mc_paymarks_row .wsh_pay.mc i:nth-child(2) {
  margin-left: -5px !important;
}

.wsc_mc_ssl_lock {
  font-size: 10.5px !important;
  color: #5a6963 !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
  justify-content: center !important;
  margin-top: 8px !important;
}

/* ==========================================================================
   8. EMPTY CART STATE
   ========================================================================== */
.wsc_mc_empty_box {
  padding: 50px 20px 40px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.wsc_mc_empty_icon {
  font-size: 42px !important;
  margin-bottom: 12px !important;
}

.wsc_mc_empty_title {
  font-family: Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #192c27 !important;
  margin: 0 0 6px !important;
}

.wsc_mc_empty_sub {
  font-size: 13px !important;
  color: #5a6963 !important;
  margin: 0 0 20px !important;
  max-width: 260px !important;
  line-height: 1.45 !important;
}

.wsc_mc_empty_btn {
  background: #62b414 !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  padding: 11px 24px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(98, 180, 20, 0.3) !important;
}

.wsc_mc_empty_btn:hover {
  background: #529810 !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 480px) {
  #woo-cart-panel,
  [data-header*="type-1"] #woo-cart-panel {
    --side-panel-width: 100vw !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
}
