.tm-consent,
.tm-privacy {
  color: #172d49;
  background: #f1f5fa;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  box-sizing: border-box;
}
.tm-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 20px max(24px, 5vw);
  border-top: 1px solid #c8d4e2;
  box-shadow: 0 -6px 28px #172d4910;
}
.tm-consent[hidden] {
  display: none;
}
.tm-consent p {
  max-width: 66ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #526780;
}
.tm-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.tm-actions button {
  appearance: none;
  margin: 0;
  border: 1px solid #526780;
  border-radius: 24px;
  padding: 10px 18px;
  background: transparent;
  color: #172d49;
  font-weight: 500;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}
.tm-actions button[data-choice="full"] {
  background: #172d49;
  color: #f1f5fa;
  border-color: #172d49;
}
.tm-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tm-consent [data-privacy],
.tm-privacy-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.tm-privacy-link {
  font-size: 15px;
}
.tm-privacy {
  border: 1px solid #c8d4e2;
  border-radius: 12px;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 36px;
  margin: auto;
  overflow: auto;
  box-shadow: 0 20px 90px #172d4933;
}
.tm-privacy::backdrop {
  background: #172d4980;
}
.tm-privacy h2 {
  color: #172d49;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 28px 22px 0;
}
.tm-privacy p {
  font-size: 16px;
  color: #526780;
  margin: 16px 0;
  line-height: 1.55;
}
.tm-privacy a {
  color: #315fc3;
  font-size: 16px;
  text-decoration: underline;
}
.tm-privacy .tm-actions {
  margin-top: 28px;
}
.tm-privacy .tm-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: 0;
  background: none;
  color: #315fc3;
  padding: 4px;
  font: 28px/1 sans-serif;
  cursor: pointer;
}
.tm-consent button:focus-visible,
.tm-privacy button:focus-visible,
.tm-privacy a:focus-visible,
.tm-privacy-link:focus-visible {
  outline: 2px solid #315fc3;
  outline-offset: 5px;
}
@media (max-width: 760px) {
  .tm-consent {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 18px 22px;
    max-height: 70dvh;
    overflow: auto;
  }
  .tm-consent .tm-actions {
    justify-content: flex-end;
  }
  .tm-privacy {
    padding: 28px 22px;
  }
}
@media print {
  .tm-consent,
  .tm-privacy,
  .tm-privacy-link {
    display: none !important;
  }
}
