/* Greenfield Bridging — the cookie consent banner, its settings control, and the cookie
   table on cookies.html. Loaded by quotes.html, quotes-thank-you.html and cookies.html, after
   css/site.css. Behaviour is js/consent.js.

   House rules hold: radius 0, no shadows, no icons, one hue, text on ink in white at the four
   opacities. Accept and Reject are the SAME button, deliberately — the ICO expects rejecting
   to be as easy and as prominent as accepting, so neither is styled as the "default". */

/* ---------- The banner — ink, fixed to the foot of the screen ---------- */
.ck-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--gf-teal-900);
  border-top: 2px solid var(--gf-teal-400);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ck-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
  padding-top: 20px; padding-bottom: 20px;
}
.ck-copy { flex: 1 1 480px; min-width: 0; }
.ck-title {
  margin: 0; font-family: var(--font-serif); font-weight: 400;
  font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; color: #FFFFFF;
}
.ck-text { margin: 6px 0 0; max-width: 72ch; font-size: 14.5px; font-weight: 300; line-height: 1.5; color: rgba(255,255,255,0.86); }
.ck-text a { color: var(--gf-teal-400); }
.ck-text a:hover { color: #FFFFFF; }
.ck-actions { display: flex; flex: 0 0 auto; gap: 12px; }
.ck-btn { min-width: 128px; padding: 14px 22px; text-align: center; }

/* While the banner is up it takes the place of the quote page's call/quote dock rather than
   stacking on top of it, which on a phone would cover a third of the screen. */
.qt-page[data-cookie-banner-open] .qt-dock { display: none; }

/* ---------- "Cookie settings" in the footer ---------- */
/* A button, because it opens something on this page rather than going anywhere, dressed as the
   footer links beside it. */
.ck-settings {
  margin: 0; padding: 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: var(--gf-teal-700);
  transition: color 120ms linear;
}
.ck-settings:hover { color: var(--gf-teal-400); }

/* ---------- cookies.html ---------- */
.ck-page-actions { margin: 22px 0 0; }
.ck-page-btn { background: var(--gf-teal-700); color: #FFFFFF; border: 0; padding: 15px 24px; }
.ck-page-btn:hover { background: var(--gf-teal-900); color: #FFFFFF; }

/* The only table on the site. Scrolls inside its own box on a phone rather than making the
   page scroll sideways. */
.ck-table-wrap { margin: 18px 0 0; overflow-x: auto; border-top: 2px solid var(--gf-teal-900); }
.ck-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; font-weight: 300; line-height: 1.5; color: var(--gf-slate-700); }
.ck-table th, .ck-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--gf-line-300); text-align: left; vertical-align: top; }
.ck-table th {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gf-teal-900);
}
.ck-table code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; color: var(--gf-teal-900); }

@media (max-width: 620px) {
  .ck-inner { padding-top: 16px; padding-bottom: 16px; gap: 14px; }
  .ck-title { font-size: 18px; }
  .ck-text { font-size: 14px; }
  .ck-actions { width: 100%; }
  .ck-actions .ck-btn { flex: 1 1 0; min-width: 0; }
  /* Same tap target as the footer links beside it, which site.css makes full-row blocks here. */
  .ck-settings { display: block; width: 100%; padding: 11px 0; }
}
