/**
 * Apex Side Cart - Nitro Pro Edition
 * High-conversion modern floating drawer for WooCommerce
 * Compatible with Woodmart, Elementor, and all modern themes.
 */

/* Keep these variables inside the plugin; the active theme never receives them. */
#apex-side-cart-wrapper,
#apex-cart-floating-btn {
  --apex-blue-50: #eff6ff;
  --apex-blue-100: #dbeafe;
  --apex-blue-500: #3b82f6;
  --apex-blue-600: #2563eb;
  --apex-blue-700: #1d4ed8;
  --apex-emerald-50: #ecfdf5;
  --apex-emerald-100: #d1fae5;
  --apex-emerald-600: #059669;
  --apex-emerald-700: #047857;
  --apex-slate-50: #f8fafc;
  --apex-slate-100: #f1f5f9;
  --apex-slate-200: #e2e8f0;
  --apex-slate-300: #cbd5e1;
  --apex-slate-400: #94a3b8;
  --apex-slate-500: #64748b;
  --apex-slate-600: #475569;
  --apex-slate-700: #334155;
  --apex-slate-800: #1e293b;
  --apex-slate-900: #0f172a;
  --apex-pink-600: #db2777;
  --apex-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base resets for drawer scope */
.apex-cart-wrapper,
.apex-cart-wrapper * {
  box-sizing: border-box;
}

/* ============================================================
   Wrapper & Backdrop
   ============================================================ */
.apex-cart-wrapper {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  justify-content: flex-end;
  padding: 8px;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  font-family: var(--apex-font);
  transition: visibility 0.3s ease;
}

@media (min-width: 640px) {
  .apex-cart-wrapper {
    padding: 16px;
  }
}

@media (min-width: 768px) {
  .apex-cart-wrapper {
    padding: 24px;
  }
}

.apex-cart-wrapper.is-open {
  visibility: visible;
  pointer-events: auto;
}

.apex-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.apex-cart-wrapper.is-open .apex-cart-backdrop {
  opacity: 1;
}

/* ============================================================
   Floating Drawer Card
   ============================================================ */
.apex-cart-drawer {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 512px; /* max-w-lg */
  height: 100%;
  max-height: 96vh;
  margin: auto 0;
  background: #ffffff;
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--apex-slate-100);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(110%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.apex-cart-wrapper.is-open .apex-cart-drawer {
  transform: translateX(0);
}

.apex-cart-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   Header
   ============================================================ */
.apex-cart-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--apex-slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
}

.apex-cart-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.apex-cart-header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--apex-slate-900);
  letter-spacing: -0.02em;
  margin: 0;
}

.apex-cart-header-badge {
  background: var(--apex-blue-50);
  color: var(--apex-blue-600);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid var(--apex-blue-100);
}

.apex-cart-close-btn {
  cursor: pointer;
  transition: all 0.2s ease;
}

.apex-cart-close-btn:hover {
  transform: rotate(90deg);
}

/* Keep utility controls neutral when a theme styles every button. */
#apex-side-cart-wrapper .apex-cart-close-btn,
#apex-side-cart-wrapper .apex-item-delete-btn,
#apex-side-cart-wrapper .apex-qty-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
}

#apex-side-cart-wrapper .apex-cart-close-btn {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  background: var(--apex-slate-100) !important;
  border: 0 !important;
  border-radius: 9999px !important;
  color: var(--apex-slate-500) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#apex-side-cart-wrapper .apex-cart-close-btn:hover,
#apex-side-cart-wrapper .apex-cart-close-btn:focus-visible {
  background: var(--apex-slate-200) !important;
  color: var(--apex-slate-800) !important;
}

#apex-side-cart-wrapper .apex-cart-close-btn svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  pointer-events: none;
}

/* ============================================================
   3-Step Milestone Free Shipping Bar
   ============================================================ */
.apex-shipping-milestone-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--apex-slate-100);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.apex-shipping-status-msg {
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .apex-shipping-status-msg {
    text-align: left;
  }
}

.apex-shipping-status-msg .target {
  font-weight: 700;
  color: var(--apex-slate-800);
}

.apex-milestone-track-container {
  position: relative;
  display: flex;
  justify-content: space-between;
}

.apex-milestone-track-bg {
  position: absolute;
  transform: translateY(-50%);
  border-radius: 9999px;
  z-index: 1;
}

.apex-milestone-track-fill {
  position: absolute;
  left: 32px;
  top: 16px;
  transform: translateY(-50%);
  height: 4px;
  background: var(--apex-emerald-600);
  border-radius: 9999px;
  z-index: 2;
  transition: width 0.4s ease;
  max-width: calc(100% - 64px);
}

.apex-milestone-step {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.apex-milestone-icon-wrap {
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.apex-milestone-step.is-locked .apex-milestone-icon-wrap {
  border: 2px solid var(--apex-slate-300);
}

.apex-milestone-step.is-unlocked .apex-milestone-icon-wrap {
  background: var(--apex-emerald-600);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--apex-emerald-50), 0 4px 6px -1px rgba(5, 150, 105, 0.3);
}

/* Four milestone labels fit cleanly in the drawer. */

.apex-milestone-step.is-current .apex-milestone-label {
  font-weight: 700;
}

/* ============================================================
   Scrollable Body
   ============================================================ */
.apex-cart-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Custom Minimalist Scrollbar */
.apex-cart-body::-webkit-scrollbar {
  width: 5px;
}
.apex-cart-body::-webkit-scrollbar-track {
  background: transparent;
}
.apex-cart-body::-webkit-scrollbar-thumb {
  background: var(--apex-slate-300);
  border-radius: 20px;
}
.apex-cart-body::-webkit-scrollbar-thumb:hover {
  background: var(--apex-slate-400);
}

/* ============================================================
   Product Items List
   ============================================================ */
.apex-products-list {
  display: flex;
  flex-direction: column;
}

.apex-cart-item {
  background: #ffffff;
  border: 1px solid var(--apex-slate-100);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  position: relative;
  transition: all 0.2s ease;
}

.apex-cart-item:hover {
  border-color: var(--apex-slate-200);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
}

.apex-item-thumb-col {
  position: relative;
  background: var(--apex-slate-50);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--apex-slate-100);
  overflow: hidden;
}

.apex-item-thumb-col img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.apex-item-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  line-height: 1.1;
  text-transform: uppercase;
  z-index: 2;
}

.apex-badge-oferta {
  background: #10b981;
  color: #ffffff;
}

.apex-item-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.apex-item-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.apex-item-meta {
  min-width: 0;
}

