html {
  scroll-padding-bottom: var(--tp-privacy-space, 0px);
}
body.tp {
  padding-bottom: var(--tp-privacy-space, 0px);
}
#tp-privacy-panel {
  position: fixed;
  z-index: 25;
  inset-inline-start: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(430px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 22px;
  border: 1px solid var(--line, #dcdedc);
  border-radius: 10px;
  background: var(--paper, #fffdf9);
  color: var(--ink, #192d45);
  box-shadow: 0 6px 30px rgb(25 45 69 / 17%);
  font: inherit;
}
#tp-privacy-panel[hidden] { display: none; }
#tp-privacy-panel h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.tp-privacy-description, .tp-privacy-current {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.tp-privacy-policy {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
}
.tp-privacy-current { color: var(--muted, #516174); }
.tp-privacy-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.tp-privacy-actions button {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--ink, #192d45);
  border-radius: 6px;
  background: transparent;
  color: var(--ink, #192d45);
  font-weight: 600;
  font-size: 14px;
}
.tp-privacy-actions button:hover { background: #ecf1f4; }
@media (max-width: 480px), (max-height: 460px) {
  #tp-privacy-panel {
    inset-inline-start: max(8px, env(safe-area-inset-left));
    bottom: max(8px, env(safe-area-inset-bottom));
    width: min(430px, calc(100% - 16px));
    max-height: calc(85vh - 16px);
    max-height: calc(85dvh - 16px);
    padding: 14px 16px;
  }
}
@media print {
  #tp-privacy-panel, [data-privacy-settings] { display: none !important; }
  body.tp { padding-bottom: 0; }
}
