.hw-consent, .hw-consent-fallback { box-sizing: border-box; font-family: var(--font-sans); }
.hw-consent[hidden], [data-hw-consent-open][hidden] { display: none !important; }
.hw-consent {
  --consent-bg: #fff; --consent-fg: #2b4358; --consent-border: #c6cedd;
  position: fixed; z-index: 10000; inset: auto auto 20px 20px;
  width: min(450px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); overflow-y: auto;
  padding: 24px; color: var(--consent-fg); background: var(--consent-bg);
  border: 1px solid var(--consent-border); border-radius: 16px;
  box-shadow: 0 12px 48px #162b4033; border-top: 4px solid #fbde37;
  font-size: 14px; line-height: 1.6; text-align: left;
}
[data-theme="dunkel"] .hw-consent, [data-theme="dark"] .hw-consent, .dark-mode .hw-consent {
  --consent-bg: #182634; --consent-fg: #f7f8fc; --consent-border: #617181;
}
.hw-consent h2 { font-family: var(--font-sans); font-size: 21px; font-weight: 600; line-height: 1.25; margin: 0 0 12px; color: inherit; }
.hw-consent h2::after { content: none; }
.hw-consent p { margin: 0 0 14px; color: inherit; font-size: inherit; line-height: inherit; }
.hw-consent__details { border-top: 1px solid var(--consent-border); padding-top: 12px; margin-bottom: 16px; }
.hw-consent__details summary { cursor: pointer; font-weight: 500; padding: 2px 0; }
.hw-consent__details p { margin-top: 10px; }
.hw-consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hw-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hw-consent button { font-family: var(--font-sans); cursor: pointer; }
.hw-consent__actions button {
  min-height: 46px; padding: 10px 12px; font-size: 14px; line-height: 1.3; font-weight: 600;
  color: #2b4358; background: #fbde37; border: 1px solid #dcc22d; border-radius: 8px;
}
.hw-consent__actions button:hover { background: #f4d527; }
.hw-consent__status { font-size: 12px !important; margin: 12px 0 0 !important; }
.hw-consent__status:empty { display: none; }
.hw-consent__close { display: block; margin: 10px auto 0; padding: 6px 12px; border: 0; background: transparent; color: inherit; font-size: 12px; text-decoration: underline; }
.hw-consent :focus-visible, [data-hw-consent-open]:focus-visible { outline: 3px solid #849ab2; outline-offset: 4px; }
.hw-consent-footer { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: none; cursor: pointer; }
.hw-v2-footer .hw-consent-footer { text-decoration: none; }
.hw-consent-fallback { padding: 16px 24px; font-size: 12px; color: var(--fg-muted, #617181); }
@media (max-width: 520px) {
  .hw-consent { inset: auto 12px 12px; width: auto; max-height: calc(100dvh - 24px); padding: 18px; border-radius: 12px; font-size: 13px; }
  .hw-consent h2 { font-size: 19px; }
  .hw-consent__actions { gap: 8px; }
  .hw-consent__actions button { padding: 10px 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: no-preference) { .hw-consent { animation: hw-consent-in .18s ease-out; } @keyframes hw-consent-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } }
