/* Cookie consent: banner + preferences modal (Figma 12861:1813). Markup is injected by tetra-cookie.js. */
.tc-banner,
.tc-modal {
  font-family: "Suisse Intl", Arial, sans-serif;
  color: var(--_tetra-tokens---color-ink, #090e13);
  white-space: normal;
}

.tc-banner {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 30rem;
  max-width: calc(100vw - 2rem);
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.08);
}

.tc-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tc-banner p,
.tc-modal p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.tc-link {
  align-self: flex-start;
  color: inherit;
  font-size: 0.875rem;
  line-height: 1.375rem;
  text-decoration: underline;
}

.tc-actions {
  display: flex;
  gap: 0.5rem;
}

.tc-actions .button {
  flex: 1 1 0;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}

.button.tc-secondary {
  background-color: #fff;
  color: var(--_tetra-tokens---color-ink, #090e13);
  box-shadow: inset 0 0 0 1px var(--_tetra-tokens---color-ink, #090e13);
}

.tc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(9, 14, 19, 0.6);
}

.tc-modal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 35rem;
  max-width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 2rem;
  background: #fff;
  border-radius: 0.25rem;
}

.tc-modal h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 2.75rem;
  font-weight: 400;
}

.tc-modal .tc-muted,
.tc-cat .tc-muted {
  color: #666;
}

.tc-cat {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #d7d7d7;
}

.tc-cat-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tc-cat-title {
  font-size: 1rem;
  line-height: 1.5rem;
}

.tc-always {
  color: #666;
  font-size: 0.875rem;
  line-height: 1.25rem;
  white-space: nowrap;
}

.tc-toggle {
  position: relative;
  flex: none;
  width: 2.5rem;
  height: 1.5rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #d7d7d7;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tc-toggle::after {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.125rem;
  height: 1.125rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.tc-toggle:checked {
  background: #ce191d;
}

.tc-toggle:checked::after {
  transform: translateX(1rem);
}

.tc-toggle:focus-visible {
  outline: 2px solid var(--_tetra-tokens---color-ink, #090e13);
  outline-offset: 2px;
}

.tc-settings-link {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 479px) {
  .tc-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    max-width: none;
  }

  .tc-actions {
    flex-direction: column;
  }

  .tc-actions .button {
    flex: none;
    width: 100%;
  }

  .tc-modal {
    padding: 1.5rem 1.25rem;
  }

  .tc-modal h2 {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

/* правая колонка футера: текст Tetra Trust + под ним Cookie settings */
.tc-legal-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
/* на мобилке строки футера идут столбиком по левому краю */
@media screen and (max-width: 479px) {
  .tc-legal-col { align-items: flex-start; }
}
