/* Cookie consent banner and Settings dialog (assets/js/consent.js). Shared by getcaddle.com and askcaddle.com. */
.cc-banner {
  position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px;
  max-width: 1040px; margin-inline: auto;
  background: #fff; color: #3e3e3e; border-top: 4px solid #234c78; border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  font: 400 0.9375rem/1.5 "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.cc-banner[hidden] { display: none; }
.cc-banner__inner { display: flex; align-items: center; gap: 16px 32px; padding: 20px 24px; }
.cc-banner__text { flex: 1 1 auto; }
.cc-banner p, .cc-dialog p { margin: 0; }
.cc-title { margin: 0 0 4px; font: 500 1.125rem/1.3 "Outfit", Arial, sans-serif; color: #234c78; }
.cc-banner a, .cc-dialog a { color: #234c78; text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; flex: 0 0 auto; }
.cc-btn {
  font: 400 1rem/1.5 "Outfit", Arial, sans-serif; cursor: pointer;
  padding: 0.5rem 1.25rem; border: 1px solid #234c78; border-radius: 0.375rem;
}
.cc-btn--primary { background: #234c78; color: #fff; }
.cc-btn--primary:hover { background: #1a3a5d; border-color: #1a3a5d; }
.cc-btn--secondary { background: #fff; color: #234c78; }
.cc-btn--secondary:hover { background: #eef4fa; }
.cc-btn--link { background: none; border-color: transparent; color: #234c78; text-decoration: underline; text-underline-offset: 2px; padding-inline: 0.5rem; }
.cc-btn:focus-visible, .cc-switch:focus-visible, .cc-close:focus-visible { outline: 3px solid #7dd2ee; outline-offset: 2px; }

.cc-dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 0.5rem;
  color: #3e3e3e; box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
  font: 400 0.9375rem/1.5 "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.cc-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.cc-dialog__body { position: relative; padding: 28px 24px 24px; }
.cc-dialog .cc-title { font-size: 1.375rem; margin-bottom: 8px; padding-right: 32px; }
.cc-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; font-size: 1.75rem; line-height: 1; color: #3e3e3e; cursor: pointer; }
.cc-close:hover { background: #f0f0f0; }
.cc-row { padding: 16px 0; border-top: 1px solid #e6e6e6; }
.cc-row:first-of-type { margin-top: 16px; }
.cc-row__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 4px; }
.cc-row__name { font-weight: 500; color: #3e3e3e; }
.cc-row__text { font-size: 0.875rem; color: #5a5a5a; }
.cc-tools { display: block; margin-top: 2px; color: #6b6b6b; }
.cc-always { font-size: 0.875rem; color: #234c78; font-weight: 500; white-space: nowrap; }
.cc-switch {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; margin: 0; cursor: pointer;
  width: 44px; height: 24px; border-radius: 12px; background: #b3b3b2; position: relative; transition: background .15s;
}
.cc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.cc-switch:checked { background: #234c78; }
.cc-switch:checked::after { transform: translateX(20px); }
.cc-dialog .cc-actions { margin-top: 8px; padding-top: 16px; border-top: 1px solid #e6e6e6; }

/* Footer "Cookie settings" link (a button styled like the links next to it) */
.cookie-settings-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.cookie-settings-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .cc-banner { left: 8px; right: 8px; bottom: 8px; }
  .cc-banner__inner { flex-direction: column; align-items: stretch; padding: 16px; }
  .cc-banner .cc-actions .cc-btn--primary { flex: 1 1 40%; }
  .cc-banner .cc-actions .cc-btn--link { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .cc-switch, .cc-switch::after { transition: none; } }
