/* Cookie consent — matches cookie-consent.js */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  padding: 16px max(16px, env(safe-area-inset-left, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-right, 0px));
  background: var(--g32-ink, #1a2e1f);
  color: var(--star-white, #f4f1e8);
  border-top: 3px solid var(--nebula-pink, #166534);
  font-family: var(--g32-font, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
}

.cookie-consent-banner.show { display: block; }

.cookie-consent-content {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.cookie-consent-text {
  flex: 1;
  min-width: min(100%, 280px);
}

.cookie-consent-text > div:first-child {
  font-family: var(--g32-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--comet-cyan, #4ade80);
  letter-spacing: 0.08em;
}

.cookie-consent-text p {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted, #b8c4b8);
}

.cookie-consent-text a {
  color: var(--comet-cyan, #4ade80);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-btn {
  padding: 10px 18px;
  border-radius: 0;
  font-family: var(--g32-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cookie-btn-accept {
  background: var(--nebula-pink, #166534);
  color: var(--star-white, #f4f1e8);
  border-color: var(--nebula-pink, #166534);
}

.cookie-btn-reject,
.cookie-btn-settings {
  background: transparent;
  color: var(--star-white, #f4f1e8);
  border-color: var(--line-soft, rgba(74, 222, 128, 0.35));
}

.cookie-settings-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px));
  background: rgba(26, 46, 31, 0.88);
}

.cookie-settings-modal.show { display: flex; }

.cookie-settings-content {
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 22px 20px;
  background: var(--g32-paper, #f4f1e8);
  color: var(--g32-ink, #1a2e1f);
  border: 3px solid var(--nebula-pink, #166534);
}

.cookie-settings-header > div {
  font-family: var(--g32-mono, ui-monospace, monospace);
  color: var(--nebula-pink, #166534);
}

.cookie-settings-close {
  border: 2px solid var(--g32-border, #c5c0b4);
  background: var(--g32-paper-deep, #ebe6da);
  cursor: pointer;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--g32-green-soft, rgba(22, 101, 52, 0.2));
  border-color: var(--nebula-pink, #166534);
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .cookie-consent-content { flex-direction: column; align-items: stretch; }
  .cookie-consent-buttons { width: 100%; flex-direction: column; }
  .cookie-consent-buttons .cookie-btn { width: 100%; }
}
