

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--c-bg);
  border-top: 1px solid var(--c-muted);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  padding: var(--space-4);
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-body);
  color: var(--c-fg);
  max-height: 160px;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.cookie-banner.hidden {
  display: none;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner-content h3 {
  margin: 0 0 var(--space-2) 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--c-fg);
}

.cookie-banner-content p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9rem;
}

.cookie-banner-content a {
  color: var(--c-accent);
  text-decoration: none;
  font-weight: 500;
}

.cookie-banner-content a:hover {
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
  min-width: max-content;
}

.cookie-banner-button {
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-banner-button.primary {
  background-color: var(--c-accent);
  color: white;
}

.cookie-banner-button.primary:hover {
  background-color: #155a8a;
  box-shadow: 0 2px 8px rgba(28, 111, 165, 0.2);
}

.cookie-banner-button.secondary {
  background-color: var(--c-muted);
  color: var(--c-fg);
}

.cookie-banner-button.secondary:hover {
  background-color: #5b8aa3;
  color: white;
}

.cookie-banner-button.tertiary {
  background-color: transparent;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
}

.cookie-banner-button.tertiary:hover {
  background-color: var(--c-accent);
  color: white;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-3);
}

.cookie-modal.hidden {
  display: none;
}

.cookie-modal-content {
  background-color: var(--c-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal-content h2 {
  margin: 0 0 var(--space-3) 0;
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--c-fg);
}

.cookie-modal-content p {
  margin: 0 0 var(--space-4) 0;
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-category {
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  background-color: #f5f7fa;
  border-radius: var(--radius-sm);
}

.cookie-category h3 {
  margin: 0 0 var(--space-2) 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--c-fg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cookie-category-desc {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-top: var(--space-1);
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cookie-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--c-accent);
}

.cookie-toggle input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cookie-modal-buttons {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.cookie-modal-buttons button {
  flex: 1;
  min-width: 120px;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    max-height: none;
  }

  .cookie-banner-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner-button {
    width: 100%;
    text-align: center;
  }

  .cookie-modal-content {
    margin: var(--space-3);
    padding: var(--space-4);
  }
}




/* wh-contrast-fix */
/* Auto-injected: text color did not meet 4.5:1 against declared background. */
.cookie-banner-button.secondary { color: #ffffff !important; }
.cookie-banner-button.secondary:hover { color: #ffffff !important; }
