/* Cookie consent banner — see /js/consent.js */
#tap-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1f2937;
  color: #f9fafb;
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.tap-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.tap-consent-text {
  flex: 1 1 320px;
  margin: 0;
}

.tap-consent-text a {
  color: #93c5fd;
  text-decoration: underline;
}

.tap-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tap-consent-btn {
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
  font-family: inherit;
}

.tap-consent-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.tap-consent-btn-primary {
  background: #f9fafb;
  color: #1f2937;
}

.tap-consent-btn-primary:hover {
  background: #e5e7eb;
}

.tap-consent-btn-secondary {
  background: transparent;
  color: #f9fafb;
  border-color: #6b7280;
}

.tap-consent-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #9ca3af;
}

#tap-consent-preferences {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #374151;
}

#tap-consent-preferences fieldset {
  border: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
}

#tap-consent-preferences legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#tap-consent-preferences label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

#tap-consent-preferences input[type="checkbox"] {
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .tap-consent-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .tap-consent-actions {
    justify-content: stretch;
  }
  .tap-consent-btn {
    flex: 1;
  }
}
