.tfi-consent-banner,
.tfi-consent-modal {
  color: #17212f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tfi-consent-banner[hidden],
.tfi-consent-modal[hidden] {
  display: none !important;
}

.tfi-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  max-width: 820px;
  margin: auto;
  padding: 12px 14px;
  border: 1px solid #cfe1ea;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 33, 47, 0.18);
}

.tfi-consent-banner h2,
.tfi-consent-modal h2 {
  margin: 0;
  color: #084669;
  font-size: 0.98rem;
  line-height: 1.2;
}

.tfi-consent-banner p,
.tfi-consent-modal p {
  margin: 4px 0 0;
  color: #17212f;
  font-size: 0.82rem;
  line-height: 1.35;
}

.tfi-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tfi-consent-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.tfi-consent-button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0b5e8e 0%, #0b7fa0 52%, #237a57 100%);
  box-shadow: 0 12px 24px rgba(11, 94, 142, 0.18);
}

.tfi-consent-button.secondary {
  color: #0b5e8e;
  background: #eaf3f8;
  border: 1px solid #c7dce8;
}

.tfi-consent-button.link {
  min-height: auto;
  border: 0;
  padding: 0;
  color: #0b5e8e;
  background: transparent;
  box-shadow: none;
  font-weight: 900;
  text-decoration: underline;
}

.tfi-consent-button:focus-visible,
.tfi-consent-modal input:focus-visible {
  outline: 3px solid rgba(11, 94, 142, 0.28);
  outline-offset: 2px;
}

.tfi-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 30, 52, 0.72);
}

.tfi-consent-dialog {
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 33, 47, 0.28);
}

.tfi-consent-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #dbe3eb;
}

.tfi-consent-close {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0;
}

.tfi-consent-modal-body {
  padding: 20px;
}

.tfi-consent-toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #dbe3eb;
  border-radius: 8px;
  background: #fbfcfd;
}

.tfi-consent-toggle strong {
  display: block;
  color: #084669;
}

.tfi-consent-toggle span span {
  display: block;
  color: #617083;
  font-size: 0.86rem;
  line-height: 1.4;
}

.tfi-consent-toggle input {
  width: auto;
  margin-top: 4px;
}

.tfi-privacy-choice-link {
  display: inline-block;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .tfi-consent-banner {
    grid-template-columns: 1fr;
  }

  .tfi-consent-actions {
    justify-content: stretch;
  }

  .tfi-consent-actions .tfi-consent-button {
    width: 100%;
  }
}
