/* Shared, cache-busted consent UI for the homepage and legal pages. */
.cookie-banner {
  position: fixed;
  z-index: 10000;
  inset: auto 24px 24px;
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  color: #13231f;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(19, 45, 81, .2);
  font: 14px/1.5 Arial, Helvetica, sans-serif;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-copy { max-width: 650px; }
.cookie-eyebrow { margin: 0 0 8px; color: #3267b2; font-size: 9px; font-weight: 750; letter-spacing: 1.3px; }
.cookie-banner h2, .cookie-dialog h2 { margin: 0 0 8px; color: #13231f; font-size: 21px; line-height: 1.2; letter-spacing: -.6px; }
.cookie-banner-copy > p:last-child, .cookie-dialog-inner > p:not(.cookie-eyebrow) { margin: 0; color: #65736d; font-size: 12px; line-height: 1.6; }
.cookie-banner a, .cookie-dialog a { color: #245aa6; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions, .cookie-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.cookie-button { min-height: 42px; padding: 0 14px; border: 1px solid #d7e0eb; border-radius: 8px; appearance: none; background: #fff; color: #183e70; font: 700 11px/1 Arial, Helvetica, sans-serif; white-space: nowrap; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.cookie-button:hover { transform: translateY(-1px); border-color: #93add0; background: #f7faff; }
.cookie-button.primary { border-color: #245aa6; background: #245aa6; color: #fff; }
.cookie-button.primary:hover { border-color: #19477f; background: #19477f; }
.cookie-settings-trigger { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 0; border: 0; appearance: none; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.cookie-settings-trigger:hover { color: #245aa6; }
.cookie-dialog { width: min(520px, calc(100% - 32px)); max-width: none; max-height: min(90vh, 680px); overflow: auto; padding: 0; border: 0; border-radius: 16px; color: #13231f; box-shadow: 0 28px 100px rgba(12, 30, 56, .28); }
.cookie-dialog::backdrop { background: rgba(13, 29, 52, .48); backdrop-filter: blur(3px); }
.cookie-dialog-inner { position: relative; padding: 30px; }
.cookie-dialog-close { position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; appearance: none; background: #f1f5fa; color: #536579; font: 23px/1 Arial, sans-serif; cursor: pointer; }
.cookie-dialog-inner > p:not(.cookie-eyebrow) { margin-bottom: 20px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #e9eef4; color: #13231f; }
.cookie-option strong, .cookie-option small { display: block; }
.cookie-option strong { font-size: 12px; }
.cookie-option small { margin-top: 4px; color: #75818d; font-size: 10px; line-height: 1.4; }
.cookie-option input { width: 18px; height: 18px; accent-color: #245aa6; flex: none; }
.cookie-dialog-actions { margin-top: 22px; }
@media (max-width: 760px) {
  .cookie-banner { inset: auto 12px 12px; width: calc(100% - 24px); max-height: min(82vh, 520px); overflow: auto; grid-template-columns: 1fr; gap: 14px; padding: 18px 17px; border-radius: 14px; }
  .cookie-banner h2 { font-size: 18px; }
  .cookie-banner-copy > p:last-child { font-size: 11px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie-actions .cookie-button { min-width: 0; padding-inline: 8px; font-size: 10px; }
  .cookie-actions .cookie-button.primary { grid-column: 1 / -1; grid-row: 1; }
  .cookie-actions .cookie-button.secondary { grid-row: 2; }
  .cookie-dialog-inner { padding: 26px 21px 21px; }
  .cookie-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-dialog-actions .cookie-button { padding-inline: 8px; font-size: 10px; }
}
