.tp-analytics-consent[hidden],
.tp-analytics-settings[hidden] {
  display: none;
}

.tp-analytics-consent {
  position: fixed;
  z-index: 100000;
  left: 20px;
  bottom: 20px;
  width: min(440px, calc(100vw - 40px));
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid rgba(38, 35, 31, 0.18);
  border-radius: 14px;
  background: #fffdf8;
  color: #26231f;
  box-shadow: 0 14px 38px rgba(38, 35, 31, 0.2);
  font-family: Arial, sans-serif;
}

.tp-analytics-consent__copy h2 {
  margin: 0 0 8px;
  color: inherit;
  font-size: 18px;
  line-height: 1.3;
}

.tp-analytics-consent__copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.tp-analytics-consent__privacy {
  display: inline-block;
  margin-top: 10px;
  color: #6b4c2a;
  font-size: 13px;
  text-decoration: underline;
}

.tp-analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tp-analytics-consent__button,
.tp-analytics-settings {
  border: 1px solid #6b4c2a;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
}

.tp-analytics-consent__button {
  padding: 10px 14px;
}

.tp-analytics-consent__button--primary {
  background: #6b4c2a;
  color: #ffffff;
}

.tp-analytics-consent__button--secondary {
  background: transparent;
  color: #6b4c2a;
}

.tp-analytics-consent__button:focus-visible,
.tp-analytics-settings:focus-visible,
.tp-analytics-consent__privacy:focus-visible {
  outline: 3px solid #2f80ed;
  outline-offset: 3px;
}

.tp-analytics-settings {
  position: fixed;
  z-index: 99999;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  background: rgba(255, 253, 248, 0.94);
  color: #6b4c2a;
  box-shadow: 0 4px 14px rgba(38, 35, 31, 0.12);
}

@media (max-width: 560px) {
  .tp-analytics-consent {
    left: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    padding: 16px;
  }

  .tp-analytics-consent__button {
    flex: 1 1 130px;
  }

  .tp-analytics-settings {
    right: 8px;
    bottom: 8px;
  }
}
