/* site-consent v1.0.0 - identical layout on every site; colours and fonts come from the site.
 * Set these on :root in the site's own CSS (defaults shown). Everything clickable in the banner
 * and dialog uses --cc-accent and nothing else does, so set it to the site's one link/button
 * colour. Check it reaches 4.5:1 contrast on --cc-bg.
 *   --cc-font        inherit     --cc-radius       4px
 *   --cc-bg          #ffffff     --cc-text         #1f2937
 *   --cc-accent      #c8102e     --cc-accent-text  #ffffff
 *   --cc-focus       #1f2937     (focus ring)
 */
.cc-banner, .cc-overlay { font-family: var(--cc-font, inherit); font-size: 15px; line-height: 1.5; }
.cc-banner[hidden], .cc-overlay[hidden], .cc-gpc[hidden] { display: none !important; }
.cc-banner, .cc-banner *, .cc-overlay, .cc-overlay * { box-sizing: border-box; }

.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
  background: var(--cc-bg, #ffffff); color: var(--cc-text, #1f2937);
  border-top: 1px solid rgba(0, 0, 0, .12); box-shadow: 0 -6px 28px rgba(0, 0, 0, .18);
}
.cc-inner {
  max-width: 1200px; margin: 0 auto; padding: 20px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
}
.cc-text { flex: 1 1 480px; }
.cc-text p { margin: 0; }
.cc-title { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px !important; }

.cc-banner a, .cc-dialog a { color: var(--cc-accent, #c8102e); text-decoration: underline; }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cc-btn {
  appearance: none; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.2;
  min-width: 150px; padding: 12px 20px; border-radius: var(--cc-radius, 4px);
  border: 2px solid var(--cc-accent, #c8102e);
  background: var(--cc-accent, #c8102e); color: var(--cc-accent-text, #ffffff);
}
.cc-btn:hover { filter: brightness(1.1); }
.cc-link {
  appearance: none; cursor: pointer; font: inherit; background: none; border: 0; padding: 12px 4px;
  color: var(--cc-accent, #c8102e); text-decoration: underline;
}
.cc-btn:focus-visible, .cc-link:focus-visible, .cc-close:focus-visible,
.cc-banner a:focus-visible, .cc-dialog a:focus-visible, .cc-row input:focus-visible {
  outline: 3px solid var(--cc-focus, #1f2937); outline-offset: 3px;
}

.cc-overlay {
  position: fixed; inset: 0; z-index: 2147483001; background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cc-dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--cc-bg, #ffffff); color: var(--cc-text, #1f2937);
  border-radius: var(--cc-radius, 4px); padding: 28px 28px 24px; box-shadow: 0 12px 48px rgba(0, 0, 0, .3);
}
.cc-dialog h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; color: inherit; text-transform: none; letter-spacing: normal; }
.cc-dialog p { margin: 12px 0; }
.cc-gpc { padding: 12px 14px; border-left: 4px solid currentColor; background: rgba(0, 0, 0, .05); }
.cc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid rgba(0, 0, 0, .12);
}
.cc-row label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; color: inherit; font-size: inherit; font-weight: normal; margin: 0; }
.cc-row strong { color: inherit; font-weight: 700; }
.cc-row label span { font-size: 14px; opacity: .8; }
.cc-row input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--cc-accent, #c8102e); cursor: pointer; }
.cc-row input:disabled { cursor: not-allowed; }
.cc-dialog .cc-actions { margin-top: 20px; }
.cc-dialog .cc-btn { flex: 1 1 140px; min-width: 0; }
.cc-close {
  position: absolute; top: 10px; right: 12px; appearance: none; border: 0; background: none; cursor: pointer;
  font-size: 28px; line-height: 1; padding: 4px 8px; color: var(--cc-accent, #c8102e);
}

@media (max-width: 640px) {
  .cc-inner { padding: 16px; }
  .cc-banner .cc-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cc-banner .cc-btn { min-width: 0; padding: 12px 8px; white-space: nowrap; }
  .cc-banner .cc-link { grid-column: 1 / -1; justify-self: center; padding: 4px; }
}
@media print { .cc-banner, .cc-overlay { display: none !important; } }
