.consent-banner .consent-actions [data-consent="necessary"],.consent-banner .consent-actions [data-consent="all"]{background:transparent;color:inherit;border-color:var(--border-strong,var(--border));box-shadow:none}
.consent-feedback[role="alert"]{font-weight:600}

/* Keep the choice buttons in their own row when the copy needs to scroll. */
body .consent-banner[role="region"] {
  --consent-top-gap:max(12px,env(safe-area-inset-top,0px));
  --consent-bottom-gap:max(16px,env(safe-area-inset-bottom,0px));
  left:max(12px,env(safe-area-inset-left,0px));
  right:max(12px,env(safe-area-inset-right,0px));
  bottom:var(--consent-bottom-gap);
  width:auto;
  max-width:560px;
  min-width:0;
  min-height:0;
  max-height:calc(100vh - var(--consent-top-gap) - var(--consent-bottom-gap));
  max-height:calc(100dvh - var(--consent-top-gap) - var(--consent-bottom-gap));
  margin-inline:auto;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:8px;
  padding:10px 12px;
  box-sizing:border-box;
  overflow:auto;
  overscroll-behavior:contain;
  border-radius:14px;
  box-shadow:0 12px 36px #0006;
}
body .consent-banner[role="region"][hidden] { display:none!important; }
body .consent-banner[role="region"]>div { min-width:0; }
body .consent-banner[role="region"] .consent-banner-copy { flex:0 1 auto; min-height:0; overflow:auto; scrollbar-width:thin; }
body .consent-banner[role="region"] .consent-banner-copy:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
body .consent-banner[role="region"] h2 { margin:0; font-size:18px; line-height:1.2; overflow-wrap:anywhere; }
body .consent-banner[role="region"] p:not(.eyebrow) { margin:4px 0 0; max-width:none; font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
body .consent-banner[role="region"] p.consent-banner-links { display:flex; flex-wrap:wrap; gap:2px 12px; }
body .consent-banner[role="region"] .consent-actions,
.consent-modal .consent-dialog[role="dialog"] .consent-actions {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:8px;
  margin:0;
  min-width:0;
}
body .consent-banner[role="region"] .consent-actions .btn,
.consent-modal .consent-dialog[role="dialog"] .consent-actions .btn {
  grid-column:auto;
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:44px;
  padding:10px 12px;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:center;
  font-size:12px;
  line-height:1.4;
}
body .consent-banner[role="region"] .consent-actions { flex:0 0 auto; gap:6px; }
body .consent-banner[role="region"] .consent-actions .btn { padding:6px 5px; line-height:1.2; }
body .consent-banner[role="region"] .consent-actions .btn:last-child { grid-column:auto; }
/* Retain the existing modal semantics and focus handling; only contain layout. */
body .consent-modal {
  padding-top:max(12px,env(safe-area-inset-top,0px));
  padding-right:max(12px,env(safe-area-inset-right,0px));
  padding-bottom:max(12px,env(safe-area-inset-bottom,0px));
  padding-left:max(12px,env(safe-area-inset-left,0px));
}
.consent-modal .consent-dialog[role="dialog"] {
  min-width:0;
  max-width:100%;
  max-height:calc(100vh - max(12px,env(safe-area-inset-top,0px)) - max(12px,env(safe-area-inset-bottom,0px)));
  max-height:calc(100dvh - max(12px,env(safe-area-inset-top,0px)) - max(12px,env(safe-area-inset-bottom,0px)));
  overscroll-behavior:contain;
  overflow:auto;
  overflow-wrap:anywhere;
}
.consent-modal .consent-dialog[role="dialog"] h2 { padding-right:32px; font-size:24px; line-height:1.2; }
.consent-modal .consent-dialog[role="dialog"] .consent-category { min-width:0; gap:12px; }
.consent-modal .consent-dialog[role="dialog"] .consent-category>div { min-width:0; flex:1; }
.consent-modal .consent-dialog[role="dialog"] .consent-category>span { flex:0 1 auto; }
.consent-modal .consent-dialog[role="dialog"] .consent-category input { flex:0 0 22px; min-height:22px; }
@media(max-width:600px) {
  body .consent-banner[role="region"] { --consent-bottom-gap:max(12px,env(safe-area-inset-bottom,0px)); padding:8px 10px; gap:6px; border-radius:12px; }
  body .consent-banner[role="region"] h2 { font-size:16px; }
  .consent-modal .consent-dialog[role="dialog"] .consent-actions { grid-template-columns:minmax(0,1fr); }
  .consent-modal .consent-dialog[role="dialog"] { padding:22px 16px 16px; border-radius:12px; }
}
