/* ==========================================================================
   Floating Sticky Selection Bar & Quick Action Drawer - Veuz Green System
   ========================================================================== */
.selection-bar-drawer {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 140px);
  background:
    linear-gradient(135deg, rgba(7, 32, 34, 0.96) 0%, rgba(10, 44, 38, 0.95) 55%, rgba(12, 34, 24, 0.96) 100%) padding-box,
    linear-gradient(115deg, #00DCCB 0%, #34D399 50%, #8DF03C 100%) border-box;
  border: 2px solid transparent;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: #FFFFFF;
  border-radius: 9999px;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 95;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.8),
    0 0 36px rgba(0, 220, 203, 0.34),
    0 0 18px rgba(141, 240, 60, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  white-space: nowrap;
  max-width: calc(100vw - 24px);
}

[data-theme="brand-mint"] .selection-bar-drawer {
  background:
    linear-gradient(135deg, #0E2B26 0%, #143B32 100%) padding-box,
    linear-gradient(115deg, #00A9C9 0%, #4FC09A 50%, #8DF03C 100%) border-box;
  color: #FFFFFF;
}

.selection-bar-drawer.active {
  transform: translate(-50%, 0);
  animation: drawerHighlightPulse 3.2s ease-in-out infinite alternate;
}

@keyframes drawerHighlightPulse {
  0% {
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.78),
      0 0 28px rgba(0, 220, 203, 0.30),
      0 0 14px rgba(141, 240, 60, 0.20),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow:
      0 22px 52px rgba(0, 0, 0, 0.82),
      0 0 42px rgba(0, 220, 203, 0.48),
      0 0 24px rgba(141, 240, 60, 0.36),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
}

.selection-count-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: -0.01em;
}

.selection-count-badge strong {
  background: linear-gradient(135deg, #8DF03C 0%, #00DCCB 100%);
  color: #041812;
  font-size: 0.76rem;
  font-weight: 800;
  width: auto;
  min-width: 40px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  white-space: nowrap;
  display: grid;
  place-items: center;
  box-shadow: 0 0 14px rgba(141, 240, 60, 0.65), 0 0 0 2px rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.btn-clear-selection {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  color: #CBD5E1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 5px 12px;
  transition: var(--trans-fast);
  flex-shrink: 0;
}

.btn-clear-selection:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.5);
  color: #FECACA;
}

.btn-drawer-enquire {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(115deg, #00E5D4 0%, #34D399 48%, #9EF74A 100%);
  color: #041812;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 6px 22px rgba(0, 229, 212, 0.42), 0 0 14px rgba(141, 240, 60, 0.32);
  z-index: 1;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .selection-bar-drawer {
    bottom: 14px;
    padding: 7px 8px 7px 12px;
    gap: 8px;
    max-width: calc(100vw - 16px);
  }

  .selection-count-badge {
    font-size: 0.72rem;
    gap: 5px;
  }

  .selection-count-badge strong {
    min-width: 30px;
    height: 22px;
    padding: 0 6px;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .btn-clear-selection {
    padding: 4px 8px;
    font-size: 0.70rem;
  }

  .btn-drawer-enquire {
    padding: 7px 11px;
    font-size: 0.73rem;
    gap: 5px;
  }
}

.btn-drawer-enquire::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--veuz-grad-rev);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-drawer-enquire:hover::before {
  opacity: 1;
}

.btn-drawer-enquire:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(141, 240, 60, 0.5);
  color: #0A1C16;
}

/* Floating WhatsApp Quick Action Button */
.floating-wa-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  z-index: 90;
  text-decoration: none;
  transition: var(--trans-smooth);
}

.floating-wa-btn:hover {
  color: #FFFFFF;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55);
}