.th-privacy,
.th-privacy * {
  box-sizing: border-box;
}

.th-privacy {
  --th-privacy-bg: #f7f3ed;
  --th-privacy-text: #202722;
  --th-privacy-muted: #58615b;
  --th-privacy-border: #c8cec9;
  --th-privacy-primary: #27302b;
  --th-privacy-primary-text: #ffffff;
  color: var(--th-privacy-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  z-index: 2147483000;
}

.th-privacy [hidden] {
  display: none !important;
}

.th-privacy__panel {
  background: var(--th-privacy-bg);
  border: 1px solid var(--th-privacy-border);
  border-radius: 18px;
  bottom: 20px;
  box-shadow: 0 20px 60px rgba(24, 31, 27, 0.24);
  left: 20px;
  max-height: calc(100vh - 40px);
  max-width: 680px;
  overflow-y: auto;
  padding: clamp(22px, 4vw, 34px);
  position: fixed;
  right: 20px;
}

.th-privacy__panel h2,
.th-privacy__panel h3,
.th-privacy__panel p {
  margin-top: 0;
}

.th-privacy__panel h2 {
  color: var(--th-privacy-text);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.2;
  margin-bottom: 14px;
}

.th-privacy__panel h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.th-privacy__panel p {
  color: var(--th-privacy-muted);
}

.th-privacy__eyebrow {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.th-privacy__policy-link {
  margin-bottom: 20px;
}

.th-privacy__policy-link a {
  color: var(--th-privacy-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.th-privacy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.th-privacy__button,
.th-privacy__preferences-button {
  border: 1px solid var(--th-privacy-primary);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 18px;
}

.th-privacy__button--primary {
  background: var(--th-privacy-primary);
  color: var(--th-privacy-primary-text);
}

.th-privacy__button--secondary {
  background: transparent;
  color: var(--th-privacy-primary);
}

.th-privacy__button:focus-visible,
.th-privacy__preferences-button:focus-visible,
.th-privacy__category input:focus-visible,
.th-privacy a:focus-visible {
  outline: 3px solid #9b7f53;
  outline-offset: 3px;
}

.th-privacy__category {
  align-items: center;
  border-top: 1px solid var(--th-privacy-border);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 0;
}

.th-privacy__category p,
.th-privacy__category small {
  color: var(--th-privacy-muted);
  display: block;
  margin: 0;
}

.th-privacy__category--toggle {
  cursor: pointer;
}

.th-privacy__category input {
  accent-color: var(--th-privacy-primary);
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
}

.th-privacy__preferences-button {
  background: var(--th-privacy-bg);
  bottom: 12px;
  box-shadow: 0 6px 22px rgba(24, 31, 27, 0.16);
  color: var(--th-privacy-primary);
  font-size: 0.8rem;
  left: 12px;
  min-height: 38px;
  padding: 7px 13px;
  position: fixed;
}

@media (max-width: 560px) {
  .th-privacy__panel {
    border-radius: 16px 16px 0 0;
    bottom: 0;
    left: 0;
    max-height: 88vh;
    right: 0;
  }

  .th-privacy__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .th-privacy__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-privacy *,
  .th-privacy *::before,
  .th-privacy *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
