.tl-socials {
  margin-top: 16px;
}

.tl-social-links {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.tl-social-link {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  transition: background 160ms ease, transform 160ms ease;
}

.tl-social-link img {
  display: block;
  width: 24px;
  height: 24px;
  max-width: 24px;
  object-fit: contain;
}

.tl-social-link:hover {
  background: rgba(139, 160, 189, 0.1);
  transform: translateY(-1px);
}

.tl-social-link:focus-visible,
.tl-cookie-settings:focus-visible,
.tl-consent button:focus-visible,
.tl-consent input:focus-visible,
.tl-consent a:focus-visible {
  outline: 2px solid #73b4ff;
  outline-offset: 4px;
}

.tl-cookie-settings {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
}

.tl-cookie-settings:hover {
  color: #73b4ff;
}

.tl-consent {
  box-sizing: border-box;
  width: min(600px, calc(100% - 32px));
  max-height: min(88dvh, 760px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 1px solid #30435e;
  border-radius: 20px;
  color: #edf2fa;
  background: #101a28;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
  font: 14px/1.6 Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
}

.tl-consent::backdrop {
  background: rgba(2, 7, 14, 0.72);
  backdrop-filter: blur(5px);
}

.tl-consent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 0;
}

.tl-consent-eyebrow {
  display: block;
  margin: 0 0 6px;
  color: #83bcff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tl-consent h2 {
  margin: 0;
  color: #f1f5fc;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.tl-consent-close {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #33445c;
  border-radius: 50%;
  color: #c2cfdf;
  background: transparent;
  cursor: pointer;
}

.tl-consent-body {
  padding: 14px 28px 24px;
}

.tl-consent p {
  margin: 0 0 12px;
  color: #b2c0d2;
  font-size: 14px;
  line-height: 1.65;
}

.tl-consent-note {
  border-left: 2px solid #4f9eff;
  padding: 8px 12px;
  background: rgba(79, 158, 255, 0.07);
}

.tl-consent .tl-consent-note {
  margin: 16px 0 20px;
  font-size: 12px;
}

.tl-consent-categories[hidden],
.tl-consent [hidden] {
  display: none;
}

.tl-consent-categories {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.tl-consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #2b3b52;
  border-radius: 12px;
  background: #0c1420;
  cursor: pointer;
}

.tl-consent-category strong {
  display: block;
  color: #edf2fa;
  font-size: 13px;
}

.tl-consent-category small {
  display: block;
  margin-top: 4px;
  color: #98aac0;
  font-size: 12px;
  line-height: 1.55;
}

.tl-consent-switch {
  position: relative;
  appearance: none;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  margin: 0;
  border: 1px solid #53657d;
  border-radius: 20px;
  background: #2b3a4e;
  cursor: pointer;
}

.tl-consent-switch::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e4ecf7;
  content: '';
  transition: transform 160ms ease;
}

.tl-consent-switch:checked {
  border-color: #4f9eff;
  background: #246ed8;
}

.tl-consent-switch:checked::before {
  transform: translateX(18px);
}

.tl-consent-switch:disabled {
  opacity: 0.65;
  cursor: default;
}

.tl-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
  margin-top: 20px;
}

.tl-consent-button {
  min-height: 44px;
  border: 1px solid #415774;
  border-radius: 9px;
  padding: 10px 12px;
  color: #edf2fa;
  background: #162438;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  cursor: pointer;
}

.tl-consent-button:hover {
  border-color: #84bdff;
}

.tl-consent-button-primary {
  border-color: #4f9eff;
  color: #fff;
  background: #236cd6;
}

.tl-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.tl-consent-links a {
  color: #9eb3ce;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .tl-consent-header {
    padding: 21px 20px 0;
  }

  .tl-consent-body {
    padding: 14px 20px 20px;
  }

  .tl-consent h2 {
    font-size: 23px;
  }

  .tl-consent-actions {
    gap: 7px;
  }

  .tl-consent-button {
    padding: 10px 7px;
    font-size: 11px;
  }

  .tl-consent-category {
    padding: 12px;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-social-link,
  .tl-consent-switch::before {
    transition: none;
  }
}
