.tbpc-open { overflow: hidden; }
.tbpc-root { position: fixed; inset: 0; z-index: 999999; }
.tbpc-root[hidden], .tbpc-details[hidden], .tbpc-button[hidden] { display: none !important; }
.tbpc-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .62); }
.tbpc-dialog { position: relative; width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 32px); margin: 16px auto; overflow: auto; border-radius: 12px; background: var(--tbpc-bg, #fff); color: var(--tbpc-text, #172b4d); box-shadow: 0 24px 80px rgba(15, 23, 42, .32); }
.tbpc-layout-banner { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; max-height: 85vh; margin: 0; border-radius: 12px 12px 0 0; }
.tbpc-header, .tbpc-details, .tbpc-actions, .tbpc-legal-note { padding: 20px 24px; }
.tbpc-header { border-bottom: 1px solid #d8dee9; }
.tbpc-header h2, .tbpc-category h3 { margin: 0 0 8px; color: inherit; }
.tbpc-header p, .tbpc-category p { margin: 0; }
.tbpc-category { padding: 18px 0; border-bottom: 1px solid #d8dee9; }
.tbpc-category-heading, .tbpc-service { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.tbpc-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 12px 0; font-size: .9em; }
.tbpc-meta dt { font-weight: 700; }
.tbpc-meta dd { margin: 0; }
.tbpc-services summary { cursor: pointer; font-weight: 700; }
.tbpc-service { padding: 12px 0 4px; }
.tbpc-service p { margin-top: 4px; }
.tbpc-actions { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid #d8dee9; }
.tbpc-actions.tbpc-equal .tbpc-button { flex: 1 1 145px; }
.tbpc-button, .tbpc-inline-settings, .tbpc-floating, .tbpc-embed-placeholder button, .tbpc-consent-status button { min-height: 44px; border: 2px solid var(--tbpc-primary, #155eef); border-radius: 7px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.tbpc-primary { background: var(--tbpc-primary, #155eef); color: #fff; }
.tbpc-secondary, .tbpc-inline-settings, .tbpc-embed-placeholder button, .tbpc-consent-status button { background: transparent; color: var(--tbpc-text, #172b4d); }
.tbpc-button:focus-visible, .tbpc-switch input:focus-visible + span, [data-tbpc-open]:focus-visible, [data-tbpc-withdraw]:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.tbpc-legal-note { margin: 0; padding-top: 0; font-size: .85em; }
.tbpc-switch { position: relative; flex: 0 0 48px; }
.tbpc-switch input { position: absolute; opacity: 0; }
.tbpc-switch span { display: block; width: 46px; height: 26px; border-radius: 13px; background: #6b778c; transition: .15s; }
.tbpc-switch span::after { content: ''; display: block; width: 20px; height: 20px; margin: 3px; border-radius: 50%; background: #fff; transition: .15s; }
.tbpc-switch input:checked + span { background: var(--tbpc-primary, #155eef); }
.tbpc-switch input:checked + span::after { transform: translateX(20px); }
.tbpc-switch input:disabled + span { opacity: .65; cursor: not-allowed; }
.tbpc-floating { position: fixed; z-index: 99990; right: 16px; bottom: 16px; min-height: 38px; padding: 6px 12px; background: var(--tbpc-bg, #fff); color: var(--tbpc-text, #172b4d); box-shadow: 0 3px 16px rgba(15, 23, 42, .2); }
.tbpc-embed-placeholder { padding: 28px; border: 2px dashed #8590a3; background: #f6f8fa; text-align: center; }
.tbpc-table-wrap { overflow-x: auto; }
.tbpc-cookie-table { width: 100%; border-collapse: collapse; }
.tbpc-cookie-table th, .tbpc-cookie-table td { padding: 10px; border: 1px solid #d8dee9; text-align: left; vertical-align: top; }
@media (max-width: 560px) { .tbpc-dialog { width: 100%; max-height: 100vh; min-height: 100vh; margin: 0; border-radius: 0; } .tbpc-header, .tbpc-details, .tbpc-actions, .tbpc-legal-note { padding-left: 16px; padding-right: 16px; } .tbpc-category-heading, .tbpc-service { gap: 10px; } .tbpc-meta { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tbpc-switch span, .tbpc-switch span::after { transition: none; } }
