#investment-analytics-consent[hidden] {
  display: none !important;
}

#investment-analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  margin: 0 auto;
  max-width: 46rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 20px 45px rgb(15 23 42 / 24%);
  padding: 1rem;
}

.investment-consent__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.investment-consent__description {
  margin: 0.45rem 0 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
}

.investment-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.investment-consent__notice {
  margin-top: 0.75rem;
  color: #334155;
  font-size: 0.875rem;
  line-height: 1.5;
}

.investment-consent__notice summary {
  color: #1e3a8a;
  cursor: pointer;
  text-decoration: underline;
}

.investment-consent__notice p {
  margin-top: 0.5rem;
}

.investment-consent__notice a {
  text-decoration: underline;
}

.investment-consent__button {
  min-width: 8rem;
  border: 1px solid #1e3a8a;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  background: #ffffff;
  color: #1e3a8a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.investment-consent__button:hover,
.investment-consent__button:focus-visible {
  background: #dbeafe;
  outline: 2px solid transparent;
}

.investment-consent__error {
  margin: 0.75rem 0 0;
  color: #b91c1c;
  font-size: 0.875rem;
}

.investment-consent__manage {
  border: 0;
  padding: 0;
  background: transparent;
  color: #dbeafe;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  cursor: pointer;
}

.investment-consent__manage:hover,
.investment-consent__manage:focus-visible {
  color: #ffffff;
}

@media (min-width: 640px) {
  #investment-analytics-consent {
    padding: 1.25rem;
  }
}
