/* CSS for custom cookie consent banner */
:root {
  --cookie-bg: #0d0d0d;
  --cookie-text: #e5e7eb;
  --cookie-accent: #75FBFC; /* Color from shs.html */
  --cookie-btn-primary-bg: #75FBFC;
  --cookie-btn-primary-text: #020617;
  --cookie-btn-secondary-border: #374151;
  --cookie-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cookie-banner-hidden {
  display: none !important;
}

/* Container */
#cookie-banner-container {
  display: none; /* Hidden by default until JS shows it */
  position: fixed;
  bottom: 20px;
  left: 20px; /* Center with margin */
  right: 20px;
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--cookie-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  color: var(--cookie-text);
  box-shadow: var(--cookie-shadow);
  z-index: 2147483647; /* Highest possible z-index */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  transform: translateY(20px);
  animation: cookieSlideIn 0.5s forwards ease-out;
}

@keyframes cookieSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inner Layout */
.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.cookie-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d1d5db;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-btn-accept {
  background-color: var(--cookie-btn-primary-bg);
  color: var(--cookie-btn-primary-text);
}

.cookie-btn-accept:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background-color: transparent;
  border: 1px solid var(--cookie-btn-secondary-border);
  color: var(--cookie-text);
}

.cookie-btn-reject:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #fff;
}

.cookie-btn-settings {
  background: none;
  border: none;
  color: #9ca3af;
  text-decoration: underline;
  margin-left: auto;
  font-size: 0.85rem;
  padding: 0;
}

.cookie-btn-settings:hover {
  color: #fff;
}

/* Settings Checkboxes */
#cookie-settings-panel {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.cookie-checkbox {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--cookie-btn-primary-bg);
}

.cookie-label-group {
    display: flex;
    flex-direction: column;
}

.cookie-label-title {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.cookie-label-desc {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Revoke Button (Fingerprint) */
#cookie-revoke-btn {
  display: none; /* Only visible when banner is hidden */
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background-color: var(--cookie-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2147483646; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0.5;
  transition: all 0.3s;
}

#cookie-revoke-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  border-color: var(--cookie-accent);
}

#cookie-revoke-svg {
  width: 24px;
  height: 24px;
  fill: var(--cookie-text);
}

/* Responsive */
@media (max-width: 640px) {
  #cookie-banner-container {
      bottom: 0;
      left: 0;
      right: 0;
      border-radius: 12px 12px 0 0;
      margin: 0;
      padding: 20px;
      max-height: 85vh;
      overflow-y: auto;
  }
  
  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-btn-settings {
    margin-left: 0;
    margin-top: 10px;
    text-align: center;
  }
}