.apex-item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.apex-item-title {
  font-weight: 700;
  color: var(--apex-slate-900);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.apex-verified-icon {
  width: 14px;
  height: 14px;
  color: var(--apex-blue-500);
  flex-shrink: 0;
}

.apex-item-desc {
  font-size: 12px;
  color: var(--apex-slate-500);
  font-weight: 500;
  margin: 2px 0 0;
}

.apex-item-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.apex-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.2;
}

.apex-tag-stock {
  background: var(--apex-emerald-50);
  color: var(--apex-emerald-700);
  border: 1px solid var(--apex-emerald-100);
}

.apex-tag-formula {
  background: var(--apex-blue-50);
  color: var(--apex-blue-700);
}

.apex-item-delete-btn {
  cursor: pointer;
  transition: all 0.15s ease;
}

#apex-side-cart-wrapper .apex-item-delete-btn {
  width: 28px !important;
  height: 28px !important;
  padding: 4px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: var(--apex-slate-400) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#apex-side-cart-wrapper .apex-item-delete-btn:hover,
#apex-side-cart-wrapper .apex-item-delete-btn:focus-visible {
  background: #fef2f2 !important;
  color: #ef4444 !important;
}

#apex-side-cart-wrapper .apex-item-delete-btn svg {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  pointer-events: none;
}

.apex-item-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--apex-slate-50);
}

.apex-quantity-pill {
  display: flex;
  align-items: center;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.apex-qty-btn {
  cursor: pointer;
  transition: all 0.15s ease;
}

.apex-qty-number {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

#apex-side-cart-wrapper .apex-quantity-pill {
  height: 30px;
  padding: 2px !important;
  background: var(--apex-slate-50) !important;
  border: 1px solid var(--apex-slate-200) !important;
  border-radius: 8px !important;
}

#apex-side-cart-wrapper .apex-qty-btn {
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: var(--apex-slate-500) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#apex-side-cart-wrapper .apex-qty-btn:hover,
#apex-side-cart-wrapper .apex-qty-btn:focus-visible {
  background: #ffffff !important;
  color: var(--apex-slate-900) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

#apex-side-cart-wrapper .apex-qty-number {
  width: 28px !important;
  color: var(--apex-slate-800) !important;
  line-height: 24px !important;
}

.apex-item-price-box {
  text-align: right;
}

.apex-item-old-price {
  font-size: 11px;
  color: var(--apex-slate-400);
  text-decoration: line-through;
  display: block;
  line-height: 1.1;
}

.apex-item-final-price {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.apex-item-unit-note {
  font-size: 10px;
  color: var(--apex-slate-400);
  display: block;
  line-height: 1.1;
}

.apex-item-fav-row {
  text-align: right;
}

.apex-item-fav-btn {
  cursor: pointer;
  transition: color 0.15s ease;
}

/* ============================================================
   Coupon Accordion Box
   ============================================================ */
.apex-coupon-box {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
}

.apex-coupon-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--apex-slate-800);
}

.apex-coupon-form-row {
  display: flex;
}

.apex-coupon-input {
  flex: 1;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--apex-slate-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apex-coupon-input:focus {
  border-color: var(--apex-blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.apex-coupon-submit-btn {
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

/* ============================================================
   Cross-Sell / Recommendations Card Grid
   ============================================================ */
.apex-upsells-card {
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.apex-upsells-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apex-upsells-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.apex-upsells-title {
  font-weight: 700;
  color: var(--apex-slate-900);
  margin: 0;
  letter-spacing: -0.01em;
}

@media (min-width: 480px) {
  .apex-upsells-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.apex-upsell-item {
  background: #ffffff;
  border: 1px solid var(--apex-slate-100);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.apex-upsell-item:hover {
  border-color: var(--apex-slate-200);
  transform: translateY(-1px);
}

.apex-upsell-thumb {
  object-fit: contain;
  background: var(--apex-slate-50);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--apex-slate-100);
  flex-shrink: 0;
}

.apex-upsell-details {
  flex: 1;
}

.apex-upsell-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 2px;
}

.apex-upsell-tag-blue {
  background: var(--apex-blue-50);
  color: var(--apex-blue-700);
}

.apex-upsell-tag-green {
  background: var(--apex-emerald-50);
  color: var(--apex-emerald-700);
}

.apex-upsell-title {
  font-weight: 700;
  color: var(--apex-slate-900);
  margin: 0;
  text-overflow: ellipsis;
}

.apex-upsell-price {
  font-weight: 900;
  display: block;
}

.apex-upsell-btn {
  padding-top: 8px;
  border-top: 1px solid var(--apex-slate-50);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.apex-upsell-btn.is-emerald {
  background: var(--apex-emerald-600);
}

.apex-upsell-btn.is-emerald:hover {
  background: var(--apex-emerald-700);
}

/* ============================================================
   Footer: Summary & Checkout
   ============================================================ */
.apex-cart-footer {
  padding: 20px 24px;
  background: #ffffff;
  border-top: 1px solid var(--apex-slate-100);
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.apex-totals-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 500;
}

.apex-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--apex-slate-500);
}

.apex-total-row strong {
  font-weight: 600;
}

.apex-shipping-badge-free {
  font-weight: 700;
  color: var(--apex-emerald-600);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.apex-badge-national {
  font-size: 10px;
  background: var(--apex-slate-100);
  color: var(--apex-slate-500);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.apex-final-total-row {
  padding-top: 8px;
  border-top: 1px solid var(--apex-slate-100);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.apex-total-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--apex-slate-900);
  display: block;
  line-height: 1.1;
}

.apex-tax-notice {
  font-size: 10px;
  color: var(--apex-slate-400);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

.apex-total-amount {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Primary CTA Button */
.apex-checkout-cta-btn {
  width: 100%;
  background: var(--apex-blue-600);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.apex-checkout-cta-btn:hover {
  box-shadow: 0 12px 30px -5px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.apex-checkout-cta-btn:active {
  transform: scale(0.99);
}

.apex-lock-icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

/* Payment Methods & Trust Badges */
.apex-trust-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--apex-slate-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.apex-trust-title {
  font-size: 10px;
  color: var(--apex-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.apex-payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0.85;
}

.apex-payment-methods-image {
  width: min(100%, 310px);
  max-height: 34px;
}

.apex-ssl-guarantee {
  font-size: 10px;
  color: var(--apex-slate-400);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.apex-ssl-shield-icon {
  width: 12px;
  height: 12px;
  color: var(--apex-emerald-600);
  flex-shrink: 0;
}

/* ============================================================
   Store-safe visual overrides and compact recommendations
   ============================================================ */
#apex-side-cart-wrapper .apex-item-final-price,
#apex-side-cart-wrapper .apex-item-final-price .woocommerce-Price-amount,
#apex-side-cart-wrapper .apex-total-row strong,
#apex-side-cart-wrapper .apex-total-row strong .woocommerce-Price-amount,
#apex-side-cart-wrapper .apex-total-row > span:last-child:not(.apex-shipping-badge-free) {
  color: #111827 !important;
}

#apex-side-cart-wrapper .apex-total-amount,
#apex-side-cart-wrapper .apex-total-amount .woocommerce-Price-amount {
  color: #590098 !important;
}

#apex-side-cart-wrapper .apex-discount-row span,
#apex-side-cart-wrapper .apex-discount-row strong,
#apex-side-cart-wrapper .apex-discount-row .woocommerce-Price-amount {
  color: #15803d !important;
}

/* Gift unlocked by the 2+ pre-workout promotion. */
#apex-side-cart-wrapper .apex-cart-item--gift {
  order: 2;
  min-height: 76px;
  padding: 10px 42px 10px 12px !important;
  background: #fffdf0 !important;
  border: 1px dashed #f4c84a !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

/* Gift cards are always grouped below paid items, even if WooCommerce added
   them in the middle of the cart. */
#apex-side-cart-wrapper .apex-cart-item--gift-first {
  margin-top: 28px;
}

#apex-side-cart-wrapper .apex-cart-item--gift-first::before {
  content: 'REGALOS DESBLOQUEADOS  🎁';
  position: absolute;
  top: -24px;
  left: 0;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 10px;
  border-radius: 999px;
  background: #171923;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
}

#apex-side-cart-wrapper .apex-cart-item--gift .apex-item-thumb-col {
  background: #fff !important;
  border-color: #f8e7a3 !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  padding: 3px !important;
}

#apex-side-cart-wrapper .apex-cart-item--gift .apex-item-thumb-col img {
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
}

#apex-side-cart-wrapper .apex-cart-item--gift .apex-item-title::before {
  content: none;
}

#apex-side-cart-wrapper .apex-cart-item--gift .apex-item-desc {
  color: #6b7280 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

#apex-side-cart-wrapper .apex-cart-item--gift .apex-item-tags-row {
  display: flex;
  margin-top: 5px;
  gap: 4px;
}

#apex-side-cart-wrapper .apex-cart-item--gift .apex-tag-stock,
#apex-side-cart-wrapper .apex-cart-item--gift .apex-tag-formula {
  display: inline-flex;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid #f7d76c;
  border-radius: 999px;
  background: #fff8cb;
  color: #705b06;
  font-size: 9px;
  font-weight: 800;
}

#apex-side-cart-wrapper .apex-cart-item--gift .apex-item-title {
  font-size: 12px !important;
  line-height: 1.18 !important;
  color: #3f3f46 !important;
}

