.consent-panel[hidden],
.consent-panel [hidden] {
  display: none !important;
}

.consent-panel {
  position: fixed;
  z-index: 200;
  inset: auto 16px 16px;
  width: calc(100% - 32px);
  max-width: 760px;
  max-height: calc(100dvh - 32px);
  margin-inline: auto;
  overflow: auto;
  padding: 24px;
  color: var(--text, #0a0a0a);
  background: var(--bg-0, #fffdf8);
  border: 1px solid var(--line-2, #d8c579);
  border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(0, 0, 0, .2));
  font-family: var(--font-sans, system-ui, sans-serif);
}

.consent-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.consent-panel h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.consent-panel p {
  margin: 12px 0 20px;
  color: var(--text-dim, #373326);
  font-size: 15px;
  line-height: 1.6;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.consent-choice {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--text, #0a0a0a);
  border-radius: 999px;
  background: var(--bg-ink, #0a0a0a);
  color: var(--text-inverse, #fffdf8);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.consent-choice:hover {
  background: var(--bg-ink-2, #111111);
}

.consent-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px;
  color: var(--text, #0a0a0a);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}

.consent-close {
  flex: 0 0 44px;
  min-height: 44px;
  margin: -8px -8px 0 0;
  border: 1px solid var(--line-2, #d8c579);
  border-radius: 50%;
  background: transparent;
  color: var(--text, #0a0a0a);
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.site-footer .consent-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.site-footer .consent-settings:hover {
  color: var(--accent-warm, #efd21a);
}

.consent-panel :focus-visible {
  outline: 3px solid var(--text, #0a0a0a);
  outline-offset: 4px;
}

.site-footer .consent-settings:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.consent-panel .consent-status {
  margin-bottom: 0;
  font-weight: 600;
}

@media (max-width: 480px) {
  .consent-panel {
    padding: 18px;
  }

  .consent-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-choice {
    flex: auto;
    width: 100%;
  }
}
