.cookie-consent[hidden], .cookie-reopen[hidden], .cookie-consent [hidden] { display: none !important; }
.cookie-consent {
  --cookie-card-bottom: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .5rem;
  position: fixed; bottom: var(--cookie-card-bottom); left: 50%; right: auto; z-index: 1100;
  bottom: calc(var(--cookie-card-bottom) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); width: calc(100% - 32px); max-width: 660px; box-sizing: border-box;
  background: linear-gradient(145deg, #fff, #f0f6ff); color: #243247; border: 2px solid #8dbcf1;
  border-radius: 20px; padding: 1.5rem; overflow-y: auto;
  max-height: calc(100vh - var(--cookie-card-bottom) - 16px);
  max-height: calc(100vh - var(--cookie-card-bottom) - 16px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px));
  box-shadow: 0 16px 48px #24324724, 0 3px 12px #174e8310; font-size: 1rem; line-height: 1.5;
}
.cookie-copy { flex: 0 0 auto; width: 100%; max-width: 68ch; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.cookie-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; }
.cookie-heading h2 { margin: 0; color: inherit; font-size: 1.3rem; font-weight: 600; line-height: 1.4; }
.cookie-close { flex-shrink: 0; display: grid; place-items: center; position: relative; isolation: isolate; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #243247; font: inherit; font-size: 1.375rem; line-height: 1; cursor: pointer; }
.cookie-close::before { content: ''; position: absolute; inset: 6px; z-index: -1; border: 1px solid #d5e6fc; border-radius: 50%; background: #fff; }
.cookie-close:hover::before { background: #e1edfa; }
.cookie-main { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; }
.cookie-consent p { margin: 0; }
.cookie-consent .cookie-note { font-size: .875rem; }
.cookie-consent #cookie-consent-status:empty { display: none; }
.cookie-actions { display: flex; flex: 0 0 auto; align-self: flex-end; justify-content: flex-end; width: 100%; max-width: 32rem; gap: .75rem; }
.cookie-actions button, .cookie-preferences button {
  flex: 1 1 0; width: 8rem; min-width: 0; padding: .65rem 1rem; min-height: 44px;
  border: 2px solid #174e83; background: #174e83; color: #fff;
  border-radius: 10px; font: inherit; cursor: pointer;
}
.cookie-actions button:hover, .cookie-preferences button:hover { background: #123b63; border-color: #123b63; }
.cookie-preferences { width: 100%; }
.cookie-option { padding: 1rem; margin: 1rem 0; border: 1px solid #d5e6fc; border-radius: 10px; background: #fff; }
.cookie-option label { flex-wrap: wrap; }
.cookie-option label .cookie-note { font-weight: 400; }
.cookie-option p:last-child { margin-bottom: 0; }
.cookie-preferences p { margin-bottom: .75rem; }
.cookie-preferences label { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.cookie-preferences input { width: 20px; height: 20px; flex-shrink: 0; accent-color: #174e83; }
.cookie-preferences button { width: auto; }
.cookie-preferences-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
.cookie-preferences .cookie-back { flex: 0 0 auto; min-width: 6rem; background: transparent; color: #174e83; }
.cookie-preferences .cookie-back:hover { background: #e1edfa; }
.cookie-preferences input:focus-visible { outline: 3px solid #243247; outline-offset: 3px; }
.cookie-reopen { background: none; color: inherit; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.cookie-consent a { color: #174e83; text-decoration: underline; }
.cookie-consent button:focus-visible, .cookie-consent a:focus-visible, .footer-legal a:focus-visible, .cookie-reopen:focus-visible { outline: 3px solid #243247; outline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: .75rem 1.5rem; }
.footer-legal-choices { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.footer-legal a { color: #174e83; text-decoration: underline; }
@media (max-width: 48rem) {
  .cookie-consent { --cookie-card-bottom: 16px; padding: 1rem; }
  .cookie-actions { width: 100%; max-width: none; flex-wrap: wrap; }
  .cookie-actions button { width: auto; overflow-wrap: anywhere; }
}
@media (max-width: 1199.98px) {
  .footer-legal { justify-content: center; text-align: center; }
  .footer-legal-choices { justify-content: center; }
}
@supports (height: 100dvh) {
  .cookie-consent { max-height: calc(100dvh - var(--cookie-card-bottom) - 16px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px)); }
}