#apex-side-cart-wrapper .apex-cart-item--gift .apex-item-bottom-row {
  position: absolute;
  right: 12px;
  bottom: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

#apex-side-cart-wrapper .apex-gift-locked-qty {
  display: none;
}

#apex-side-cart-wrapper .apex-gift-price {
  display: block;
  color: #171923 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .02em;
}

#apex-side-cart-wrapper .apex-discount-row {
  position: relative;
  margin: 1px -4px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #f0fdf4;
  font-weight: 700;
}

/* A quiet text action, matching the product price rather than a large button. */
#apex-side-cart-wrapper .apex-item-fav-btn {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: #ec4899 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

#apex-side-cart-wrapper .apex-item-fav-btn:hover,
#apex-side-cart-wrapper .apex-item-fav-btn.is-saved {
  color: #be185d !important;
  text-decoration: underline;
}

/* Coupon: one compact field with a clear secondary action. */
#apex-side-cart-wrapper .apex-coupon-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

#apex-side-cart-wrapper .apex-coupon-form-row {
  gap: 6px;
}

#apex-side-cart-wrapper .apex-coupon-input {
  min-height: 38px !important;
  padding: 8px 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

#apex-side-cart-wrapper .apex-coupon-submit-btn {
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid #1e40af !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #1e40af !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

#apex-side-cart-wrapper .apex-coupon-submit-btn:hover,
#apex-side-cart-wrapper .apex-coupon-submit-btn:focus-visible {
  background: #1e40af !important;
  color: #ffffff !important;
}

/* Horizontal marquee: smaller cards, optional touch scrolling, no oversized CTA. */
#apex-side-cart-wrapper .apex-upsells-card {
  padding: 12px !important;
  background: linear-gradient(135deg, #f8fafc, #eff6ff) !important;
}

#apex-side-cart-wrapper .apex-upsells-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 1px 7px;
  scroll-snap-type: x mandatory;
}

#apex-side-cart-wrapper .apex-upsells-grid {
  grid-template-columns: none !important;
}

#apex-side-cart-wrapper .apex-upsell-item {
  border-radius: 10px !important;
  scroll-snap-align: start;
}

#apex-side-cart-wrapper .apex-upsell-title {
  font-size: 11px !important;
}

#apex-side-cart-wrapper .apex-upsell-price,
#apex-side-cart-wrapper .apex-upsell-price .woocommerce-Price-amount {
  color: #111827 !important;
  font-size: 11px !important;
}

#apex-side-cart-wrapper .apex-upsell-btn {
  padding: 5px 10px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 10px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#apex-side-cart-wrapper .apex-upsell-btn:hover {
  background: #2563eb !important;
}

/* The checkout CTA keeps a blue/navy hover instead of a theme red. */
#apex-side-cart-wrapper .apex-checkout-cta-btn:hover,
#apex-side-cart-wrapper .apex-checkout-cta-btn:focus-visible {
  background: #1e40af !important;
  color: #ffffff !important;
  border-color: #1e40af !important;
}

/* Free Gift Items (PowerMuscle 2+ promo) */
.apex-cart-item--gift {
  border-color: #bbf7d0 !important;
}

.apex-gift-locked-qty {
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #a7f3d0;
  align-items: center;
}

/* Discount row in totals */
.apex-discount-row {
  color: #059669 !important;
}

/* Upsells Marquee / Grid Container */
.apex-upsells-marquee {
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Payment Methods Banner Image */
.apex-payment-methods-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 6px auto 0;
  object-fit: contain;
  border-radius: 6px;
}

/* ============================================================
   Floating Cart Launcher (Solved the "siempre está fijo" issue)
   ============================================================ */
