/* Cookie banner: a small corner card that never covers the page. Choices move to the footer link afterwards. */
.ng-consent[hidden], .ng-consent [hidden], .ng-footer__cookies[hidden] { display: none !important; }
.ng-consent { position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 1200; width: min(400px, calc(100vw - 32px)); padding: 16px; background: var(--ng-surface); color: var(--ng-ink-strong); border: 1px solid var(--ng-card-border); border-radius: 14px; box-shadow: var(--ng-card-shadow); font-size: 13px; line-height: 1.5; animation: ng-consent-in 240ms ease-out both; }
.ng-consent__text { margin: 0; }
.ng-consent__text strong { font-weight: 750; }
.ng-consent__choices { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ng-card-border); }
.ng-consent__choice { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; cursor: pointer; }
.ng-consent__choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ng-forest); }
.ng-consent__choice a { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ng-consent__actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ng-consent__actions .ng-button { min-height: 40px; padding: 8px 14px; font-size: 13px; box-shadow: none; transform: none; }
.ng-consent__more { margin-inline-end: auto; padding: 8px 4px; min-height: 40px; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ng-consent__actions [data-consent-save] { margin-inline-end: auto; }
.ng-consent button:focus-visible, .ng-consent a:focus-visible, .ng-consent input:focus-visible, .ng-footer__cookies:focus-visible { outline: 3px solid var(--ng-gold); outline-offset: 3px; }
.ng-footer__cookies { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ng-footer__cookies:hover { color: rgba(255, 255, 255, 0.85); }
@keyframes ng-consent-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .ng-consent { animation: none; } }
@media (max-width: 520px) {
    .ng-consent { inset-inline: 8px; bottom: 8px; width: auto; padding: 12px 14px; border-radius: 12px; max-height: calc(100dvh - 16px); overflow-y: auto; }
    .ng-consent__actions { flex-wrap: wrap; }
    .ng-consent__actions .ng-button { flex: 1; padding-inline: 10px; white-space: nowrap; }
}
