#tc-cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2147483000;
  width: min(42rem, calc(100vw - 2rem));
  box-sizing: border-box;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(15, 23, 42, .16);
  border-radius: 1rem;
  background: #fff;
  color: #172033;
  box-shadow: 0 1rem 3rem rgba(15, 23, 42, .2);
  font: 400 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .22s ease, transform .22s ease;
}

#tc-cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#tc-cookie-consent h2 {
  margin: 0 0 .35rem;
  color: inherit;
  font: 700 1.05rem/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#tc-cookie-consent p {
  margin: 0;
}

#tc-cookie-consent a {
  color: #075985;
  text-decoration: underline;
}

.tc-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.tc-cookie-consent__button {
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  cursor: pointer;
  font: 600 14px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tc-cookie-consent__button--secondary {
  border-color: rgba(15, 23, 42, .2);
  background: #fff;
  color: #172033;
}

.tc-cookie-consent__button--primary {
  background: #075985;
  color: #fff;
}

.tc-cookie-consent__button:focus-visible,
#tc-cookie-consent a:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  #tc-cookie-consent {
    right: .6rem;
    bottom: .6rem;
    width: calc(100vw - 1.2rem);
    padding: 1rem;
  }

  .tc-cookie-consent__actions {
    justify-content: stretch;
  }

  .tc-cookie-consent__button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #tc-cookie-consent { transition: none; }
}