.apex-cart-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  width: 58px;
  height: 58px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--apex-blue-600) 0%, var(--apex-blue-700) 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -3px rgba(37, 99, 235, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* WoodMart applies `position: relative` to generic buttons.  The launcher
   must stay attached to the viewport, independently of theme button rules. */
#apex-cart-floating-btn.apex-cart-floating-btn {
  position: fixed !important;
  width: 58px !important;
  height: 58px !important;
  right: 24px !important;
  bottom: 24px !important;
  left: auto !important;
  top: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #590098 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(89, 0, 152, 0.38) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  z-index: 999998 !important;
}

#apex-cart-floating-btn.apex-cart-floating-btn:hover {
  background: #43006f !important;
}

@media (max-width: 640px) {
  #apex-cart-floating-btn.apex-cart-floating-btn {
    right: 16px !important;
    bottom: 16px !important;
  }
}

.apex-cart-floating-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 30px -3px rgba(37, 99, 235, 0.55);
}

.apex-cart-floating-btn:active {
  transform: scale(0.96);
}

.apex-cart-floating-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 9999px;
  text-align: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Compact product cards leave room for useful recommendations. */
#apex-side-cart-wrapper .apex-cart-body { gap: 12px; padding: 12px 20px; }
#apex-side-cart-wrapper .apex-products-list { gap: 9px; }
#apex-side-cart-wrapper .apex-cart-item { padding: 11px; gap: 11px; border-radius: 14px; }
#apex-side-cart-wrapper .apex-item-thumb-col { width: 68px; height: 68px; padding: 5px; }
#apex-side-cart-wrapper .apex-item-title { font-size: 13px; }
#apex-side-cart-wrapper .apex-item-desc { margin-top: 1px; line-height: 1.25; }

/* Two products are visible at once; more are available by swiping. */
#apex-side-cart-wrapper .apex-upsells-card { gap: 9px; border-radius: 14px; }
#apex-side-cart-wrapper .apex-upsells-title { font-size: 12px; }
#apex-side-cart-wrapper .apex-upsells-grid {
  display: grid !important;
  grid-auto-flow: column;
  width: 100% !important;
  gap: 8px !important;
}
#apex-side-cart-wrapper .apex-upsell-item { width: auto; padding: 9px !important; }
#apex-side-cart-wrapper .apex-upsell-btn { width: 100% !important; min-height: 29px !important; align-self: stretch; justify-content: center; margin-top: 7px !important; }

#apex-side-cart-wrapper .apex-shipping-pending { color: #64748b !important; font-size: 10px; font-weight: 700; text-align: right; }

#apex-cart-floating-btn .apex-cart-floating-count {
  top: -7px !important;
  right: -7px !important;
  min-width: 23px !important;
  height: 23px !important;
  padding: 0 5px !important;
  border: 2px solid #ffffff !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 19px !important;
  box-shadow: 0 3px 8px rgba(127, 29, 29, .38) !important;
}

/* The launcher is always available, including when the cart is empty. */
#apex-cart-floating-btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ============================================================
   Empty State
   ============================================================ */
.apex-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.apex-empty-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  background: var(--apex-blue-50);
  color: var(--apex-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.apex-cart-empty h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--apex-slate-900);
  margin: 0 0 6px;
}

.apex-cart-empty p {
  font-size: 13px;
  color: var(--apex-slate-500);
  margin: 0 0 20px;
  max-width: 280px;
}

.apex-btn-shop {
  background: var(--apex-blue-600);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 0.75rem;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.apex-btn-shop:hover {
  background: var(--apex-blue-700);
}

/* ============================================================
   Loading Overlay
   ============================================================ */
.apex-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apex-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--apex-slate-200);
  border-top-color: var(--apex-blue-600);
  border-radius: 50%;
  animation: apexSpin 0.7s linear infinite;
}

@keyframes apexSpin {
  to { transform: rotate(360deg); }
}

/* Recommendation card layout: readable product names, two cards per view. */
#apex-side-cart-wrapper .apex-upsells-marquee {
  scrollbar-width: none;
  padding-bottom: 2px;
}
#apex-side-cart-wrapper .apex-upsells-marquee::-webkit-scrollbar { display: none; }
#apex-side-cart-wrapper .apex-upsells-grid {
  grid-auto-columns: calc((100% - 8px) / 2);
}
#apex-side-cart-wrapper .apex-upsell-item {
  justify-content: space-between;
}
#apex-side-cart-wrapper .apex-upsell-thumb {
  width: 44px !important;
  height: 44px !important;
}
#apex-side-cart-wrapper .apex-upsell-details { min-width: 0; }
#apex-side-cart-wrapper .apex-upsell-title {
  white-space: normal !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.22;
  min-height: 27px;
}
#apex-side-cart-wrapper .apex-upsell-price {
  margin-top: 3px;
  font-size: 12px !important;
}

/* Quantity savings belongs with the real product characteristics, not over its photo. */
#apex-side-cart-wrapper .apex-tag-quantity {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

/* Compact horizontal carousel: arrows, swipe and trackpad all expose more products. */
#apex-side-cart-wrapper .apex-upsells-header {
  gap: 8px;
}
#apex-side-cart-wrapper .apex-upsells-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#apex-side-cart-wrapper .apex-upsells-nav-btn {
  appearance: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d8e1ee;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
#apex-side-cart-wrapper .apex-upsells-nav-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#apex-side-cart-wrapper .apex-upsells-nav-btn:hover,
#apex-side-cart-wrapper .apex-upsells-nav-btn:focus-visible {
  background: #590098;
  border-color: #590098;
  color: #ffffff;
}
#apex-side-cart-wrapper .apex-upsells-nav.is-hidden { display: none; }
#apex-side-cart-wrapper .apex-upsells-nav-btn:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}
#apex-side-cart-wrapper .apex-upsells-marquee {
  cursor: grab;
  scroll-behavior: smooth;
}
#apex-side-cart-wrapper .apex-upsell-item {
  min-height: 118px;
  border-color: #e2e8f0;
}

/* Coupon stays as one slim line until the shopper chooses to enter a code. */
#apex-side-cart-wrapper .apex-coupon-box {
  padding: 9px 12px !important;
  gap: 7px !important;
}
#apex-side-cart-wrapper .apex-coupon-toggle {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f172a !important;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  list-style: none;
}
#apex-side-cart-wrapper .apex-coupon-toggle::-webkit-details-marker { display: none; }

