/* One self-contained consent interface for AUTOINTELLIA and Academy. */
#cookie-consent-banner,
#cookie-preferences-modal {
  box-sizing: border-box;
  font: 14px/1.5 "Trebuchet MS", Helvetica, sans-serif;
  color: #0d1f3c;
  text-align: left;
  letter-spacing: normal;
}
#cookie-consent-banner *,
#cookie-preferences-modal *,
#cookie-preferences-modal *::before { box-sizing: border-box; }
#cookie-consent-banner[hidden],
#cookie-preferences-modal[hidden] { display: none !important; }
#cookie-consent-banner {
  position: fixed;
  inset: auto 16px 16px auto;
  z-index: 2147483000;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid #d4d8dd;
  border-radius: 8px;
  box-shadow: 0 18px 48px #0f172a24;
}
#cookie-consent-banner .cookie-consent-banner__content { display: grid; gap: 12px; }
#cookie-consent-banner p,
#cookie-preferences-modal p { margin: 0; font: inherit; }
#cookie-consent-banner .cookie-consent-banner__actions,
#cookie-preferences-modal .cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
#cookie-consent-banner .cookie-consent-links { margin-top: 10px; font-size: 13px; }
#cookie-consent-banner a { color: #0d1f3c; text-decoration: underline; text-underline-offset: 2px; }
#cookie-consent-banner button,
#cookie-preferences-modal button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #526071;
  border-radius: 5px;
  background: #fff;
  color: #0d1f3c;
  font: inherit;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
#cookie-consent-banner button[data-cookie-action="accept-all"],
#cookie-preferences-modal button[data-cookie-action="accept-all"] { background: #0d1f3c; color: #fff; border-color: #0d1f3c; }
#cookie-consent-banner button:hover,
#cookie-preferences-modal button:hover { box-shadow: inset 0 0 0 1px currentColor; }
#cookie-consent-banner :focus-visible,
#cookie-preferences-modal :focus-visible { outline: 3px solid #e4232d; outline-offset: 3px; }
#cookie-preferences-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: start center;
  padding: 5vh 12px;
  isolation: isolate;
  overscroll-behavior: contain;
}
#cookie-preferences-modal .cookie-modal__overlay { position: absolute; inset: 0; background: #0009; }
#cookie-preferences-modal .cookie-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: 90vh;
  max-height: 90dvh;
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}
#cookie-preferences-modal .cookie-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
#cookie-preferences-modal h2 { margin: 8px 0 0; color: inherit; font: 700 20px/1.3 "Trebuchet MS", Helvetica, sans-serif; text-transform: none; letter-spacing: normal; }
#cookie-preferences-modal .cookie-modal__close { flex: 0 0 44px; width: 44px; padding: 0; font-size: 26px; line-height: 1; background-image: none; }
#cookie-preferences-modal .cookie-modal__summary { margin-bottom: 8px; color: #526071; }
#cookie-preferences-modal .cookie-consent-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; margin: 0; padding: 16px 0; border-bottom: 1px solid #e2e6eb; cursor: pointer; }
#cookie-preferences-modal .cookie-consent-option strong { display: block; margin-bottom: 4px; font-weight: 700; }
#cookie-preferences-modal .cookie-consent-option__description { display: block; color: #526071; }
#cookie-preferences-modal input[type="checkbox"] { appearance: none; position: relative; flex: 0 0 42px; width: 42px; height: 24px; margin: 0; padding: 0; background: #6b7280; border: 1px solid #6b7280; border-radius: 20px; cursor: pointer; }
#cookie-preferences-modal input[type="checkbox"]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
#cookie-preferences-modal input[type="checkbox"]:checked { background: #0d1f3c; border-color: #0d1f3c; }
#cookie-preferences-modal input[type="checkbox"]:checked::before { transform: translateX(18px); }
#cookie-preferences-modal input:disabled { opacity: .55; cursor: default; }
#cookie-preferences-modal .cookie-modal__actions { margin-top: 20px; }
html:has(#cookie-preferences-modal:not([hidden])) { overflow: hidden; }
body:has(#cookie-preferences-modal:not([hidden])) #cookie-consent-banner { visibility: hidden; }
.academy-cookie-settings { display: block; font: inherit; font-size: 14px; min-height: 44px; padding: 8px 16px; margin: 16px auto; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) {
  #cookie-consent-banner { inset: auto 8px 8px; width: auto; max-height: calc(100dvh - 16px); padding: 12px; }
  #cookie-consent-banner .cookie-consent-banner__actions { display: grid; grid-template-columns: 1fr 1fr; }
  #cookie-consent-banner button[data-cookie-action="reject"] { grid-column: 1 / -1; }
  #cookie-preferences-modal .cookie-modal__dialog { padding: 16px; }
  #cookie-preferences-modal .cookie-modal__actions { flex-direction: column; }
  #cookie-preferences-modal .cookie-modal__actions button { width: 100%; }
}
