/* ThinkPalm consent banner: old CookieHub setup = dark UI, bottom bar, primary #1977f3, settings icon bottom-left (light). */
.tpc-root, .tpc-root * { box-sizing: border-box; }
.tpc-root { font-family: inherit; font-size: 14px; line-height: 1.5; color: #fff; -webkit-font-smoothing: antialiased; }
.tpc-root p { margin: 0 0 8px; color: inherit; font-size: inherit; line-height: inherit; }
.tpc-root button { font-family: inherit; }
html.tpc-lock, html.tpc-lock body { overflow: hidden !important; }

/* Bar */
.tpc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; background: #222326; color: #fff;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, .25); transform: translateY(100%); transition: transform .3s ease-out; }
.tpc-bar.tpc-visible { transform: none; }
.tpc-bar-inner { max-width: 1280px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; gap: 32px; }
.tpc-bar-text { flex: 1 1 auto; min-width: 0; }
.tpc-bar-text p:last-child { margin-bottom: 0; }
.tpc-title { font-size: 16px !important; font-weight: 700; margin-bottom: 4px !important; }
.tpc-root a.tpc-link { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.tpc-root a.tpc-link:hover { color: #9cc4ff; }
.tpc-bar-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; min-width: 200px; }

/* Buttons */
.tpc-root .tpc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 4px;
	font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; border: 2px solid transparent; text-decoration: none; text-transform: none;
	letter-spacing: normal; transition: background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.tpc-root .tpc-btn-primary { background: #1977f3; border-color: #1977f3; color: #fff; }
.tpc-root .tpc-btn-primary:hover { background: #0d62d2; border-color: #0d62d2; color: #fff; }
.tpc-root .tpc-btn-secondary { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.tpc-root .tpc-btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.tpc-root button:focus-visible, .tpc-root a:focus-visible, .tpc-root input:focus-visible + span { outline: 2px solid #9cc4ff; outline-offset: 2px; }

/* Settings icon */
.tpc-root .tpc-icon { position: fixed; left: 16px; bottom: 16px; z-index: 2147482999; width: 44px; height: 44px; padding: 0; border-radius: 50%;
	border: 0; background: #fff; color: #1977f3; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: transform .2s; }
.tpc-root .tpc-icon:hover { transform: scale(1.06); }
.tpc-root .tpc-icon[hidden], .tpc-overlay[hidden], .tpc-bar[hidden], .tpc-decl[hidden] { display: none !important; }

/* Settings dialog */
.tpc-overlay { position: fixed; inset: 0; z-index: 2147483001; background: rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; padding: 24px; }
.tpc-settings { position: relative; width: 100%; max-width: 640px; max-height: 100%; display: flex; flex-direction: column; background: #222326; color: #fff;
	border-radius: 8px; box-shadow: 0 12px 48px rgba(0, 0, 0, .4); outline: none; overflow: hidden; }
.tpc-settings-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.tpc-settings-header .tpc-title { margin: 0 !important; }
.tpc-root .tpc-close { flex: 0 0 auto; width: 44px; height: 44px; margin: -10px -12px -10px 0; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 4px; padding: 0; }
.tpc-root .tpc-close::before, .tpc-root .tpc-close::after { content: ""; position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; background: #fff; transform: rotate(45deg); }
.tpc-root .tpc-close::after { transform: rotate(-45deg); }
.tpc-settings-content { padding: 20px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; color: rgba(255, 255, 255, .85); }
.tpc-settings-quick { display: flex; gap: 12px; margin: 16px 0 8px; }
.tpc-settings-quick .tpc-btn { flex: 1 1 0; }
.tpc-options { margin-top: 8px; }
.tpc-option { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.tpc-option-details { flex: 1 1 auto; min-width: 0; }
.tpc-option-title { color: #fff; font-weight: 700; margin-bottom: 4px !important; }
.tpc-root .tpc-toggle { background: none; border: 0; padding: 4px 0; margin: 0; color: #9cc4ff; cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; min-height: 32px; }
.tpc-decl { margin-top: 8px; overflow-x: auto; }
.tpc-decl table { width: 100%; border-collapse: collapse; font-size: 12px; color: rgba(255, 255, 255, .85); }
.tpc-decl th, .tpc-decl td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); vertical-align: top; word-break: break-word; }
.tpc-decl th { color: #fff; font-weight: 600; }
.tpc-settings-actions { padding: 16px 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: flex-end; }

/* Switch */
.tpc-switch { position: relative; flex: 0 0 auto; width: 44px; height: 24px; margin-top: 2px; cursor: pointer; }
.tpc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.tpc-switch span { position: absolute; inset: 0; border-radius: 12px; background: #6b6e75; transition: background-color .2s; }
.tpc-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tpc-switch input:checked + span { background: #1977f3; }
.tpc-switch input:checked + span::after { transform: translateX(20px); }
.tpc-switch input:disabled { cursor: not-allowed; }
.tpc-switch input:disabled + span { opacity: .55; }

@media (max-width: 767px) {
	.tpc-bar-inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }
	.tpc-bar-actions { flex-direction: row; min-width: 0; }
	.tpc-bar-actions .tpc-btn { flex: 1 1 0; white-space: normal; text-align: center; }
	.tpc-root { font-size: 13px; }
	.tpc-overlay { padding: 0; align-items: flex-end; }
	.tpc-settings { max-height: 92vh; border-radius: 12px 12px 0 0; }
	.tpc-settings-header, .tpc-settings-content, .tpc-settings-actions { padding-left: 20px; padding-right: 20px; }
	.tpc-settings-quick .tpc-btn { white-space: normal; }
	.tpc-settings-actions .tpc-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tpc-bar, .tpc-icon, .tpc-switch span, .tpc-switch span::after { transition: none; } }