/* Product cards: tighter vertical rhythm with controls close to product details. */
#apex-side-cart-wrapper .apex-cart-item {
  align-items: flex-start;
}
#apex-side-cart-wrapper .apex-item-info-col {
  justify-content: flex-start;
}
#apex-side-cart-wrapper .apex-item-bottom-row {
  margin-top: 4px;
  padding-top: 4px;
}
#apex-side-cart-wrapper .apex-item-fav-row {
  margin-top: 2px;
  line-height: 1;
}

/* Mobile-first drawer: full-height, thumb-friendly and safe around phone UI. */
@media (max-width: 639px) {
  #apex-side-cart-wrapper.apex-cart-wrapper {
    padding: 0 !important;
    align-items: stretch;
  }

  #apex-side-cart-wrapper .apex-cart-drawer {
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  #apex-side-cart-wrapper .apex-cart-header {
    min-height: 64px;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
  }

  #apex-side-cart-wrapper .apex-cart-header-title { font-size: 18px; }
  #apex-side-cart-wrapper .apex-cart-close-btn {
    width: 40px !important;
    height: 40px !important;
  }
  #apex-side-cart-wrapper .apex-shipping-status-msg {
    line-height: 1.35;
  }
  #apex-side-cart-wrapper .apex-milestone-track-container { padding: 0 4px; }
  #apex-side-cart-wrapper .apex-milestone-label {
    margin-top: 5px;
    line-height: 1.15;
    text-align: center;
  }

  #apex-side-cart-wrapper .apex-cart-body {
    padding: 12px 14px 16px;
    gap: 10px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #apex-side-cart-wrapper .apex-cart-item { padding: 10px; gap: 10px; }
  #apex-side-cart-wrapper .apex-item-thumb-col {
    width: 62px;
    height: 62px;
  }
  #apex-side-cart-wrapper .apex-item-title { font-size: 13px; line-height: 1.2; }
  #apex-side-cart-wrapper .apex-item-delete-btn,
  #apex-side-cart-wrapper .apex-qty-btn { min-width: 32px !important; min-height: 32px !important; }

  #apex-side-cart-wrapper .apex-upsells-grid {
    grid-auto-columns: minmax(220px, 78%) !important;
  }
  #apex-side-cart-wrapper .apex-upsell-item { min-height: 128px; }
  #apex-side-cart-wrapper .apex-upsells-nav-btn {
    width: 34px;
    height: 34px;
  }

  #apex-side-cart-wrapper .apex-cart-footer {
    padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  }
  #apex-side-cart-wrapper .apex-totals-breakdown {
    margin-bottom: 12px;
    gap: 7px;
  }
  #apex-side-cart-wrapper .apex-total-amount { font-size: 23px; }
  #apex-side-cart-wrapper .apex-checkout-cta-btn {
    min-height: 50px;
    padding: 13px 16px;
    font-size: 14px;
  }
  #apex-side-cart-wrapper .apex-trust-footer {
    gap: 5px;
  }

  #apex-cart-floating-btn.apex-cart-floating-btn {
    right: max(16px, env(safe-area-inset-right)) !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    width: 56px !important;
    height: 56px !important;
  }
}

/* The smallest phones keep all four milestones and the checkout action visible. */
@media (max-width: 374px) {
  #apex-side-cart-wrapper .apex-cart-header { min-height: 58px; padding-inline: 12px; }
  #apex-side-cart-wrapper .apex-cart-header-title { font-size: 17px; }
  #apex-side-cart-wrapper .apex-cart-header-badge { padding-inline: 8px; font-size: 11px; }
  #apex-side-cart-wrapper .apex-milestone-label { max-width: 58px; }
  #apex-side-cart-wrapper .apex-cart-body { padding-inline: 12px; }
  #apex-side-cart-wrapper .apex-cart-footer { padding-inline: 12px; }
  #apex-side-cart-wrapper .apex-upsells-grid { grid-auto-columns: 84% !important; }
}

/* Landscape phones have limited height: retain the CTA without crowding content. */
@media (max-height: 700px) and (max-width: 900px) {
  #apex-side-cart-wrapper .apex-shipping-milestone-bar { padding-block: 8px; }
  #apex-side-cart-wrapper .apex-shipping-status-msg { margin-bottom: 7px; }
  #apex-side-cart-wrapper .apex-cart-footer { padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  #apex-side-cart-wrapper .apex-trust-footer { display: none; }
}

/* Product promotions reflected from WooCommerce data. */
#apex-side-cart-wrapper .apex-tag-vitamin-promo {
  background: #f3e8ff !important;
  border-color: #d8b4fe !important;
  color: #7e22ce !important;
}
#apex-side-cart-wrapper .apex-vitamin-discount-row {
  background: #faf5ff;
  border: 1px solid #ead5ff;
  border-radius: 8px;
  padding: 7px 9px;
  color: #6b21a8;
}
#apex-side-cart-wrapper .apex-vitamin-discount-row strong { color: #7e22ce; }

/* A discount has one clear hero price; the former price is quiet and crossed out. */
#apex-side-cart-wrapper .apex-item-price-box .apex-item-old-price,
#apex-side-cart-wrapper .apex-item-price-box .apex-item-old-price *,
#apex-side-cart-wrapper .apex-item-price-box .apex-item-old-price .woocommerce-Price-amount,
#apex-side-cart-wrapper .apex-item-price-box .apex-item-old-price bdi {
  display: block !important;
  margin: 0 0 2px !important;
  color: #94a3b8 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  text-decoration-line: line-through !important;
  text-decoration-thickness: 1.5px !important;
  text-decoration-color: #94a3b8 !important;
}
#apex-side-cart-wrapper .apex-item-price-box .apex-item-final-price,
#apex-side-cart-wrapper .apex-item-price-box .apex-item-final-price * {
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}
#apex-side-cart-wrapper .apex-item-price-box .apex-item-unit-note,
#apex-side-cart-wrapper .apex-item-price-box .apex-item-unit-note * {
  margin-top: 2px !important;
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
}

/* Preserve the store's purple former price exactly; only add the strikethrough. */
#apex-side-cart-wrapper .apex-item-price-box .apex-item-old-price,
#apex-side-cart-wrapper .apex-item-price-box .apex-item-old-price *,
#apex-side-cart-wrapper .apex-item-price-box .apex-item-old-price bdi {
  color: #7e22ce !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-decoration-line: line-through !important;
  text-decoration-thickness: 1.5px !important;
  text-decoration-color: currentColor !important;
}

