.ch-consent {
  --ch-consent-cream: #faf9f5;
  --ch-consent-ink: #141413;
  --ch-consent-muted: #64635f;
  --ch-consent-line: #dedcd4;
  color: var(--ch-consent-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.ch-consent *, .ch-consent *::before, .ch-consent *::after { box-sizing: border-box; }
.ch-consent [hidden] { display: none !important; }
.ch-consent button { min-height: 44px; border: 1px solid var(--ch-consent-line); border-radius: 6px; background: transparent; color: var(--ch-consent-ink); padding: 9px 14px; font: inherit; font-weight: 550; line-height: 1.4; cursor: pointer; text-align: center; touch-action: manipulation; }
.ch-consent button:hover { border-color: #a5a298; background: #eeece3; }
.ch-consent button:disabled { cursor: not-allowed; opacity: .55; }
.ch-consent :focus-visible { outline: 2px solid #925038; outline-offset: 3px; }
.ch-consent p, .ch-consent h2, .ch-consent h3 { margin: 0; font-family: inherit; text-wrap: initial; }
.ch-consent h2 { font-size: 14px; font-weight: 650; line-height: 1.4; letter-spacing: -.015em; }
.ch-consent h3, .ch-consent label { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.ch-consent p { font-size: 13px; line-height: 1.5; letter-spacing: 0; }
.ch-consent .ch-consent-settings { position: fixed; z-index: 9999; inset: auto auto max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 12px; border-radius: 24px; background: var(--ch-consent-cream); box-shadow: 0 2px 8px #1414130a; font-size: 12px; font-weight: 500; }
.ch-consent-settings svg { flex: 0 0 16px; }
.ch-consent-dialog { position: fixed; inset: auto auto max(64px, calc(env(safe-area-inset-bottom) + 52px)) max(12px, env(safe-area-inset-left)); width: min(312px, calc(100vw - 24px)); max-height: calc(100svh - 88px); margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--ch-consent-line); border-radius: 12px; background: var(--ch-consent-cream); color: var(--ch-consent-ink); box-shadow: 0 8px 32px #14141318; }
.ch-consent-dialog::backdrop { background: transparent; }
.ch-consent-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 0 18px; }
.ch-consent .ch-consent-close { flex: 0 0 44px; width: 44px; padding: 8px; border-color: transparent; font-size: 16px; }
.ch-consent-dialog-content { padding: 0 18px 8px; }
.ch-consent-dialog-content > p { color: var(--ch-consent-muted); }
.ch-consent-dialog-content .ch-consent-status { margin-top: 8px; font-size: 11px; }
.ch-consent-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 0 8px; }
.ch-consent-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 0; color: var(--ch-consent-muted); cursor: pointer; list-style: none; font-size: 11px; }
.ch-consent-details > summary::-webkit-details-marker { display: none; }
.ch-consent-details > summary::after { content: '+'; font-size: 17px; line-height: 1; }
.ch-consent-details[open] > summary::after { content: '−'; }
.ch-consent-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 12px; border-top: 1px solid var(--ch-consent-line); }
.ch-consent-option p { margin-top: 3px; color: var(--ch-consent-muted); font-size: 11px; }
.ch-consent-option label { cursor: pointer; }
.ch-consent-option input { flex: 0 0 20px; width: 20px; height: 20px; margin: 12px; accent-color: var(--ch-consent-ink); cursor: pointer; }
.ch-consent-option input:disabled { cursor: not-allowed; }
.ch-consent-always { flex: 0 0 auto; color: var(--ch-consent-muted); font-size: 10px; white-space: nowrap; }
.ch-consent .ch-consent-note { margin: 0 0 12px; color: var(--ch-consent-muted); font-size: 10px; }
.ch-consent .ch-consent-privacy-notice { margin-bottom: 12px; color: var(--ch-consent-muted); font-size: 11px; }
.ch-consent .ch-consent-save { width: 100%; margin-bottom: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .ch-consent-dialog[open] { animation: ch-consent-reveal 120ms ease-out; }
  @keyframes ch-consent-reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
}
