.tdc[hidden], .tdc__settings[hidden], .tdc__main[hidden] { display: none !important; }
.tdc { position: fixed; inset: 0; z-index: 100000; font-family: inherit; }
.tdc__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.48); }
.tdc__dialog { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(900px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: #fff; color: #202020; border-radius: 8px; box-shadow: 0 18px 60px rgba(0,0,0,.3); padding: 26px; }
.tdc__title { margin: 0 0 12px; font-size: 24px; line-height: 1.25; font-weight: 700; }
.tdc__text, .tdc__legal, .tdc__category p { margin: 0; line-height: 1.55; }
.tdc__legal { margin-top: 12px; font-size: 14px; color: #555; }
.tdc__legal a { color: inherit; text-decoration: underline; }
.tdc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tdc__button { flex: 1 1 180px; min-height: 46px; border: 2px solid #222; border-radius: 4px; background: #fff; color: #111; padding: 10px 16px; font-size: 15px; font-weight: 700; cursor: pointer; }
.tdc__button:hover, .tdc__button:focus { background: #f2f2f2; outline: 3px solid rgba(0,0,0,.18); outline-offset: 2px; }
.tdc__actions--primary .tdc__button { flex-basis: 0; }
.tdc__settings-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.tdc__back { appearance: none; border: 0; background: transparent; text-decoration: underline; cursor: pointer; padding: 8px 0; font-weight: 600; }
.tdc__category { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 18px 0; border-top: 1px solid #ddd; }
.tdc__category:first-of-type { border-top: 0; }
.tdc__category h3 { margin: 0 0 6px; font-size: 18px; }
.tdc__category-copy { flex: 1 1 auto; }
.tdc__switch { flex: 0 0 185px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.tdc__switch input { width: 20px; height: 20px; margin: 0; }
.tdc__switch--locked { cursor: default; color: #555; }
.tdc-footer-link { margin-top: 12px; }
.tdc-footer-link__button { appearance: none; border: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
body.tdc-is-open { overflow: hidden; }
@media (max-width: 640px) {
    .tdc__dialog { bottom: 0; width: 100%; max-height: 92vh; border-radius: 8px 8px 0 0; padding: 20px 16px; }
    .tdc__title { font-size: 21px; }
    .tdc__actions--primary { flex-direction: column; }
    .tdc__actions--primary .tdc__button { flex-basis: auto; width: 100%; }
    .tdc__category { align-items: flex-start; flex-direction: column; gap: 12px; }
    .tdc__switch { flex: 0 0 auto; }
}
