/* ===== Cookie consent (banner, preference centre, revisit button) =====
   Sized and coloured to match the live site's CookieYes setup. */
.cc-root, .cc-root * { box-sizing: border-box; }
.cc-root { font-family: var(--ff-body, "Rubik", sans-serif); letter-spacing: normal; color: #212121; }

/* Consent popup: 440px card anchored bottom-left, just above the cookie button (15px + 45px + 12px gap) */
.cc-banner {
  position: fixed; left: 15px; bottom: 72px; width: 440px; max-width: calc(100vw - 30px);
  max-height: calc(100vh - 88px); overflow-y: auto; z-index: 2147483002;
  background: #fff; border: 1px solid #f4f4f4; border-radius: 6px; padding: 22px 26px 24px;
  box-shadow: 0 32px 68px rgba(0,0,0,.3);
}
.cc-banner .cc-title { padding-right: 28px; }
.cc-popup-close { position: absolute; top: 18px; right: 18px; }
.cc-banner[hidden], .cc-overlay[hidden], .cc-modal[hidden], .cc-revisit[hidden] { display: none; }
.cc-title { font-size: 18px; line-height: 24px; font-weight: 700; margin: 0 0 12px; color: #212121; font-family: inherit; }
.cc-text { font-size: 14px; line-height: 24px; margin: 0 0 16px; color: #212121; }
.cc-actions { display: flex; gap: 8px; }
.cc-btn {
  flex: 1 1 auto; font: 500 14px/24px var(--ff-body, "Rubik", sans-serif); letter-spacing: normal;
  padding: 8px; border: 2px solid #1863dc; border-radius: 2px; background: transparent; color: #1863dc;
  cursor: pointer; text-align: center; transition: opacity .2s;
}
.cc-btn:hover { opacity: .8; }
.cc-btn-primary { background: #1863dc; color: #fff; }
.cc-btn:focus-visible, .cc-close:focus-visible, .cc-acc-btn:focus-visible, .cc-switch input:focus-visible + span, .cc-revisit:focus-visible { outline: 2px solid #1863dc; outline-offset: 2px; }

/* Preference centre */
.cc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 2147483001; }
.cc-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2147483002;
  width: 845px; max-width: calc(100vw - 32px); max-height: 79vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 6px; box-shadow: 0 32px 68px rgba(0,0,0,.3);
}
.cc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid #f4f4f4; }
.cc-modal-head .cc-title { margin: 0; }
.cc-close { width: 24px; height: 24px; border: 0; background: none; cursor: pointer; padding: 0; color: #212121; display: grid; place-items: center; }
.cc-close svg { width: 14px; height: 14px; }
.cc-modal-body { overflow-y: auto; padding: 12px 24px 0; border-bottom: 1px solid #f4f4f4; }
.cc-modal-body > .cc-text { margin: 0 0 12px; }
.cc-more { border: 0; background: none; padding: 0; color: #1863dc; font: inherit; cursor: pointer; }
.cc-intro-extra[hidden] { display: none; }
.cc-acc { border-top: 1px solid #f4f4f4; padding: 16px 0; }
.cc-acc-head { display: flex; align-items: center; gap: 10px; }
.cc-acc-btn { flex: 1; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; cursor: pointer; font: 700 16px/24px var(--ff-body, "Rubik", sans-serif); color: #212121; text-align: left; }
.cc-chev { width: 10px; height: 10px; transition: transform .2s; flex: none; }
.cc-acc.open .cc-chev { transform: rotate(90deg); }
.cc-always { font-size: 14px; line-height: 24px; font-weight: 600; color: #008000; }
.cc-acc-des { font-size: 14px; line-height: 24px; color: #212121; margin: 8px 0 0 22px; }
.cc-acc-detail { margin: 10px 0 0 22px; padding: 10px 14px; background: #f4f4f4; border-radius: 4px; font-size: 13px; line-height: 20px; color: #444; }
.cc-acc-detail[hidden] { display: none; }

/* Toggle switch */
.cc-switch { position: relative; width: 44px; height: 24px; flex: none; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch span { position: absolute; inset: 0; border-radius: 24px; background: #d0d5d2; transition: background .2s; }
.cc-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.cc-switch input:checked + span { background: #1863dc; }
.cc-switch input:checked + span::after { transform: translateX(20px); }

.cc-modal-foot { display: flex; gap: 8px; padding: 22px 24px; }
.cc-modal-foot .cc-btn { flex: 1; }
.cc-modal-foot .cc-btn-save { flex: 1.33; }

/* Cookie button: 45px blue circle in the bottom-left corner, always shown; opens the consent popup */
.cc-revisit {
  position: fixed; left: 15px; bottom: 15px; width: 45px; height: 45px; border-radius: 50%; border: 0; padding: 0;
  background: #0056a7; color: #fff; cursor: pointer; z-index: 2147483003; display: grid; place-items: center; /* above the overlay so it can also close the popup */
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.cc-revisit svg { width: 26px; height: 26px; }
.cc-revisit:hover { background: #00468a; }
body.cc-modal-open { overflow: hidden; }

@media (max-width: 575px) {
  .cc-banner { left: 15px; right: 15px; width: auto; padding: 20px 16px; }
  .cc-popup-close { top: 14px; right: 12px; }
  .cc-actions { flex-wrap: wrap; }
  .cc-actions .cc-btn { flex: 1 1 calc(50% - 4px); }
  .cc-actions .cc-btn-primary { flex-basis: 100%; order: -1; }
  .cc-modal { max-width: 100vw; width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .cc-modal-head, .cc-modal-foot { padding: 16px; }
  .cc-modal-body { padding: 12px 16px 0; }
  .cc-modal-foot { flex-direction: column; }
  .cc-acc-des, .cc-acc-detail { margin-left: 0; }
  .cc-pref-open .cc-revisit { display: none; } /* full-screen preferences: keep the icon off the Accept All button */
}
