/* ═══════════════════════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER — PyStatR+
   Bottom bar with Accept/Decline
   ═══════════════════════════════════════════════════════════════════════════ */

/* Banner Container */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #0B1120 0%, #1a2744 100%);
  border-top: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow:
    0 -4px 30px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(34, 211, 238, 0.08);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hidden State */
.cookie-banner-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Content Wrapper */
.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Text Section */
.cookie-banner-text {
  flex: 1;
}

.cookie-banner-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner-heading::before {
  content: '🍪';
  font-size: 1.1rem;
}

.cookie-banner-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.5;
}

.cookie-banner-link {
  color: #22d3ee;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.cookie-banner-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Action Buttons */
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  border: none;
}

/* Decline Button */
.cookie-btn-decline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

/* Accept Button */
.cookie-btn-accept {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  color: #0B1120;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.4);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 16px 20px;
    gap: 16px;
  }

  .cookie-banner-heading {
    justify-content: center;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    padding: 12px 20px;
  }
}

/* Ensure banner appears above Atoch chat widget */
.cookie-banner {
  z-index: 99999;
}

/* Adjust Atoch widget position when banner is visible */
.cookie-banner:not(.cookie-banner-hidden) ~ #atoch-chat-widget,
body:has(.cookie-banner:not(.cookie-banner-hidden)) #atoch-chat-widget {
  bottom: 100px;
  transition: bottom 0.4s ease;
}
