[data-fnm-consent] [hidden] { display: none !important; }
.fnm-cookie-notice, .fnm-cookie-preferences {
  box-sizing: border-box;
  color: #142d44;
  background: #fff;
  border: 1px solid #cddce8;
  box-shadow: 0 12px 44px #0b294645;
  font: 400 .925rem/1.5 system-ui, sans-serif;
  border-radius: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 3vw, 24px);
}
.fnm-cookie-notice {
  position: fixed;
  z-index: 1300;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  width: min(570px, calc(100% - 32px));
  max-height: min(65dvh, 510px);
}
.fnm-cookie-preferences {
  width: min(600px, calc(100% - 28px));
  max-height: 85dvh;
  margin: auto;
}
.fnm-cookie-preferences:not([open]) { display: none; }
.fnm-cookie-preferences::backdrop { background: #11263880; }
.fnm-cookie-preferences form { display: block; margin: 0; }
.fnm-cookie-preferences header { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.fnm-cookie-preferences section { padding: 12px; margin-top: 12px; background: #eff5fa; border-radius: 10px; }
.fnm-cookie-preferences h3, .fnm-cookie-preferences label { color: inherit; margin: 0; font-size: 1rem; font-weight: 750; }
.fnm-cookie-preferences label { display: flex; gap: 8px; align-items: center; }
.fnm-cookie-preferences label input { width: 18px; height: 18px; margin: 0; }
.fnm-cookie-preferences small { color: #355571; font-weight: 500; }
.fnm-cookie-notice h2, .fnm-cookie-preferences h2 { margin: 0; color: inherit; font-size: clamp(1.12rem, 2.4vw, 1.4rem); line-height: 1.2; }
.fnm-cookie-notice p, .fnm-cookie-preferences p { margin: 8px 0; color: inherit; }
.fnm-cookie-notice [data-save-status]:empty { display: none; }
.fnm-cookie-notice a, .fnm-cookie-preferences a { color: #14547d; text-decoration: underline; }
.fnm-cookie-notice button, .fnm-cookie-preferences button {
  padding: 8px 13px;
  min-height: 44px;
  font: 700 .9rem/1.2 system-ui, sans-serif;
  background: #183b5b;
  border: 1px solid #183b5b;
  border-radius: 9px;
  color: white;
  cursor: pointer;
}
.fnm-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fnm-cookie-actions [data-custom], .fnm-cookie-preferences header button { background: white; color: #183b5b; }
.fnm-cookie-footer { all: unset; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.fnm-cookie-footer:focus-visible, [data-fnm-consent] :focus-visible { outline: 2px solid #1c6795; outline-offset: 3px; }
@media (max-width: 600px) {
  .fnm-cookie-notice { inset: auto 0 0; width: 100%; border-radius: 16px 16px 0 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .fnm-cookie-actions button { flex: 1 1 auto; }
}
