/* Privacy controls share the site's existing palette and typography. */
#tervixa-consent [hidden] { display: none !important; }
.consent-banner, .consent-dialog, .consent-feedback { color: var(--ink, #0d1720); background: #fff; border: 1px solid var(--line, #dce2e8); box-shadow: 0 18px 64px rgba(13, 23, 32, .18); }
.consent-banner { position: fixed; z-index: 100; left: 20px; right: 20px; bottom: 20px; max-width: 1180px; margin: 0 auto; padding: 26px 28px; border-radius: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; max-height: calc(100dvh - 40px); overflow-y: auto; }
.consent-eyebrow { color: var(--blue, #1769ff); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px; }
.consent-banner h2, .consent-dialog h2 { margin: 0 0 10px; font-size: 23px; line-height: 1.18; letter-spacing: -.6px; }
.consent-banner-copy > p:not(.consent-eyebrow) { color: #526271; font-size: 14px; line-height: 1.6; margin: 0; }
.consent-banner-copy .consent-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px !important; }
#tervixa-consent a { color: #1459d9; text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.consent-banner-actions { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); }
.consent-banner-actions > :last-child { grid-column: 1 / -1; }
.consent-button { appearance: none; cursor: pointer; min-height: 44px; padding: 11px 17px; border-radius: 11px; border: 1px solid #b9c5d0; color: var(--ink, #0d1720); background: #fff; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.35; text-align: center; }
.consent-button:hover { background: #edf3fa; border-color: #7b92aa; }
.consent-button--decision { color: #fff; background: #155ee8; border-color: #155ee8; }
.consent-button--decision:hover { color: #fff; background: #104cbf; border-color: #104cbf; }
#tervixa-consent button:focus-visible, #tervixa-consent a:focus-visible, [data-cookie-preferences]:focus-visible { outline: 3px solid #1769ff; outline-offset: 4px; }
.consent-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px; margin: auto; border-radius: 22px; overflow-y: auto; overscroll-behavior: contain; }
.consent-dialog::backdrop { background: rgba(7, 17, 29, .55); backdrop-filter: blur(4px); }
.consent-dialog-heading { position: relative; }
.consent-dialog-heading .consent-eyebrow { padding-right: 44px; }
.consent-dialog-heading h2 { padding-right: 30px; font-size: 28px; }
.consent-dialog-heading > p:last-child { color: #526271; font-size: 14px; line-height: 1.65; margin: 12px 0 22px; }
.consent-close { cursor: pointer; font: inherit; font-size: 27px; line-height: 1; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line, #dce2e8); border-radius: 50%; background: #fff; color: #33475b; flex-shrink: 0; }
.consent-close:hover { background: #eef3f8; }
.consent-dialog-heading > .consent-close { position: absolute; top: -12px; right: -12px; }
.consent-category { padding: 17px 18px; margin: 11px 0; background: #f5f8fb; border: 1px solid var(--line, #dce2e8); border-radius: 13px; }
.consent-category label { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 16px; font-weight: 750; }
.consent-category label span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.consent-category small { display: inline-block; font-size: 11px; line-height: 1.4; font-weight: 600; padding: 3px 8px; color: #43576a; background: #e7edf3; border-radius: 20px; }
.consent-category input { width: 19px; height: 19px; flex-shrink: 0; margin: 0; accent-color: #155ee8; }
.consent-category p { color: #526271; font-size: 13px; line-height: 1.6; margin: 9px 0 0; }
.consent-detail { margin: 19px 0; color: #526271; font-size: 13px; line-height: 1.6; }
.consent-storage-note { font-size: 13px; line-height: 1.6; background: #eaf2ff; padding: 13px 15px; border-radius: 10px; color: #244971; }
.consent-dialog-actions { padding-top: 18px; border-top: 1px solid var(--line, #dce2e8); }
.consent-dialog-actions > :nth-child(-n+2) { flex: 1; }
.consent-feedback { position: fixed; z-index: 110; right: 20px; bottom: 20px; width: min(460px, calc(100% - 40px)); padding: 18px; border-radius: 16px; display: flex; align-items: flex-start; gap: 14px; }
.consent-feedback p { margin: 0; font-size: 14px; line-height: 1.6; }
.consent-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[data-cookie-preferences] { cursor: pointer; }
.footer [data-cookie-preferences] { display: block; font: inherit; font-size: 14px; color: var(--muted, #607080); background: transparent; border: 0; padding: 0; margin: 7px 0; text-align: left; }
.footer [data-cookie-preferences]:hover { color: var(--blue, #1769ff); }
@media (max-width: 760px) {
  .consent-banner { grid-template-columns: 1fr; gap: 16px; left: 12px; right: 12px; bottom: 12px; padding: 21px; max-height: calc(100dvh - 24px); }
  .consent-banner-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .consent-banner-actions > :last-child { grid-column: auto; }
  .consent-banner-actions .consent-button { padding: 11px 7px; }
}
@media (max-width: 420px) {
  .consent-banner { padding: 18px; }
  .consent-banner h2 { font-size: 21px; }
  .consent-banner-copy > p:not(.consent-eyebrow) { font-size: 13px; }
  .consent-banner-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent-banner-actions > :last-child { grid-column: 1 / -1; }
  .consent-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 22px 18px; }
  .consent-dialog-heading h2 { font-size: 24px; }
  .consent-dialog-heading > .consent-close { right: -8px; top: -9px; }
  .consent-category { padding: 14px; }
  .consent-dialog-actions > :last-child { flex-basis: 100%; }
}
@media print {
  #tervixa-consent, [data-cookie-preferences] { display: none !important; }
}
