.analytics-consent {
  position: fixed;
  z-index: 12000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(216, 180, 254, 0.35);
  border-radius: 16px;
  background: rgba(20, 8, 38, 0.96);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.5);
  color: #f5f3ff;
  backdrop-filter: blur(18px);
}

.analytics-consent[hidden],
.analytics-privacy-manage[hidden],
.analytics-privacy-dialog[hidden],
.analytics-consent__close[hidden] {
  display: none;
}

body.analytics-privacy-open {
  overflow: hidden;
}

.analytics-consent__copy {
  display: grid;
  gap: 5px;
  max-width: 620px;
}

.analytics-consent__copy strong {
  font: 600 15px/1.35 "Space Grotesk", "Inter", sans-serif;
}

.analytics-consent__copy p {
  margin: 0;
  color: rgba(245, 243, 255, 0.72);
  font: 400 12px/1.55 "Inter", sans-serif;
}

.analytics-consent__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.analytics-consent__actions button,
.analytics-privacy-manage {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(216, 180, 254, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f3ff;
  cursor: pointer;
  font: 600 12px/1 "Inter", sans-serif;
}

.analytics-consent__accept {
  border-color: transparent !important;
  background: linear-gradient(135deg, #a855f7, #ec4899) !important;
}

.analytics-consent__details {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #e9d5ff;
  cursor: pointer;
  font: 600 12px/1.55 "Inter", sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.analytics-privacy-dialog {
  position: fixed;
  z-index: 13000;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
}

.analytics-privacy-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 3, 18, 0.78);
  backdrop-filter: blur(10px);
}

.analytics-privacy-dialog__panel {
  position: relative;
  display: flex;
  box-sizing: border-box;
  width: min(720px, 100%);
  max-height: min(780px, calc(100vh - 44px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 254, 0.38);
  border-radius: 18px;
  background: #160b27;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
  color: #f5f3ff;
}

.analytics-privacy-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(216, 180, 254, 0.2);
}

.analytics-privacy-dialog__header h2 {
  margin: 0;
  font: 650 22px/1.25 "Space Grotesk", "Inter", sans-serif;
}

.analytics-privacy-dialog__close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(216, 180, 254, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f3ff;
  cursor: pointer;
  font: 400 25px/1 "Inter", sans-serif;
}

.analytics-privacy-dialog__body {
  display: grid;
  gap: 22px;
  overflow-y: auto;
  padding: 20px;
  color: rgba(245, 243, 255, 0.78);
  font: 400 14px/1.65 "Inter", sans-serif;
  overscroll-behavior: contain;
}

.analytics-privacy-dialog__body section {
  display: grid;
  gap: 9px;
}

.analytics-privacy-dialog__body h3,
.analytics-privacy-dialog__body p,
.analytics-privacy-dialog__body ul {
  margin: 0;
}

.analytics-privacy-dialog__body h3 {
  color: #f5f3ff;
  font: 650 16px/1.35 "Space Grotesk", "Inter", sans-serif;
}

.analytics-privacy-dialog__body strong {
  color: #f5f3ff;
  font-weight: 700;
}

.analytics-privacy-dialog__body ul {
  display: grid;
  gap: 7px;
  padding-left: 20px;
}

.analytics-privacy-dialog__intro {
  color: #f5f3ff;
}

.analytics-privacy-manage {
  position: fixed;
  z-index: 11000;
  right: 24px;
  bottom: 32px;
  display: grid;
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 8, 38, 0.85);
  opacity: 0.72;
  backdrop-filter: blur(12px);
}

.analytics-privacy-manage svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .analytics-consent {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-consent__actions {
    justify-content: stretch;
  }

  .analytics-consent__actions button {
    flex: 1 1 140px;
  }
}

@media (max-width: 640px) {
  .analytics-privacy-manage {
    right: 14px;
  }

  .analytics-privacy-dialog {
    padding: 10px;
  }

  .analytics-privacy-dialog__panel {
    max-height: calc(100vh - 20px);
  }

  .analytics-privacy-dialog__header,
  .analytics-privacy-dialog__body {
    padding: 16px;
  }
}
