.cbcmp-root,
.cbcmp-root * { box-sizing: border-box; }
.cbcmp-root { position: relative; z-index: 2147483000; font-family: var(--cbcmp-font, inherit); color: var(--cbcmp-text, #fff); line-height: 1.5; }
.cbcmp-root [hidden] { display: none !important; }
.cbcmp-root button,
.cbcmp-root a { font: inherit; }
.cbcmp-root a { color: inherit; text-underline-offset: 3px; }
.cbcmp-root a:hover { text-decoration-thickness: 2px; }
.cbcmp-root button:focus-visible,
.cbcmp-root a:focus-visible,
.cbcmp-root input:focus-visible { outline: 3px solid var(--cbcmp-accent, #d8ff4f); outline-offset: 3px; }
.cbcmp-root .screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

.cbcmp-banner { position: fixed; bottom: 22px; left: 22px; width: min(580px, calc(100vw - 44px)); padding: 26px; border: 1px solid var(--cbcmp-border, #353a45); border-radius: var(--cbcmp-radius, 16px); background: var(--cbcmp-bg, #111318); color: var(--cbcmp-text, #fff); box-shadow: 0 24px 80px rgba(0,0,0,.34); animation: cbcmp-rise .28s ease-out both; }
.cbcmp-position-bottom-right .cbcmp-banner { left: auto; right: 22px; }
.cbcmp-position-bottom-centre .cbcmp-banner { left: 50%; transform: translateX(-50%); animation-name: cbcmp-rise-centre; }
.cbcmp-layout-bar .cbcmp-banner { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: end; padding: 22px max(24px, calc((100vw - 1280px)/2)); }
.cbcmp-banner h2 { margin: 0 0 9px; color: var(--cbcmp-text, #fff); font-size: clamp(21px, 2vw, 27px); line-height: 1.15; letter-spacing: -.02em; }
.cbcmp-banner p { margin: 0; color: var(--cbcmp-muted, #c9ced8); font-size: 15px; }
.cbcmp-policy-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--cbcmp-muted, #c9ced8); font-size: 13px; }
.cbcmp-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.cbcmp-banner-actions .cbcmp-button-secondary { grid-column: 1 / -1; grid-row: 1; }
.cbcmp-banner-actions .cbcmp-button-choice:first-child { grid-column: 1; grid-row: 2; }
.cbcmp-banner-actions .cbcmp-button-choice:last-child { grid-column: 2; grid-row: 2; }
.cbcmp-layout-bar .cbcmp-banner-actions { min-width: 420px; margin-top: 0; }

.cbcmp-button { min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: max(8px, calc(var(--cbcmp-radius, 16px) - 6px)); cursor: pointer; font-weight: 750; line-height: 1.2; transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease; }
.cbcmp-button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.cbcmp-button:active { transform: translateY(0); }
.cbcmp-button-choice { background: var(--cbcmp-accent, #d8ff4f); color: var(--cbcmp-accent-text, #101214); border-color: var(--cbcmp-accent, #d8ff4f); }
.cbcmp-button-secondary { background: transparent; color: var(--cbcmp-text, #fff); border-color: var(--cbcmp-border, #353a45); }
.cbcmp-button-secondary:hover { background: rgba(255,255,255,.06); }

.cbcmp-modal { position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: center; padding: 20px; }
.cbcmp-overlay { position: absolute; inset: 0; backdrop-filter: blur(4px); animation: cbcmp-fade .18s ease-out both; }
.cbcmp-dialog { position: relative; z-index: 1; width: min(760px, 100%); max-height: min(860px, calc(100vh - 40px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--cbcmp-border, #353a45); border-radius: var(--cbcmp-radius, 16px); background: var(--cbcmp-panel, #191c23); color: var(--cbcmp-text, #fff); box-shadow: 0 36px 110px rgba(0,0,0,.48); animation: cbcmp-pop .22s ease-out both; }
.cbcmp-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; border-bottom: 1px solid var(--cbcmp-border, #353a45); }
.cbcmp-kicker { margin: 0 0 5px !important; color: var(--cbcmp-accent, #d8ff4f) !important; font-size: 11px !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cbcmp-dialog h2 { margin: 0; color: var(--cbcmp-text, #fff); font-size: clamp(23px, 3vw, 31px); line-height: 1.1; letter-spacing: -.025em; }
.cbcmp-icon-button { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--cbcmp-border, #353a45); border-radius: 50%; background: transparent; color: var(--cbcmp-text, #fff); cursor: pointer; font-size: 27px; line-height: 1; }
.cbcmp-icon-button:hover { background: rgba(255,255,255,.06); }
.cbcmp-dialog-body { overflow: auto; padding: 22px 26px 26px; }
.cbcmp-dialog-body > p { margin: 0 0 18px; color: var(--cbcmp-muted, #c9ced8); }
.cbcmp-gpc-notice { margin: 0 0 18px; padding: 12px 14px; border-left: 4px solid var(--cbcmp-accent, #d8ff4f); border-radius: 8px; background: rgba(216,255,79,.08); color: var(--cbcmp-text, #fff); font-size: 13px; }
.cbcmp-category-list { display: grid; gap: 10px; }
.cbcmp-category { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 17px 18px; border: 1px solid var(--cbcmp-border, #353a45); border-radius: max(10px, calc(var(--cbcmp-radius, 16px) - 4px)); background: rgba(255,255,255,.025); }
.cbcmp-category h3 { margin: 0 0 3px; color: var(--cbcmp-text, #fff); font-size: 16px; line-height: 1.25; }
.cbcmp-category p { margin: 0; color: var(--cbcmp-muted, #c9ced8); font-size: 13px; }
.cbcmp-switch { display: inline-flex; align-items: center; cursor: pointer; }
.cbcmp-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cbcmp-switch-track { position: relative; width: 48px; height: 27px; border: 1px solid var(--cbcmp-border, #353a45); border-radius: 999px; background: #343944; transition: .18s ease; }
.cbcmp-switch-track span { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); transition: .18s ease; }
.cbcmp-switch input:checked + .cbcmp-switch-track { border-color: var(--cbcmp-accent, #d8ff4f); background: var(--cbcmp-accent, #d8ff4f); }
.cbcmp-switch input:checked + .cbcmp-switch-track span { transform: translateX(21px); background: var(--cbcmp-accent-text, #101214); }
.cbcmp-switch input:disabled + .cbcmp-switch-track { opacity: .72; cursor: not-allowed; }
.cbcmp-dialog-links { margin-top: 18px; }
.cbcmp-dialog-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 18px 26px 22px; border-top: 1px solid var(--cbcmp-border, #353a45); background: var(--cbcmp-bg, #111318); }

.cbcmp-reopen { position: fixed; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 14px; border: 1px solid var(--cbcmp-border, #353a45); border-radius: 999px; background: var(--cbcmp-bg, #111318); color: var(--cbcmp-text, #fff); box-shadow: 0 10px 34px rgba(0,0,0,.22); cursor: pointer; font-size: 13px; font-weight: 700; }
.cbcmp-position-bottom-right .cbcmp-reopen { left: auto; right: 18px; }
.cbcmp-position-bottom-centre .cbcmp-reopen { left: 50%; transform: translateX(-50%); }
.cbcmp-reopen span { color: var(--cbcmp-accent, #d8ff4f); font-size: 17px; }
.cbcmp-reopen:hover { border-color: var(--cbcmp-accent, #d8ff4f); }
.cbcmp-shortcode-button { cursor: pointer; }
html.cbcmp-modal-open { overflow: hidden; }

@keyframes cbcmp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cbcmp-rise-centre { from { opacity: 0; transform: translate(-50%,14px); } to { opacity: 1; transform: translate(-50%,0); } }
@keyframes cbcmp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cbcmp-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
	.cbcmp-layout-bar .cbcmp-banner { display: block; padding: 20px; }
	.cbcmp-layout-bar .cbcmp-banner-actions { min-width: 0; margin-top: 18px; }
}
@media (max-width: 620px) {
	.cbcmp-banner { left: 12px !important; right: 12px !important; bottom: 12px; width: auto; padding: 20px; transform: none !important; }
	.cbcmp-banner-actions { grid-template-columns: 1fr; }
	.cbcmp-banner-actions .cbcmp-button-secondary,
	.cbcmp-banner-actions .cbcmp-button-choice:first-child,
	.cbcmp-banner-actions .cbcmp-button-choice:last-child { grid-column: 1; }
	.cbcmp-banner-actions .cbcmp-button-secondary { grid-row: 1; }
	.cbcmp-banner-actions .cbcmp-button-choice:first-child { grid-row: 2; }
	.cbcmp-banner-actions .cbcmp-button-choice:last-child { grid-row: 3; }
	.cbcmp-modal { padding: 8px; align-items: end; }
	.cbcmp-dialog { width: 100%; max-height: calc(100vh - 16px); border-radius: 16px 16px 10px 10px; }
	.cbcmp-dialog-header { padding: 20px 18px 15px; }
	.cbcmp-dialog-body { padding: 18px; }
	.cbcmp-dialog-footer { grid-template-columns: 1fr; padding: 14px 18px 18px; }
	.cbcmp-category { padding: 15px; }
	.cbcmp-reopen { left: 12px !important; right: auto !important; bottom: 12px; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	.cbcmp-root *, .cbcmp-root *::before, .cbcmp-root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
	.cbcmp-banner, .cbcmp-dialog, .cbcmp-category, .cbcmp-button, .cbcmp-reopen { border: 1px solid CanvasText; }
}
