:root {
  --tk-consent-bg: #071012;
  --tk-consent-surface: #102022;
  --tk-consent-text: #f7fbf8;
  --tk-consent-muted: #c8d8d1;
  --tk-consent-accent: #9ee7c2;
  --tk-consent-focus: #ffffff;
}

.tk-consent,
.tk-consent * {
  box-sizing: border-box;
}

.tk-consent {
  color: var(--tk-consent-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  z-index: 2147483000;
}

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

.tk-consent__banner {
  align-items: center;
  background: var(--tk-consent-bg);
  border-top: 1px solid rgba(255, 255, 255, .22);
  bottom: 0;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, .35);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 0;
  padding: 20px clamp(18px, 4vw, 56px);
  position: fixed;
  width: 100%;
}

.tk-consent__copy {
  max-width: 820px;
}

.tk-consent__title {
  color: var(--tk-consent-text);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
  margin: 0 0 8px;
}

.tk-consent p {
  color: var(--tk-consent-muted);
  margin: 0;
}

.tk-consent__link {
  color: var(--tk-consent-accent);
  display: inline-block;
  font-weight: 700;
  margin-top: 8px;
  text-underline-offset: .2em;
}

.tk-consent__actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(165px, 1fr));
  min-width: min(440px, 42vw);
}

.tk-consent__button,
.tk-consent__settings-button,
.tk-cookie-settings-inline {
  align-items: center;
  appearance: none;
  border: 2px solid var(--tk-consent-accent);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  text-align: center;
}

.tk-consent__button--choice,
.tk-consent__button--save {
  background: var(--tk-consent-accent);
  color: var(--tk-consent-bg);
}

.tk-consent__button--manage {
  background: transparent;
  color: var(--tk-consent-text);
  grid-column: 1 / -1;
}

.tk-consent__button:hover,
.tk-consent__settings-button:hover,
.tk-cookie-settings-inline:hover {
  filter: brightness(1.08);
}

.tk-consent :focus-visible,
.tk-cookie-settings-inline:focus-visible {
  outline: 3px solid var(--tk-consent-focus);
  outline-offset: 3px;
}

.tk-consent__settings-button {
  background: var(--tk-consent-bg);
  bottom: 14px;
  color: var(--tk-consent-text);
  left: 14px;
  min-height: 42px;
  padding: 7px 14px;
  position: fixed;
}

.tk-consent__backdrop {
  align-items: center;
  background: rgba(0, 0, 0, .72);
  display: flex;
  inset: 0;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
  position: fixed;
}

.tk-consent__dialog {
  background: var(--tk-consent-surface);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  max-height: calc(100vh - 40px);
  max-width: 680px;
  overflow-y: auto;
  padding: clamp(22px, 5vw, 38px);
  width: 100%;
}

.tk-consent__intro {
  margin-bottom: 20px !important;
}

.tk-consent__choice {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px 0;
}

.tk-consent__choice-title {
  color: var(--tk-consent-text);
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.tk-consent__always-on {
  color: var(--tk-consent-accent);
  font-size: .9rem;
  font-weight: 800;
}

.tk-consent__switch {
  cursor: pointer;
  display: inline-flex;
  min-height: 44px;
  min-width: 52px;
  position: relative;
}

.tk-consent__toggle {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.tk-consent__switch-ui {
  align-self: center;
  background: #4c5b5d;
  border: 2px solid #b8c6c1;
  border-radius: 999px;
  height: 30px;
  position: relative;
  width: 52px;
}

.tk-consent__switch-ui::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 20px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform .16s ease;
  width: 20px;
}

.tk-consent__toggle:checked + .tk-consent__switch-ui {
  background: var(--tk-consent-accent);
  border-color: var(--tk-consent-accent);
}

.tk-consent__toggle:checked + .tk-consent__switch-ui::after {
  background: var(--tk-consent-bg);
  transform: translateX(22px);
}

.tk-consent__toggle:focus-visible + .tk-consent__switch-ui {
  outline: 3px solid var(--tk-consent-focus);
  outline-offset: 3px;
}

.tk-consent__dialog-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.tk-consent__dialog-actions .tk-consent__button--manage {
  grid-column: 1 / -1;
}

.tk-consent-open {
  overflow: hidden;
}

@media (max-width: 780px) {
  .tk-consent__banner {
    align-items: stretch;
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
    padding: 18px;
  }

  .tk-consent__actions {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tk-consent__actions,
  .tk-consent__dialog-actions {
    grid-template-columns: 1fr;
  }

  .tk-consent__button--manage,
  .tk-consent__dialog-actions .tk-consent__button--manage {
    grid-column: auto;
  }

  .tk-consent__choice {
    gap: 12px;
  }

  .tk-consent__dialog {
    border-radius: 16px;
    max-height: calc(100vh - 20px);
    padding: 20px;
  }

  .tk-consent__backdrop {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-consent__switch-ui::after {
    transition: none;
  }
}
