/* Cookie banner and Privacy settings dialog (consent.js). Plain CSS, shared by all eXtensi
   satellite websites; colours are the eXtensi brand values. */
html.xc-open { scroll-padding-bottom: var(--xc-space, 0px); }
html.xc-open body { padding-bottom: var(--xc-space, 0px); }

.xc-banner {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 1000;
  background: #143656; color: #fff; box-shadow: 0 -2px 12px rgb(0 0 0 / 0.25);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.xc-inner {
  max-width: 1140px; margin: 0 auto; padding: 10px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
}
.xc-text { flex: 1 1 380px; margin: 0; }
.xc-text a, .xc-more a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.xc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.xc-btn {
  font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer;
  padding: 9px 20px; border-radius: 6px; border: 2px solid #ff9f00;
  background: #ff9f00; color: #143656;
}
.xc-btn:hover { filter: brightness(0.95); }
.xc-btn:focus-visible { outline: 3px solid #319dcf; outline-offset: 2px; }
.xc-banner .xc-btn:focus-visible { outline-color: #fff; }
.xc-btn-ghost { background: transparent; border-color: #1f5181; color: #1f5181; }

.xc-dialog {
  /* margin: auto centres the modal; CSS resets (Tailwind preflight, normalize) set it to 0 */
  margin: auto; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  border: 0; border-radius: 12px; padding: 24px; color: #143656; background: #fff;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.3);
}
.xc-dialog:modal { overscroll-behavior: contain; }
.xc-dialog::backdrop { background: rgb(20 54 86 / 0.55); overflow: hidden; overscroll-behavior: contain; }
.xc-dialog h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.25; color: #143656; }
.xc-dialog p { margin: 4px 0 0; color: #334155; }
.xc-row { padding: 14px 0; border-top: 1px solid #e2e8f0; }
.xc-row-title { font-weight: 600; color: #143656; }
.xc-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.xc-check input { width: 20px; height: 20px; margin: 0; accent-color: #1f5181; }
.xc-more { padding-top: 12px; border-top: 1px solid #e2e8f0; }
.xc-dialog .xc-actions { margin-top: 20px; }

/* The footer "Privacy settings" button looks like the footer links next to it: no underline,
   same colour. Each site sets its own link colour and hover on top of this. */
[data-privacy-settings] {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  text-decoration: none; cursor: pointer;
}

@media (forced-colors: active) {
  .xc-btn { border-color: ButtonText; }
}
