/* cookie-banner.css */

#fw-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998; /* Slightly below the chat widget (9999) */
  width: 380px;
  max-width: calc(100vw - 48px);
  background: var(--dark, #111111);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.04) inset;
  font-family: var(--font-body, 'Rubik'), sans-serif;
  color: #fff;
  padding: 24px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  border-top: 2px solid var(--accent, #EAB308);
  backdrop-filter: blur(10px);
}

#fw-cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.fw-cb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.fw-cb-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 4px;
  color: var(--accent, #EAB308);
  font-size: 12px;
}

.fw-cb-title {
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
}

.fw-cb-text {
  font-size: 13px;
  line-height: 1.65;
  color: #a1a1aa;
  margin-bottom: 20px;
  font-weight: 300;
}

.fw-cb-text strong {
  color: #fff;
  font-weight: 500;
}

.fw-cb-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.fw-cb-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 3px;
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  text-align: center;
}

.fw-cb-btn.primary {
  background: var(--accent, #EAB308);
  color: var(--ink, #050505);
  border-color: var(--accent, #EAB308);
}

.fw-cb-btn.primary:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.fw-cb-btn.secondary {
  background: transparent;
  color: #a1a1aa;
  border-color: #333;
}

.fw-cb-btn.secondary:hover {
  color: #fff;
  border-color: #666;
  background: rgba(255,255,255,0.03);
}

.fw-cb-meta {
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
  font-size: 9px;
  color: #555;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fw-cb-meta::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 4px #22c55e;
}

.fw-cb-meta a {
  color: #777;
  text-decoration: none;
  border-bottom: 1px solid #333;
  transition: color 0.2s, border-color 0.2s;
}

.fw-cb-meta a:hover {
  color: var(--accent, #EAB308);
  border-color: var(--accent, #EAB308);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  #fw-cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 20px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
  }
  
  .fw-cb-actions {
    flex-direction: column;
  }
}

/* RTL Support for Arabic */
html[dir="rtl"] #fw-cookie-banner {
  left: auto;
  right: 24px;
}

@media (max-width: 640px) {
  html[dir="rtl"] #fw-cookie-banner {
    left: 0;
    right: 0;
  }
}