.td-consent {
  --td-bg: #080406;
  --td-text: #e8e4df;
  --td-copper: #a17643;
  --td-muted: rgba(232, 228, 223, 0.68);
  --td-border: rgba(232, 228, 223, 0.14);
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  color: var(--td-text);
  line-height: 1.55;
  cursor: auto;
}

.td-consent *,
.td-consent *::before,
.td-consent *::after { box-sizing: border-box; }

.td-consent button,
.td-consent a,
.td-consent label,
.td-consent input { cursor: pointer !important; }

.td-consent__scrim {
  display: none;
}

.td-consent__panel {
  position: fixed;
  z-index: 12001;
  right: clamp(16px, 4vw, 48px);
  bottom: clamp(16px, 4vw, 48px);
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 26px;
  background: rgba(20, 15, 17, 0.97);
  border: 1px solid rgba(161, 118, 67, 0.38);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.td-consent__eyebrow {
  margin: 0 0 10px;
  color: var(--td-copper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.td-consent__panel h2 {
  margin: 0;
  color: var(--td-text);
  font: 400 clamp(26px, 4vw, 34px)/1.08 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  letter-spacing: -0.025em;
}

.td-consent__intro {
  margin: 14px 0 0;
  color: var(--td-muted);
  font-size: 15px;
  line-height: 1.55;
}

.td-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.td-consent__button,
.td-consent__text-button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 7px;
  font: 600 11px/1.2 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.td-consent__button {
  color: var(--td-text);
  background: transparent;
  border: 1px solid rgba(232, 228, 223, 0.38);
}

.td-consent__button--accept {
  color: var(--td-bg);
  background: var(--td-copper);
  border-color: var(--td-copper);
}

.td-consent__button:hover,
.td-consent__button:focus-visible {
  border-color: var(--td-text);
  transform: translateY(-1px);
}

.td-consent__button--accept:hover,
.td-consent__button--accept:focus-visible { background: #b68a54; }

.td-consent__text-button {
  grid-column: 1 / -1;
  min-height: 40px;
  color: var(--td-copper);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.td-consent__privacy {
  display: inline-block;
  margin-top: 17px;
  color: var(--td-muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.td-consent__options {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.td-consent__option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 14px 16px;
  background: rgba(232, 228, 223, 0.035);
  border: 1px solid var(--td-border);
  border-radius: 9px;
}

.td-consent__option-copy { display: grid; gap: 3px; }
.td-consent__option-copy strong { font-size: 15px; font-weight: 600; }
.td-consent__option-copy small { color: var(--td-muted); font-size: 12px; line-height: 1.45; }

.td-consent__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.td-consent__switch {
  position: relative;
  width: 46px;
  height: 26px;
  background: rgba(232, 228, 223, 0.18);
  border: 1px solid rgba(232, 228, 223, 0.2);
  border-radius: 99px;
  transition: background 0.18s ease;
}

.td-consent__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--td-text);
  border-radius: 50%;
  transition: transform 0.18s ease;
}

.td-consent__option input:checked + .td-consent__switch { background: var(--td-copper); }
.td-consent__option input:checked + .td-consent__switch::after { transform: translateX(20px); }
.td-consent__option input:focus-visible + .td-consent__switch { outline: 2px solid var(--td-copper); outline-offset: 3px; }

.td-consent__always {
  align-self: start;
  color: var(--td-copper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.td-consent__option.is-disabled .td-consent__switch { display: none; }

.td-consent__actions--settings { margin-top: 20px; }

.td-consent__manage {
  position: fixed;
  z-index: 11990;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  gap: 0;
  min-height: 38px;
  padding: 8px;
  color: rgba(232, 228, 223, 0.76);
  background: rgba(8, 4, 6, 0.86);
  border: 1px solid rgba(161, 118, 67, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font: 500 10px/1 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.td-consent__manage span:last-child { display: none; }

.td-consent__manage:hover,
.td-consent__manage:focus-visible { color: var(--td-text); border-color: var(--td-copper); }
.td-consent__manage span:first-child { color: var(--td-copper); font-size: 12px; }

.td-consent__status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .td-consent__panel {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 24px 20px;
  }
  .td-consent__actions { grid-template-columns: 1fr; }
  .td-consent__text-button { grid-column: auto; }
  .td-consent__manage span:last-child { display: none; }
  .td-consent__manage { width: 40px; justify-content: center; padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .td-consent *, .td-consent *::before, .td-consent *::after { transition: none !important; }
}
