.analytics-consent {
  position: fixed;
  z-index: 1500;
  right: var(--space-6);
  bottom: var(--space-6);
  width: min(560px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: var(--space-6);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-control);
  background: var(--c-white);
  color: var(--c-body);
  box-shadow: var(--shadow-2, var(--shadow-1));
  text-align: left;
}

.analytics-consent__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.analytics-consent h2 {
  margin: 0;
  color: var(--c-heading);
  font-size: 20px;
  line-height: 1.3;
}

.analytics-consent p {
  margin: 0 0 var(--space-3);
  font-size: 15px;
  line-height: 1.5;
}

.analytics-consent .analytics-consent__detail {
  font-size: 13px;
}

.analytics-consent a { color: var(--c-brand); text-decoration: underline; }
.analytics-consent a:hover { color: var(--c-brand-hover); }
.analytics-consent__status:empty { display: none; }

.analytics-consent__notice,
.analytics-consent__status {
  padding: var(--space-3);
  border-radius: var(--radius-control);
  background: var(--c-bg-soft);
  color: var(--c-heading);
}

.analytics-consent__actions { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.analytics-consent__actions .btn { flex: 1; min-height: 44px; }

.analytics-consent__close {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--c-heading);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.analytics-consent__close:hover { background: var(--c-bg-soft); }
.analytics-consent__close:active { background: var(--c-border); }
.analytics-consent :focus-visible { outline: 3px solid var(--c-brand); outline-offset: 3px; }

.analytics-preferences-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.analytics-preferences-link:hover { color: var(--c-white); }
.analytics-preferences-link:active { opacity: .8; }
.analytics-preferences-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

@media (max-width: 600px) {
  .analytics-consent {
    right: var(--space-3);
    bottom: var(--space-3);
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: var(--space-4);
  }
  .analytics-consent__actions { flex-wrap: wrap; }
  .analytics-consent__actions .btn { min-width: 140px; }
}
