/* The floating notice shares its measured height with the page's scroll area. */
html { scroll-padding-bottom: var(--ck-cookie-clearance, 0px); }
body { padding-bottom: var(--ck-cookie-clearance, 0px); }
.ck-cookie-notice,
.ck-cookie-dialog {
  box-sizing: border-box;
  color: var(--ck-text, #34445f);
  background: var(--ck-surface, #fff);
  font: 400 14px/1.55 var(--ck-font-sans, system-ui);
  text-align: left;
}
.ck-cookie-notice[hidden], .ck-cookie-status[hidden], [data-cookie-settings][hidden] { display: none !important; }
.ck-cookie-notice {
  position: fixed;
  z-index: 90;
  inset-inline: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  padding: 20px 24px;
  width: auto;
  max-width: 1120px;
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ck-border-strong, #d5ddea);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgb(11 26 51 / 14%), 0 2px 6px rgb(11 26 51 / 5%);
  animation: ck-cookie-enter 180ms ease-out;
}
.ck-cookie-notice__icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; color: var(--ck-accent-text, #1847c9); background: var(--ck-surface-tint, #edf4fc); }
.ck-cookie-notice__copy { flex: 1 1 auto; min-width: 0; }
.ck-cookie-notice h2, .ck-cookie-dialog h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--ck-text-strong, #0b1a33); letter-spacing: normal; }
.ck-cookie-notice h2 { font-size: 15px; margin-bottom: 4px; }
.ck-cookie-notice p { margin: 0; font-size: 13px; line-height: 1.6; }
.ck-cookie-notice a, .ck-cookie-dialog a { color: var(--ck-accent-text, #1847c9); text-decoration: underline; text-underline-offset: 3px; }
.ck-cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-cookie-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ck-border-control, #8290a6);
  border-radius: 8px;
  background: var(--ck-surface, #fff);
  color: var(--ck-text-strong, #0b1a33);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.ck-cookie-button:hover { background: var(--ck-surface-sunken, #f5f8fd); }
.ck-cookie-notice .ck-cookie-actions { flex: 0 0 auto; flex-wrap: nowrap; }
.ck-cookie-notice .ck-cookie-button { border-radius: 10px; white-space: nowrap; }
.ck-cookie-notice .ck-cookie-button:not(.ck-cookie-button--quiet) { color: var(--ck-accent-text, #1847c9); background: var(--ck-surface-tint, #edf4fc); border-color: var(--ck-border-strong, #d5ddea); }
.ck-cookie-notice .ck-cookie-button:not(.ck-cookie-button--quiet):hover { border-color: currentColor; }
.ck-cookie-button--quiet { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.ck-cookie-button:focus-visible, .ck-cookie-dialog input:focus-visible, .ck-cookie-link:focus-visible { outline: 2px solid var(--ck-accent, #1f5af0); outline-offset: 3px; }
.ck-cookie-dialog { margin: auto; padding: 24px; width: min(560px, calc(100% - 24px)); max-height: calc(100svh - 24px); overflow-y: auto; border: 1px solid var(--ck-border-strong, #d5ddea); border-radius: 12px; }
.ck-cookie-dialog::backdrop { background: rgb(11 26 51 / 55%); }
.ck-cookie-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ck-cookie-dialog p { margin: 12px 0; }
.ck-cookie-purpose { display: block; margin: 12px 0; padding: 14px; border: 1px solid var(--ck-border-strong, #d5ddea); border-radius: 8px; }
.ck-cookie-purpose strong { display: block; color: var(--ck-text-strong, #0b1a33); font-weight: 600; }
.ck-cookie-purpose p { margin: 4px 0 0; }
.ck-cookie-purpose--optional { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.ck-cookie-purpose input { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: var(--ck-accent, #1f5af0); }
.ck-cookie-purpose span span { display: block; margin-top: 4px; }
.ck-cookie-link { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ck-cookie-status { margin: 12px auto; padding: 12px 20px; max-width: 960px; font-size: 14px; }
.docs-cookie-footer { margin-left: var(--docs-sidebar-width); padding: 20px 32px; font-size: 13px; }
@media (max-width: 1024px) { .docs-cookie-footer { margin-left: 0; } }
@media (max-width: 900px) {
  .ck-cookie-notice { flex-wrap: wrap; gap: 12px 16px; }
  .ck-cookie-notice__copy { flex-basis: calc(100% - 58px); }
  .ck-cookie-notice .ck-cookie-actions { margin-left: 58px; }
}
@media (max-width: 480px) {
  .ck-cookie-notice { inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 16px; max-height: calc(100svh - 24px); border-radius: 14px; }
  .ck-cookie-notice__icon { display: none; }
  .ck-cookie-notice .ck-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; margin-left: 0; }
  .ck-cookie-notice .ck-cookie-button { padding-inline: 8px; }
  .ck-cookie-notice .ck-cookie-button--quiet { grid-column: 1 / -1; }
  .ck-cookie-actions { width: 100%; }
  .ck-cookie-actions .ck-cookie-button { flex: 1 1 auto; }
  .ck-cookie-dialog { padding: 16px; }
}
@keyframes ck-cookie-enter { from { transform: translateY(12px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .ck-cookie-notice { animation: none; } }