/* Brief celebration when a cart milestone is reached. */
#apex-side-cart-wrapper .apex-milestone-celebration {
  position: absolute;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
}
#apex-side-cart-wrapper .apex-milestone-toast {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  max-width: calc(100% - 32px);
  padding: 9px 14px;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 8px 22px rgba(5, 150, 105, .18);
  transform: translateX(-50%);
  animation: apexMilestoneToast 1.8s ease both;
}
#apex-side-cart-wrapper .apex-confetti-particles i {
  position: absolute;
  top: -12px;
  left: var(--apex-x);
  width: 7px;
  height: 11px;
  border-radius: 2px;
  background: var(--apex-color);
  opacity: 0;
  transform: rotate(var(--apex-rotate));
  animation: apexConfettiFall 1.35s cubic-bezier(.2,.75,.35,1) var(--apex-delay) forwards;
}
@keyframes apexConfettiFall {
  0% { opacity: 0; transform: translate3d(0, -10px, 0) rotate(var(--apex-rotate)); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-28px, 400px, 0) rotate(calc(var(--apex-rotate) + 280deg)); }
}
@keyframes apexMilestoneToast {
  0%, 100% { opacity: 0; transform: translate(-50%, -10px) scale(.94); }
  12%, 82% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #apex-side-cart-wrapper .apex-confetti-particles { display: none; }
  #apex-side-cart-wrapper .apex-milestone-toast { animation: none; }
}

/* ============================================================
   1.0.31 - Coupon + recommendations redesign, mobile polish.
   Scoped under .apex-cart-body so these win over the earlier
   layered overrides and over theme (WoodMart) button styles.
   ============================================================ */

/* ---------- Coupon ---------- */
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-box {
  display: block;
  flex-shrink: 0;
  padding: 0 !important;
  gap: 0 !important;
  background: #ffffff !important;
  border: 1.5px dashed #cbd5e1 !important;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-box[open] {
  border-style: solid !important;
  border-color: #c99ae6 !important;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-box.has-coupon {
  border-style: solid !important;
  border-color: #a7f3d0 !important;
  background: #f0fdf4 !important;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-toggle {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 11px 12px !important;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
#apex-side-cart-wrapper .apex-coupon-toggle::marker { content: ''; }
#apex-side-cart-wrapper .apex-coupon-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f4ebfb;
  color: #590098;
  display: flex;
  align-items: center;
  justify-content: center;
}
#apex-side-cart-wrapper .apex-coupon-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#apex-side-cart-wrapper .apex-coupon-box.has-coupon .apex-coupon-icon {
  background: #d1fae5;
  color: #047857;
}
#apex-side-cart-wrapper .apex-coupon-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-label {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
#apex-side-cart-wrapper .apex-coupon-sub {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#apex-side-cart-wrapper .apex-coupon-box.has-coupon .apex-coupon-sub {
  color: #047857;
  font-weight: 700;
}
#apex-side-cart-wrapper .apex-coupon-chevron {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
#apex-side-cart-wrapper .apex-coupon-chevron svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#apex-side-cart-wrapper .apex-coupon-box[open] .apex-coupon-chevron {
  transform: rotate(180deg);
  background: #efe0f9;
  color: #43006f;
}
#apex-side-cart-wrapper .apex-coupon-panel {
  padding: 0 12px 12px;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-form-row {
  display: flex;
  gap: 8px;
  margin: 0;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: none !important;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-input:focus {
  border-color: #590098 !important;
  box-shadow: 0 0 0 3px rgba(89, 0, 152, .15) !important;
  outline: none;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-submit-btn {
  flex: 0 0 auto;
  height: 44px !important;
  min-height: 44px !important;
  min-width: 92px;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .15s ease;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-submit-btn:hover,
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-submit-btn:focus-visible {
  background: #590098 !important;
  color: #ffffff !important;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-submit-btn.is-loading {
  opacity: .7;
  cursor: progress;
}
#apex-side-cart-wrapper .apex-coupon-msg {
  margin: 8px 2px 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #475569;
}
#apex-side-cart-wrapper .apex-coupon-msg:empty { display: none; }
#apex-side-cart-wrapper .apex-coupon-msg.is-error { color: #dc2626; }
#apex-side-cart-wrapper .apex-coupon-msg.is-success { color: #047857; }
#apex-side-cart-wrapper .apex-coupon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
#apex-side-cart-wrapper .apex-coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ffffff;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-remove {
  width: 22px !important;
  height: 22px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
}
#apex-side-cart-wrapper .apex-cart-body .apex-coupon-remove:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

/* ---------- Recommendations ---------- */
#apex-side-cart-wrapper .apex-cart-body .apex-upsells-card {
  flex-shrink: 0;
  gap: 10px;
  padding: 14px !important;
  border: 1px solid #e8edf3 !important;
  border-radius: 16px;
  background: #f8fafc !important;
  box-shadow: none;
  overflow: hidden;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsells-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsells-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsells-title {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-transform: none;
}
#apex-side-cart-wrapper .apex-upsells-subtitle {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsells-nav { flex: 0 0 auto; gap: 6px; }
#apex-side-cart-wrapper .apex-cart-body .apex-upsells-nav-btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #334155 !important;
  line-height: 1 !important;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsells-nav-btn:hover,
#apex-side-cart-wrapper .apex-cart-body .apex-upsells-nav-btn:focus-visible {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

/* Edge-to-edge track inside the card so the next product peeks in. */
#apex-side-cart-wrapper .apex-cart-body .apex-upsells-marquee {
  width: auto;
  margin: 0 -14px;
  padding: 2px 14px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 14px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: auto;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsells-grid {
  display: flex !important;
  width: 100% !important;
  gap: 10px !important;
  grid-template-columns: none !important;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsells-grid::after {
  content: '';
  flex: 0 0 4px;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsell-item {
  flex: 0 0 calc((100% - 10px) / 2);
  width: auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px !important;
  border: 1px solid #e8edf3;
  border-radius: 14px !important;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  scroll-snap-align: start;
  transform: none;
}
#apex-side-cart-wrapper .apex-upsell-media {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsell-thumb {
  width: 100% !important;
  height: 100% !important;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsell-details {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsell-tag {
  margin: 0;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsell-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
  margin: 0;
  color: #0f172a !important;
  font-size: 12.5px !important;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: normal !important;
}
#apex-side-cart-wrapper .apex-upsell-buy-row {
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsell-price,
#apex-side-cart-wrapper .apex-cart-body .apex-upsell-price .woocommerce-Price-amount {
  margin: 0;
  color: #0f172a !important;
  font-size: 13.5px !important;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsell-btn {
  position: relative;
  flex: 0 0 auto;
  width: 34px !important;
  height: 34px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: auto;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .18) !important;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsell-btn:hover,
#apex-side-cart-wrapper .apex-cart-body .apex-upsell-btn:focus-visible {
  background: #590098 !important;
}
#apex-side-cart-wrapper .apex-cart-body .apex-upsell-btn:active { transform: scale(.92); }
#apex-side-cart-wrapper .apex-upsell-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#apex-side-cart-wrapper .apex-upsell-btn-check,
#apex-side-cart-wrapper .apex-upsell-btn.is-added .apex-upsell-btn-plus,
#apex-side-cart-wrapper .apex-upsell-btn.is-loading .apex-upsell-btn-plus { display: none; }
#apex-side-cart-wrapper .apex-upsell-btn.is-added .apex-upsell-btn-check { display: block; }
#apex-side-cart-wrapper .apex-cart-body .apex-upsell-btn.is-added { background: #059669 !important; }
#apex-side-cart-wrapper .apex-upsell-btn.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: apexSpin .7s linear infinite;
}
/* The label stays for screen readers; the round button shows the icon. */
#apex-side-cart-wrapper .apex-upsell-btn-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Touch devices swipe; arrows only help mouse users. */
@media (hover: none) {
  #apex-side-cart-wrapper .apex-cart-body .apex-upsells-nav { display: none !important; }
  #apex-side-cart-wrapper .apex-cart-item:hover,
  #apex-side-cart-wrapper .apex-upsell-item:hover { transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 639px) {
  /* 100vw includes the scrollbar on some Android browsers. */
  #apex-side-cart-wrapper .apex-cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 16px prevents iOS Safari from zooming the page when the field is focused. */
  #apex-side-cart-wrapper .apex-cart-body .apex-coupon-input { font-size: 16px !important; }

  /* One card plus a visible slice of the next one signals swiping. */
  #apex-side-cart-wrapper .apex-cart-body .apex-upsell-item { flex-basis: 82%; }
  #apex-side-cart-wrapper .apex-cart-body .apex-upsell-btn {
    width: 38px !important;
    height: 38px !important;
  }

  /* Footer: keep the CTA prominent and give the cart items more room. */
  #apex-side-cart-wrapper .apex-trust-title { display: none; }
  #apex-side-cart-wrapper .apex-trust-footer { margin-top: 8px; padding-top: 8px; }
  #apex-side-cart-wrapper .apex-ssl-guarantee { font-size: 10px; margin: 0; }
  #apex-side-cart-wrapper .apex-payment-methods-image { max-height: 24px; margin-top: 0; }
  #apex-side-cart-wrapper .apex-checkout-cta-btn { border-radius: 10px; }
}

@media (max-width: 374px) {
  #apex-side-cart-wrapper .apex-cart-body .apex-upsell-item { flex-basis: 88%; }
  #apex-side-cart-wrapper .apex-cart-body .apex-coupon-submit-btn { min-width: 78px; padding: 0 12px !important; }
  #apex-side-cart-wrapper .apex-coupon-sub { white-space: normal; }
}

/* ============================================================
   1.0.32 - Benefits bar: one message, clear step states.
   ============================================================ */
#apex-side-cart-wrapper .apex-shipping-milestone-bar {
  padding: 12px 16px 12px;
}
#apex-side-cart-wrapper .apex-shipping-status-msg {
  margin: 0 0 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
