* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.app {
  min-height: 100vh;
}

.nav {
  background: #111;
  color: #fff;
  padding: 0.75rem 1rem;
}

.nav__inner {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav__brand {
  font-size: 0.9375rem;
  font-weight: 600;
}

.page {
  padding: 1rem;
}

.page__inner,
#main-content {
  max-width: 40rem;
  margin: 0 auto;
}

#main-content[aria-hidden="true"] {
  pointer-events: none;
  user-select: none;
}

.cookie-wall {
  position: fixed;
  inset: 0;
  z-index: 7001;
}

.cookie-wall__backdrop {
  position: fixed;
  inset: 0;
  z-index: 7000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0.5rem);
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 1rem;
}

.cookie-wall__container {
  background: var(--cookie-bg, #fff);
  color: var(--cookie-text, #111);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
  max-width: 32rem;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  z-index: 10;
}

.cookie-wall__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.cookie-wall__message {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.cookie-wall__message--setup {
  margin-bottom: 1rem;
}

.cookie-wall__settings {
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-wall__settings label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.cookie-wall__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-wall__hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  opacity: 0.85;
}

.btn {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: var(--cookie-bg, #fff);
  color: var(--cookie-text, #111);
  cursor: pointer;
}

.btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn--accept {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn--accept:hover {
  background: #333;
}

.cookie-trigger {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: none;
  border-radius: 0.25rem;
  background: var(--cookie-bg, #fff);
  color: var(--cookie-text, #111);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.cookie-trigger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.cookie-trigger__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.consent-status {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.consent-status h2 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.consent-status p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.consent-table {
  width: 100%;
  max-width: 28rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.consent-table th,
.consent-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.consent-table th {
  background: rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.consent-table .status--granted {
  color: #0a0;
}

.consent-table .status--denied {
  color: #c00;
}

.consent-table .status--none {
  color: #666;
}

.test-events {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.test-events h2 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.test-events p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.test-events__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
