/* The nonmodal notice sits above the bottom-right chat launcher. */
.cookie-notice[hidden],.cookie-settings-link[hidden]{display:none}
.cookie-notice{
  position:fixed;right:max(24px,env(safe-area-inset-right));
  bottom:calc(116px + env(safe-area-inset-bottom));z-index:100000000;
  width:440px;max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 140px - env(safe-area-inset-bottom));
  overflow-y:auto;overscroll-behavior:contain;padding:22px;
  border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#4a4a4a;
  box-shadow:0 6px 30px #0d101a26;font-size:13px;line-height:1.65;
}
.cookie-notice h2{margin:0 0 10px;font-size:15px;line-height:1.5;font-weight:700;color:#243246}
.cookie-notice p{margin:0 0 12px}
.cookie-notice a{color:#176bb0;text-decoration:underline;text-underline-offset:3px;font-weight:600}
.cookie-actions{display:flex;align-items:center;gap:8px;margin-top:16px}
.cookie-button{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;padding:9px 12px;border:1px solid transparent;border-radius:24px;
  font:600 11px/1.4 var(--font-body,system-ui,sans-serif);cursor:pointer;text-align:center;
  transition:background-color .15s;
}
.cookie-button-outline{border-color:#ccd5df;background:#fff;color:#243246}
.cookie-button-outline:hover{background:#f2f5f8}
.cookie-button-primary{background:#176bb0;color:#fff}
.cookie-button-primary:hover{background:#10538a}
.cookie-button-reject{background:#fff;color:#da2128}
.cookie-button-reject:hover{background:#fff1f2}
.cookie-notice :focus-visible,.cookie-preferences :focus-visible,.cookie-settings-link:focus-visible{outline:3px solid #176bb0;outline-offset:3px}
.cookie-settings-link{margin:0 0 14px;padding:6px 0;color:#4a4a4a;font:inherit;font-size:13px;text-decoration:underline;text-underline-offset:3px}
.cookie-preferences{
  position:fixed;inset:0;margin:auto;width:520px;max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 32px);padding:24px;border:0;border-radius:16px;
  background:#fff;color:#243246;box-shadow:0 16px 64px #0d101a33;
  font:14px/1.6 var(--font-body,system-ui,sans-serif);overflow-y:auto;overscroll-behavior:contain;
}
.cookie-preferences::backdrop{background:#0d101a80}
.cookie-preferences-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.cookie-preferences h2{font-size:20px;font-weight:700;line-height:1.4}
.cookie-close{flex-shrink:0;width:40px;height:40px;border-radius:50%;color:#4a4a4a;font-size:26px}
.cookie-close:hover{background:#f2f5f8}
.cookie-preferences-intro{margin-bottom:16px;color:#616b78;font-size:13px}
.cookie-option{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-top:1px solid #e5e7eb;cursor:pointer}
.cookie-option strong{display:block;font-size:14px}
.cookie-option small{display:block;margin-top:4px;color:#616b78;font-size:12px;line-height:1.6}
.cookie-option input{flex-shrink:0;width:21px;height:21px;accent-color:#176bb0;cursor:pointer}
.cookie-option input:disabled{cursor:default}
.cookie-preferences-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.cookie-preferences-actions .cookie-button{font-size:13px;padding-inline:20px}
@media(max-width:600px){
  .cookie-notice{right:16px;bottom:calc(88px + env(safe-area-inset-bottom));padding:18px;max-height:calc(100dvh - 112px - env(safe-area-inset-bottom));font-size:12px}
  .cookie-notice h2{font-size:14px}
  .cookie-actions{flex-wrap:wrap;gap:6px}
  .cookie-button{padding:9px 10px;min-height:44px}
  .cookie-preferences{padding:20px}
}
