
.cookie-banner {
  position: fixed;
  background: linear-gradient(135deg, rgba(46, 107, 138, 0.96) 0%, rgba(65, 133, 156, 0.96) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  padding: var(--space-4);
  z-index: 10000;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: slideUp 0.3s ease-out;
}

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

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: start;
}

.cookie-text {
  color: #ffffff;
}

.cookie-text h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 var(--space-2) 0;
  color: #ffffff;
}

.cookie-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-text a {
  color: #ffffff;
  text-decoration: underline;
}

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

.cookie-btn {
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-primary {
  background-color: var(--c-accent);
  color: var(--c-bg);
  border: 1px solid var(--c-accent);
}

.cookie-btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--c-fg);
}

.cookie-btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: var(--space-3);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

.cookie-category {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--c-muted);
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-category label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  cursor: pointer;
}

.cookie-category input[type="checkbox"] {
  margin-top: 0.4rem;
  cursor: pointer;
}

.cookie-category-text h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 var(--space-1) 0;
  color: var(--c-fg);
}

.cookie-category-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.4;
}

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

.cookie-modal-buttons button {
  flex: 1;
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-modal-buttons .cookie-btn-secondary {
  flex: 1;
}

.cookie-modal-buttons .cookie-btn-primary {
  flex: 1;
}

@media (max-width: 640px) {
  .cookie-content {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

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

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

  .cookie-modal-content {
    padding: var(--space-4);
    max-height: 85vh;
  }

  .cookie-modal-buttons {
    flex-direction: column;
  }
}

.cookie-btn-secondary:hover { color: #111111 !important; }


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