#apex-side-cart-wrapper .apex-shipping-status-msg strong { color: #0f172a; font-weight: 800; }
#apex-side-cart-wrapper .apex-shipping-status-msg .highlight,
#apex-side-cart-wrapper .apex-shipping-status-msg .highlight * {
  color: #047857 !important;
  font-weight: 800;
}
#apex-side-cart-wrapper .apex-status-chip {
  display: inline-block;
  margin: 0 4px 2px 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11.5px;
  font-weight: 800;
}

/* Four equal columns: step centers sit at 12.5 / 37.5 / 62.5 / 87.5%,
   so the track spans 12.5%-87.5% and its fill maps 1:1 to the steps. */
#apex-side-cart-wrapper .apex-milestone-track-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 !important;
  align-items: flex-start;
}
#apex-side-cart-wrapper .apex-milestone-step {
  flex: 1 1 0;
  min-width: 0;
}
#apex-side-cart-wrapper .apex-milestone-track-bg {
  left: 12.5%;
  right: 12.5%;
  top: 15px;
  height: 4px;
  overflow: hidden;
  background: #e2e8f0;
}
#apex-side-cart-wrapper .apex-milestone-track-bg .apex-milestone-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  max-width: none;
  transform: none;
  background: linear-gradient(90deg, #059669, #10b981);
}
#apex-side-cart-wrapper .apex-milestone-icon-wrap {
  width: 30px;
  height: 30px;
  border: 2px solid transparent;
}
#apex-side-cart-wrapper .apex-milestone-step.is-done .apex-milestone-icon-wrap {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: none;
}
#apex-side-cart-wrapper .apex-milestone-step.is-current .apex-milestone-icon-wrap {
  background: #ffffff;
  border-color: #10b981;
  color: #059669;
  box-shadow: 0 0 0 4px #d1fae5;
}
#apex-side-cart-wrapper .apex-milestone-step.is-locked .apex-milestone-icon-wrap {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
}
#apex-side-cart-wrapper .apex-milestone-label {
  max-width: none;
  margin-top: 6px;
  color: #0f172a;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
#apex-side-cart-wrapper .apex-milestone-label small {
  display: block;
  margin-top: 1px;
  color: #059669;
  font-size: 10px;
  font-weight: 700;
}
#apex-side-cart-wrapper .apex-milestone-label small .woocommerce-Price-amount,
#apex-side-cart-wrapper .apex-milestone-label small bdi { color: inherit !important; font: inherit !important; }
#apex-side-cart-wrapper .apex-milestone-step.is-current .apex-milestone-label { color: #0f172a; }
#apex-side-cart-wrapper .apex-milestone-step.is-current .apex-milestone-label small { color: #047857; }
#apex-side-cart-wrapper .apex-milestone-step.is-locked .apex-milestone-label { color: #64748b; font-weight: 600; }
#apex-side-cart-wrapper .apex-milestone-step.is-locked .apex-milestone-label small { color: #94a3b8; }

@media (max-width: 639px) {
  #apex-side-cart-wrapper .apex-shipping-milestone-bar { padding: 10px 12px 10px; }
  #apex-side-cart-wrapper .apex-shipping-status-msg { font-size: 12.5px; margin-bottom: 10px; }
  #apex-side-cart-wrapper .apex-milestone-label { max-width: none; font-size: 10px; white-space: nowrap; }
}
@media (max-width: 374px) {
  #apex-side-cart-wrapper .apex-milestone-label { font-size: 9px; }
  #apex-side-cart-wrapper .apex-milestone-label small { font-size: 9px; }
}

