.analytics-consent[hidden], .consent-settings[hidden], .analytics-consent [hidden] { display: none; }
.analytics-consent, .personvern-consent-card { --consent-surface: #eaf4ee; --consent-border: #cadfd3; --consent-heading: #254f43; --consent-text: #365c50; --consent-secondary: #577366; --consent-link: #35644f; --consent-button: #f2f8f4; --consent-button-border: #9bb9a8; --consent-hover: #dcece2; }
html.analytics-consent-open { scroll-padding-bottom: var(--analytics-consent-space, 0px); }
html.analytics-consent-open body { padding-bottom: var(--analytics-consent-space, 0px); }

.analytics-consent {
  --consent-heading: #082f29;
  --consent-text: #173f36;
  --consent-secondary: #52766a;
  --consent-link: #125b49;
  position: fixed;
  z-index: 100;
  isolation: isolate;
  right: max(32px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(32px, env(safe-area-inset-left));
  max-width: none;
  max-height: 75vh;
  max-height: 75dvh;
  margin-inline: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem clamp(1.25rem, 1.6vw, 1.625rem) 1.125rem;
  border: 1px solid #d5eee2;
  border-radius: 24px;
  color: var(--consent-text);
  background: radial-gradient(ellipse at 48% 0%, #f3fbf6 0%, #e8f7f0 48%, #d8f0e6 100%);
  box-shadow: 0 3px 7px rgb(9 48 37 / 9%), 0 12px 28px rgb(9 48 37 / 15%), inset 0 1px 0 rgb(255 255 255 / 90%);
  font-family: inherit;
}
.analytics-consent-surface { display: contents; }
.analytics-consent:not([hidden]) { animation: analytics-consent-enter 400ms cubic-bezier(.22, 1, .36, 1) both; }
.analytics-consent-waves { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.analytics-consent-leaves { position: absolute; z-index: 0; right: -0.2rem; bottom: -0.7rem; width: clamp(4rem, 5.8vw, 6rem); height: auto; opacity: .87; pointer-events: none; }
.analytics-consent-inner { position: relative; z-index: 1; display: grid; grid-template-columns: clamp(9rem, 14vw, 14.5rem) minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.analytics-consent-art { position: relative; align-self: stretch; min-width: 0; pointer-events: none; }
.analytics-consent-art svg { position: absolute; bottom: -1.4rem; left: -1.25rem; display: block; width: calc(100% + 1rem); height: auto; max-width: none; overflow: visible; }
.analytics-consent-copy { min-width: 0; }
.analytics-consent h2 { margin: 0 0 .45rem; color: var(--consent-heading); font-size: clamp(1.5rem, 2.15vw, 2.25rem); font-weight: 760; letter-spacing: -.04em; line-height: 1.15; }
.analytics-consent p { max-width: 76ch; margin: 0; font-size: clamp(.96rem, 1.27vw, 1.3rem); line-height: 1.25; }
.analytics-consent-privacy { position: relative; display: inline-block; margin-top: .5rem; margin-right: 2rem; color: var(--consent-link); font-size: clamp(.95rem, 1.22vw, 1.25rem); font-weight: 550; line-height: 1.3; text-decoration-thickness: 1px; text-underline-offset: .15rem; }
.analytics-consent-privacy::after { content: "\2192"; position: absolute; top: 50%; left: calc(100% + .7rem); transform: translateY(-50%); font-size: 1.4em; font-weight: 400; line-height: .8; text-decoration: none; }
.analytics-consent-privacy:hover { color: #082f29; text-decoration-thickness: 2px; }
.analytics-consent .analytics-consent-status { margin-top: .35rem; color: var(--consent-secondary); font-size: .82rem; line-height: 1.4; }
.analytics-consent-status:empty { display: none; }
.analytics-consent-actions { display: flex; align-items: center; gap: .75rem; margin-left: .25rem; padding: 0 clamp(1rem, 2.6vw, 2.75rem) 0 clamp(1.25rem, 3.8vw, 4rem); border-left: 1px solid rgb(72 136 115 / 25%); }
.analytics-consent-actions button { display: inline-flex; width: clamp(7.5rem, 10.3vw, 10.75rem); min-height: clamp(3.25rem, 4vw, 4.1rem); align-items: center; justify-content: center; padding: .8rem 1.25rem; border: 1px solid #78ae9e; border-radius: 999px; color: #0b3d32; background: linear-gradient(150deg, rgb(255 255 255 / 64%), rgb(230 248 240 / 78%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%); font: inherit; font-size: clamp(1rem, 1.32vw, 1.35rem); font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.analytics-consent-actions button[data-consent-choice="granted"] { border-color: #22654e; color: #fffdf8; background: linear-gradient(145deg, #2d7858, #073e34); box-shadow: inset 0 1px 0 rgb(255 255 255 / 13%), 0 1px 2px rgb(9 48 37 / 8%); }
.analytics-consent-actions button[data-consent-choice="denied"]:hover { border-color: #518f7e; background-color: #d5eee2; box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%), 0 2px 8px rgb(9 48 37 / 7%); }
.analytics-consent-actions button[data-consent-choice="granted"]:hover { border-color: #123f31; background: linear-gradient(145deg, #256a4d, #06382f); }
.analytics-consent-close { position: absolute; z-index: 2; top: .4rem; right: .5rem; display: grid; width: 2rem; height: 2rem; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--consent-secondary); background: transparent; font: inherit; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.analytics-consent-close:hover { color: var(--consent-heading); background: rgb(255 255 255 / 65%); }
.analytics-consent button:focus-visible, .analytics-consent a:focus-visible, .consent-settings:focus-visible { outline: 3px solid #b56f3f; outline-offset: 3px; }
.consent-settings { padding: 0; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.consent-settings:hover { color: #fffdf7; text-decoration: underline; text-underline-offset: .22rem; }

@keyframes analytics-consent-enter {
  from { opacity: 0; transform: translateY(calc(100% + 2rem)); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 48rem) {
  /* Let text and controls determine the height; decorative bleed must not create
     a scrollport. The surface clips the SVGs without clamping the content. */
  .analytics-consent { height: auto; max-height: none; padding: 0; }
  .analytics-consent-surface { position: relative; display: block; overflow: clip; padding: 1.25rem clamp(1.25rem, 1.6vw, 1.625rem) 1.125rem; border-radius: inherit; }
}
@media (max-width: 70rem) and (min-width: 48rem) {
  .analytics-consent-inner { grid-template-columns: 8rem minmax(0, 1fr) auto; gap: .75rem; }
  .analytics-consent-art svg { bottom: 50%; transform: translateY(50%); }
  .analytics-consent-actions { padding-inline: 1rem; gap: .6rem; }
  .analytics-consent-actions button { width: 7rem; min-height: 3.25rem; }
  .analytics-consent h2 { font-size: 1.45rem; }
  .analytics-consent p { font-size: .96rem; line-height: 1.4; }
}
@media (max-width: 47.999rem) {
  .analytics-consent { right: max(12px, env(safe-area-inset-right)); left: max(12px, env(safe-area-inset-left)); padding: 1rem; }
  .analytics-consent-inner { grid-template-columns: 4.25rem minmax(0, 1fr); gap: .45rem .75rem; }
  .analytics-consent-art { grid-column: 1; grid-row: 1; min-height: 3.5rem; }
  .analytics-consent-art svg { bottom: -.7rem; left: -1.3rem; width: 6.75rem; }
  .analytics-consent-copy { display: contents; }
  .analytics-consent h2 { grid-column: 2; grid-row: 1; margin: 0; padding-right: .5rem; font-size: clamp(1.125rem, 4.9vw, 1.25rem); letter-spacing: -.04em; }
  .analytics-consent #analytics-consent-description { grid-column: 1 / -1; grid-row: 2; font-size: .91rem; line-height: 1.45; }
  .analytics-consent-privacy { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 0; font-size: .91rem; line-height: 1.4; }
  .analytics-consent .analytics-consent-status { grid-column: 1 / -1; margin-top: 0; font-size: .78rem; }
  .analytics-consent-actions { grid-column: 1 / -1; gap: .65rem; margin: .3rem 0 0; padding: 0; border: 0; }
  .analytics-consent-actions button { flex: 1; width: 0; min-width: 0; min-height: 3rem; padding: .75rem 1rem; font-size: 1rem; }
  .analytics-consent-leaves { right: -.2rem; bottom: -.75rem; width: 3.5rem; opacity: .5; }
  .analytics-consent-waves { top: auto; right: auto; left: 50%; width: 48rem; height: 65%; transform: translateX(-50%); }
  .analytics-consent:has([data-consent-close]:not([hidden])) h2 { padding-right: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .analytics-consent:not([hidden]) { animation: none; }
  .analytics-consent-actions button { transition: none; }
}
