#novo-cookie-notice {
  --novo-cookie-accent: #604083;
  --novo-cookie-ink: #352445;
  --novo-cookie-muted: #665b70;
  --novo-cookie-pale: #f6f2fa;
  --novo-cookie-line: #e8e0ee;
  color: var(--novo-cookie-ink);
  font-family: Montserrat, Arial, sans-serif;
}

#novo-cookie-notice *,
#novo-cookie-notice *::before,
#novo-cookie-notice *::after {
  box-sizing: border-box;
}

#novo-cookie-notice :is(button, a):focus-visible {
  outline: 3px solid #9574b3;
  outline-offset: 3px;
}

#novo-cookie-banner {
  position: fixed;
  z-index: 9990;
  inset: auto max(24px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  max-width: 1024px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--novo-cookie-line);
  border-radius: 20px;
  box-shadow: 0 12px 44px #2c143326, 0 2px 6px #2c143308;
}

#novo-cookie-banner[hidden],
body.modal-open #novo-cookie-banner {
  display: none;
}

body:has(.section_popup.novo-open, dialog[open]) #novo-cookie-banner {
  display: none;
}

/* Only one bottom notice at a time; the article prompt returns after dismissal. */
body:has(#novo-cookie-banner:not([hidden])) .novo-nudge {
  visibility: hidden;
  pointer-events: none;
}

#novo-cookie-notice .novo-cookie-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--novo-cookie-accent);
  background: #f0e8f7;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1px;
}

#novo-cookie-banner h3 {
  margin: 0 0 5px;
  color: var(--novo-cookie-ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.25px;
}

#novo-cookie-banner p {
  margin: 0;
  color: var(--novo-cookie-muted);
  font-size: 13px;
  line-height: 1.65;
}

#novo-cookie-banner .novo-cookie-actions {
  display: flex;
  gap: 10px;
}

#novo-cookie-notice .novo-cookie-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}

#novo-cookie-notice .novo-cookie-primary {
  background: var(--novo-cookie-accent);
  color: #fff;
}

#novo-cookie-notice .novo-cookie-primary:hover {
  background: #4c306a;
}

#novo-cookie-notice .novo-cookie-secondary {
  background: #f4eef9;
  color: var(--novo-cookie-accent);
}

#novo-cookie-notice .novo-cookie-secondary:hover {
  background: #e9dff2;
}

html:has(#novo-cookie-dialog[open]) {
  overflow: hidden;
}

#novo-cookie-dialog {
  position: fixed;
  inset: 0;
  width: min(488px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--novo-cookie-ink);
  box-shadow: 0 24px 72px #26143533;
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

#novo-cookie-dialog:not([open]) {
  display: none;
}

#novo-cookie-dialog::backdrop {
  background: #25183073;
  backdrop-filter: blur(3px);
}

#novo-cookie-dialog .novo-cookie-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--novo-cookie-pale);
  color: var(--novo-cookie-muted);
  font: 400 25px/1 Arial, sans-serif;
  cursor: pointer;
}

#novo-cookie-dialog .novo-cookie-mark {
  margin-bottom: 19px;
}

#novo-cookie-dialog h2 {
  margin: 0 0 11px;
  color: var(--novo-cookie-ink);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -.5px;
  text-transform: none;
}

#novo-cookie-dialog .novo-cookie-intro,
#novo-cookie-dialog .novo-cookie-section p {
  color: var(--novo-cookie-muted);
  font-size: 12px;
  line-height: 1.75;
}

#novo-cookie-dialog .novo-cookie-intro {
  margin: 0 0 21px;
}

#novo-cookie-dialog .novo-cookie-section {
  margin-bottom: 19px;
}

#novo-cookie-dialog .novo-cookie-section h3 {
  margin: 0 0 5px;
  color: var(--novo-cookie-ink);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

#novo-cookie-dialog .novo-cookie-section p {
  margin: 0;
}

#novo-cookie-dialog .novo-cookie-explanation {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--novo-cookie-pale);
  color: var(--novo-cookie-ink);
  font-size: 12px;
  line-height: 1.7;
}

#novo-cookie-dialog .novo-cookie-policy {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--novo-cookie-accent);
  font-size: 12px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#novo-cookie-dialog .novo-cookie-action {
  width: 100%;
}

.site-footer .novo-cookie-footer {
  margin: 18px 0 0;
}

.site-footer .novo-cookie-footer a[href="#novo-cookie-info"] {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .novo-cookie-footer a[href="#novo-cookie-info"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (width < 700px) {
  #novo-cookie-banner {
    inset: auto max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 14px 11px;
    padding: 17px;
  }

  body:has(#sticky.sticky-cta:not([hidden])) #novo-cookie-banner {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }

  #novo-cookie-banner .novo-cookie-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  #novo-cookie-banner h3 {
    font-size: 16px;
  }

  #novo-cookie-banner p {
    font-size: 12px;
  }

  #novo-cookie-banner .novo-cookie-actions {
    grid-column: 1 / -1;
  }

  #novo-cookie-banner .novo-cookie-action {
    flex: 1;
    padding-inline: 12px;
  }

  #novo-cookie-dialog {
    padding: 23px;
    border-radius: 21px;
  }

  #novo-cookie-dialog h2 {
    font-size: 21px;
  }
}
