/* FlexExt Top Promotional Bar & Bundle Booster Styles */
.flx-promo-bar {
  position: relative;
  z-index: 1040;
  width: 100%;
  padding: 6px 0;
  font-family: inherit;
  font-size: 0.88rem;
  color: #f8fafc;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.flx-promo-bar.flx-sticky {
  position: sticky;
  top: 0;
}

/* Theme Gradients */
.flx-theme-gradient_dark {
  background: linear-gradient(90deg, #0b0f19 0%, #172554 35%, #1e1b4b 65%, #0b0f19 100%);
  border-bottom: 2px solid rgba(59, 130, 246, 0.4);
}

.flx-theme-gradient_emerald {
  background: linear-gradient(90deg, #022c22 0%, #064e3b 50%, #022c22 100%);
  border-bottom: 2px solid rgba(16, 185, 129, 0.4);
}

.flx-theme-gradient_crimson {
  background: linear-gradient(90deg, #450a0a 0%, #881337 50%, #450a0a 100%);
  border-bottom: 2px solid rgba(244, 63, 94, 0.4);
}

.flx-promo-inner {
  min-height: 40px;
}

/* Bundle Tabs Switcher */
.flx-bundle-tabs {
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Flat / Seamless Tabs (No capsule bubble border) */
.flx-bundle-tabs.flx-tabs-flat {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  gap: 6px !important;
}

.flx-tab-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.flx-tabs-flat .flx-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 4px 10px;
}

.flx-tab-btn:hover,
.flx-tabs-flat .flx-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.flx-tab-btn.active {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.6);
}

.flx-tabs-flat .flx-tab-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.5);
}

.flx-tab-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 800;
}

/* Nav Arrows */
.flx-nav-arrow {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.flx-nav-arrow:hover {
  background: #38bdf8;
  color: #0f172a;
  transform: scale(1.1);
}

/* Badge */
.flx-promo-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: flxPulseGlow 2.2s infinite ease-in-out;
}

@keyframes flxPulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.85);
    transform: scale(1.03);
  }
}

/* Slides */
.flx-promo-slides {
  min-height: 26px;
}

.flx-bundle-slide {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.flx-bundle-slide.flx-slide-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.flx-promo-title {
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
}

.flx-promo-desc {
  font-size: 0.82rem;
}

/* Countdown */
.flx-countdown {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

/* CTA Group */
.flx-bundle-cta-group {
  display: none;
}

.flx-bundle-cta-group.flx-cta-active {
  display: block;
}

.flx-deal-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #10b981 !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* CTA Button */
.flx-claim-bundle-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 5px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.5);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.flx-claim-bundle-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.7);
}

.flx-claim-bundle-btn:active {
  transform: translateY(0);
}

/* Close Button */
.flx-promo-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  line-height: 1;
  padding: 3px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.flx-promo-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* Reopen Floating Handle */
#flx-promo-reopen {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 1050;
}

.flx-reopen-btn {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #fff !important;
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.flx-reopen-btn:hover {
  background: #1e1b4b;
  border-color: #60a5fa;
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .flx-promo-title {
    font-size: 0.82rem;
  }
  .flx-deal-price {
    font-size: 1rem;
  }
  .flx-claim-bundle-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
  }
}

/* Offer Details Button in Bar */
.flx-offer-details-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 4px 11px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.flx-offer-details-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.hover-underline:hover {
  text-decoration: underline !important;
}

/* In-Cart License Switcher Styling */
.flx-cart-lic-selector {
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  transition: all 0.2s ease;
}

.flx-cart-lic-selector:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

.flx-cart-lic-dropdown {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 2px 24px 2px 8px !important;
  border-color: #93c5fd !important;
  color: #1e3a8a !important;
  background-color: #ffffff !important;
  cursor: pointer;
  max-width: 340px;
}

.flx-cart-lic-dropdown:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

/* In-Cart Bulk Bundle Banner */
.flx-cart-bundle-banner {
  border: 2px solid #3b82f6 !important;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.flx-bulk-lic-btn {
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.flx-bulk-lic-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}
