/* Equal-weight opt-in and rejection, with a persistent footer settings entry. */
.gs-ads-consent { position: fixed; z-index: 100; inset-inline: 16px; inset-block-end: 16px; box-sizing: border-box; width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; margin-inline-start: auto; border: 1px solid #b9c8bf; border-radius: 8px; padding: 22px; background: #fff; color: #17221e; box-shadow: 0 8px 40px #10261d2e; font: 14px/1.55 system-ui, sans-serif; text-align: start; }
.gs-ads-consent[hidden] { display: none !important; }
.gs-ads-consent h2 { margin: 0 0 10px; font: 600 19px/1.3 system-ui, sans-serif; letter-spacing: 0; }
.gs-ads-consent p { margin: 0 0 16px; font: inherit; }
.gs-ads-consent .gs-ads-consent-warning { font-weight: 600; }
.gs-ads-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gs-ads-consent button { border: 1px solid #617c6f; border-radius: 4px; padding: 10px 14px; min-height: 44px; background: #fff; color: #17221e; font: 500 14px/1.35 system-ui, sans-serif; cursor: pointer; }
.gs-ads-consent button:hover { background: #edf3ef; }
.gs-ads-consent a { color: #244f3c; text-decoration: underline; text-underline-offset: 3px; padding: 8px 2px; }
.gs-ads-choices { display: inline-block; width: auto; padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gs-ads-consent :focus-visible, .gs-ads-choices:focus-visible { outline: 2px solid #216146; outline-offset: 3px; }
/* Narrow viewports: a bottom strip no taller than a quarter of the screen. The two
   choices stay side by side; the explanation is clamped to two lines with the full
   text one tap away in the Privacy Notice. Desktop keeps the floating card above. */
@media (max-width: 600px) {
  .gs-ads-consent { inset-inline: 0; inset-block-end: 0; width: 100%; max-height: 25vh; max-height: 25dvh; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); border-width: 1px 0 0; border-radius: 12px 12px 0 0; box-shadow: 0 -6px 24px #10261d24; font-size: 13px; line-height: 1.4; }
  .gs-ads-consent h2 { margin: 0 0 6px; padding-inline-end: 42%; font-size: 14px; line-height: 1.3; }
  .gs-ads-consent p:not(.gs-ads-consent-warning) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin: 0 0 8px; }
  .gs-ads-consent .gs-ads-consent-warning { margin: 0 0 8px; }
  .gs-ads-consent .gs-ads-consent-warning[hidden] { display: none; }
  /* Reopened after acceptance: the reload warning and Close button must stay readable. */
  .gs-ads-consent:has(.gs-ads-consent-warning:not([hidden])) { max-height: 50vh; max-height: 50dvh; }
  .gs-ads-consent-actions { gap: 8px; }
  .gs-ads-consent button { flex: 1 1 40%; min-height: 42px; padding: 8px 10px; font-size: 13px; }
  .gs-ads-consent .gs-ads-consent-close { flex: 0 0 auto; }
  .gs-ads-consent a { position: absolute; inset-block-start: 10px; inset-inline-end: 14px; max-width: 40%; padding: 0; font-size: 13px; line-height: 1.3; text-align: end; }
}