/* ============================================================
   1.0.35 - Toasts, delivery promise, quantity and swipe states.
   ============================================================ */
#apex-side-cart-wrapper .apex-toast {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 11px 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .28);
  animation: apexToastIn .22s ease both;
}
#apex-side-cart-wrapper .apex-toast.is-warning { background: #78350f; }
#apex-side-cart-wrapper .apex-toast.is-error { background: #991b1b; }
#apex-side-cart-wrapper .apex-toast.is-success { background: #065f46; }
#apex-side-cart-wrapper .apex-toast-msg { flex: 1 1 auto; min-width: 0; }
#apex-side-cart-wrapper .apex-toast-link {
  flex: 0 0 auto;
  color: #a7f3d0 !important;
  font-weight: 800;
  text-decoration: underline !important;
}
#apex-side-cart-wrapper .apex-toast .apex-toast-action {
  flex: 0 0 auto;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}
#apex-side-cart-wrapper .apex-toast .apex-toast-action:hover { background: rgba(255, 255, 255, .12) !important; }
@keyframes apexToastIn {
  from { transform: translateY(8px); }
  to { transform: none; }
}

/* Delivery promise (WooCommerce Llega Hoy) */
#apex-side-cart-wrapper .apex-delivery {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
  padding: 10px 12px;
  border: 1px solid #d1fae5;
  border-radius: 12px;
  background: #f0fdf4;
}
#apex-side-cart-wrapper .apex-delivery-icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #059669;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
#apex-side-cart-wrapper .apex-delivery-icon svg { width: 13px; height: 13px; fill: currentColor; }
#apex-side-cart-wrapper .apex-delivery-text { min-width: 0; }
#apex-side-cart-wrapper .apex-delivery-title {
  margin: 0;
  color: #14532d;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}
#apex-side-cart-wrapper .apex-delivery-title strong { color: #065f46; font-weight: 800; }
#apex-side-cart-wrapper .apex-delivery-title span { color: #047857; }
#apex-side-cart-wrapper .apex-delivery-sub {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
}

/* Quantity changed on screen, not yet confirmed by the store. */
#apex-side-cart-wrapper .apex-cart-item.is-pending .apex-item-price-box { opacity: .45; transition: opacity .15s ease; }
#apex-side-cart-wrapper .apex-cart-item.is-removing {
  opacity: .4;
  transform: translateX(20px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

/* While the finger drags the drawer it follows 1:1, without easing. */
#apex-side-cart-wrapper .apex-cart-drawer.is-dragging { transition: none !important; }

/* "Mover a favoritos" is now a real action (logged-in customers). */
#apex-side-cart-wrapper .apex-item-fav-btn[disabled] { opacity: .5; cursor: progress; }

/* "Iniciar compra" uses the store's own buy-button colors (same purple as
   "Añadir al carrito" / "Comprar ahora" on the product pages). */
#apex-side-cart-wrapper .apex-checkout-cta-btn {
  background: #590098 !important;
  border-color: #590098 !important;
  color: #ffffff !important;
  border-radius: 10px;
  box-shadow: 0 10px 24px -8px rgba(89, 0, 152, .55);
}
#apex-side-cart-wrapper .apex-checkout-cta-btn:hover,
#apex-side-cart-wrapper .apex-checkout-cta-btn:focus-visible {
  background: #43006f !important;
  border-color: #43006f !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px -8px rgba(89, 0, 152, .6);
}
#apex-side-cart-wrapper .apex-total-amount,
#apex-side-cart-wrapper .apex-total-amount .woocommerce-Price-amount { color: #590098 !important; }

/* ============================================================
   1.0.36 - Store brand purple (#590098, same as the site's buy
   buttons) and the header's shopping-bag icon. Doubled class keeps
   these above older theme/snippet overrides of the cart colors.
   ============================================================ */
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-checkout-cta-btn {
  background: #590098 !important;
  border-color: #590098 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px -8px rgba(89, 0, 152, .55) !important;
}
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-checkout-cta-btn:hover,
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-checkout-cta-btn:focus-visible {
  background: #43006f !important;
  border-color: #43006f !important;
}
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-total-amount,
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-total-amount .woocommerce-Price-amount { color: #590098 !important; }
html body #apex-cart-floating-btn.apex-cart-floating-btn.apex-cart-floating-btn {
  background: #590098 !important;
  box-shadow: 0 12px 28px rgba(89, 0, 152, .38) !important;
}
html body #apex-cart-floating-btn.apex-cart-floating-btn.apex-cart-floating-btn:hover { background: #43006f !important; }
#apex-cart-floating-btn .apex-bag-icon { width: 24px; height: 24px; display: block; }
#apex-side-cart-wrapper .apex-milestone-icon-wrap .apex-bag-icon { width: 15px; height: 15px; }
#apex-side-cart-wrapper .apex-empty-icon-wrap { background: #f4ebfb; color: #590098; }
/* Snippet "PM – Colores de marca unificados" (#313) colors these cart parts
   with html body #apex-side-cart-wrapper …; the extra class wins over it. */
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-cart-header-badge { background: #f4ebfb !important; color: #590098 !important; }
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-cart-body .apex-upsell-btn:hover,
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-cart-body .apex-upsell-btn:focus-visible,
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-cart-body .apex-coupon-submit-btn:hover,
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-cart-body .apex-coupon-submit-btn:focus-visible,
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-upsells-nav-btn:hover,
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-upsells-nav-btn:focus-visible { background: #590098 !important; border-color: #590098 !important; color: #ffffff !important; }
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-coupon-icon { color: #590098 !important; }
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-coupon-box[open] .apex-coupon-chevron { color: #590098 !important; }
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-cart-body .apex-coupon-input:focus { border-color: #590098 !important; box-shadow: 0 0 0 3px rgba(89, 0, 152, .15) !important; }
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-tag-vitamin-promo,
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-vitamin-discount-row,
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-vitamin-discount-row strong { color: #590098 !important; }
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-item-price-box .apex-item-old-price,
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-item-price-box .apex-item-old-price *,
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-item-price-box .apex-item-old-price bdi { color: #590098 !important; }
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-btn-shop { background: #590098 !important; color: #ffffff !important; }
html body #apex-side-cart-wrapper.apex-cart-wrapper .apex-btn-shop:hover { background: #43006f !important; }
