.fpv-clarity-consent {
  position: fixed;
  z-index: 10000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(640px, calc(100vw - 32px));
  max-height: min(80vh, 480px);
  overflow: auto;
  padding: 22px 24px 20px;
  border: 1px solid rgba(241, 241, 241, .32);
  background: #121212;
  color: #f1f1f1;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
  font: 500 15px/1.45 "LayGrotesk", sans-serif;
}

.fpv-clarity-consent[hidden] {
  display: none !important;
}

.fpv-clarity-consent__title {
  margin: 0 0 8px;
  color: #ff5555;
  font: 600 20px/1.15 "LayGrotesk", sans-serif;
  letter-spacing: -.02em;
}

.fpv-clarity-consent__copy {
  max-width: 58ch;
  margin: 0;
  color: #f1f1f1;
}

.fpv-clarity-consent__copy a {
  color: #f1f1f1;
  text-decoration: underline;
  text-decoration-color: #ff5555;
  text-underline-offset: 3px;
}

.fpv-clarity-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.fpv-clarity-consent__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #f1f1f1;
  border-radius: 0;
  background: transparent;
  color: #f1f1f1;
  font: 600 15px/1.2 "LayGrotesk", sans-serif;
  text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.fpv-clarity-consent__button--accept {
  border-color: #ff5555;
  background: #ff5555;
  color: #121212;
}

.fpv-clarity-consent__button:hover {
  border-color: #ff5555;
  background: #ff5555;
  color: #121212;
}

.fpv-clarity-consent__button:focus-visible,
.fpv-clarity-consent__copy a:focus-visible,
.fpv-cookie-settings:focus-visible {
  outline: 3px solid #ff5555;
  outline-offset: 4px;
}

.fpv-cookie-settings {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 1.8;
  text-align: left;
  text-transform: none;
}

.fpv-cookie-settings:hover {
  color: #ff5555;
}

@media (max-width: 600px) {
  .fpv-clarity-consent {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    max-height: min(75vh, 420px);
    padding: 18px 18px 16px;
  }

  .fpv-clarity-consent__title {
    font-size: 18px;
  }

  .fpv-clarity-consent__copy {
    font-size: 14px;
  }

  .fpv-clarity-consent__actions {
    gap: 8px;
    margin-top: 14px;
  }

  .fpv-clarity-consent__button {
    min-height: 46px;
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fpv-clarity-consent__button {
    transition: none;
  }
}
