.tt-analytics-preferences {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.tt-analytics-preferences:hover,
.tt-analytics-preferences:focus-visible {
  color: #fff;
}

.tt-analytics-consent[hidden] {
  display: none;
}

.tt-analytics-consent {
  position: fixed;
  z-index: 100000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  margin: auto;
  max-width: 72rem;
  color: #172536;
}

.tt-analytics-consent__inner {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(13, 31, 48, 0.16);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(13, 31, 48, 0.24);
}

.tt-analytics-consent__title {
  margin: 0 2rem 0.35rem 0;
  color: #0d1f30;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.tt-analytics-consent__copy p {
  margin: 0;
  max-width: 68ch;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.tt-analytics-consent__copy a {
  color: #155d86;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.tt-analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.tt-analytics-consent__button {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid #155d86;
  border-radius: 999px;
  background: #fff;
  color: #155d86;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.tt-analytics-consent__button--primary {
  background: #155d86;
  color: #fff;
}

.tt-analytics-consent__button:hover {
  filter: brightness(0.95);
}

.tt-analytics-consent__button[data-current="true"] {
  border-color: #0f5132;
  box-shadow: inset 0 0 0 2px #0f5132;
}

.tt-analytics-consent__button[data-current="true"]::after {
  content: "✓";
  margin-left: 0.45rem;
  font-weight: 800;
}

.tt-analytics-consent__button:focus-visible,
.tt-analytics-consent__close:focus-visible,
.tt-analytics-preferences:focus-visible,
.tt-analytics-consent__title:focus-visible {
  outline: 3px solid #f4b740;
  outline-offset: 3px;
}

.tt-analytics-consent__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 720px) {
  .tt-analytics-consent__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.35rem 4rem 1.35rem 1.5rem;
  }

  .tt-analytics-consent__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 420px) {
  .tt-analytics-consent {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
  }

  .tt-analytics-consent__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tt-analytics-consent__button,
  .tt-analytics-preferences {
    transition: color 160ms ease, background-color 160ms ease, filter 160ms ease;
  }
}
