.analytics-choice[hidden], .analytics-choice [hidden] { display: none !important; }
.analytics-choice {
  --cookie-accent: #142b51;
  --cookie-ink: #142b51;
  position: fixed;
  z-index: 10000;
  isolation: isolate;
  left: 24px;
  bottom: 28px;
  width: min(22rem, calc(100vw - 48px));
  color: var(--cookie-ink);
  font-family: var(--sans, Arial, sans-serif);
  text-align: center;
}
.analytics-choice::before {
  content: "";
  position: absolute;
  inset: -5px 2px;
  z-index: -1;
  border: 1px solid #d7bfc4;
  border-radius: 28px;
  background: #f9edef;
  transform: rotate(-2deg);
  pointer-events: none;
}
.cookie-card {
  position: relative;
  max-height: calc(100vh - 88px);
  max-height: calc(100dvh - 88px);
  overflow: auto;
  padding: 54px 26px 22px;
  border: 1px solid #f0e3e5;
  border-radius: 24px;
  background: #fffcfb;
  box-shadow: 0 12px 44px #21111c24;
}
.cookie-badge {
  position: absolute;
  z-index: 2;
  top: -38px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fffcfb;
  color: var(--cookie-accent);
  transform: translateX(-50%);
  pointer-events: none;
}
.cookie-badge svg { width: 54px; height: 54px; }
.analytics-choice h2 {
  margin: 0 0 12px;
  color: var(--cookie-ink);
  font-family: inherit;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.analytics-choice p {
  margin: 0;
  color: var(--cookie-ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: normal;
}
.cookie-actions { display: grid; gap: 10px; margin-top: 22px; }
.analytics-choice button {
  appearance: none;
  box-sizing: border-box;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--cookie-accent);
  border-radius: 999px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}
.analytics-choice .cookie-accept { background: var(--cookie-accent); color: #fff; }
.analytics-choice .cookie-necessary { background: #fffcfb; color: var(--cookie-accent); }
.analytics-choice .cookie-accept:hover { filter: brightness(.9); }
.analytics-choice .cookie-necessary:hover { background: #f9edef; }
.analytics-choice .cookie-close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cookie-ink);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}
.analytics-choice .cookie-close:hover { background: #f9edef; }
.analytics-choice .cookie-note { margin-top: 16px; font-size: .8125rem; line-height: 1.5; }
.analytics-choice .cookie-privacy {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--cookie-ink);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.analytics-choice button:focus-visible,
.analytics-choice a:focus-visible,
.analytics-settings:focus-visible { outline: 3px solid #6785c3; outline-offset: 3px; }
.analytics-settings {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .analytics-choice { left: 18px; bottom: calc(80px + env(safe-area-inset-bottom)); width: calc(100vw - 36px); max-width: 22rem; }
  .cookie-card { max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); padding-inline: 22px; }
}
@media (max-height: 550px) {
  .analytics-choice { bottom: 16px; }
  .cookie-card { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding-top: 42px; }
  .cookie-badge { display: none; }
}
