/* Clear Cookie Consent */
.ccc-root {
	--ccc-radius: 10px;
	--ccc-shadow: 0 10px 40px rgba(0, 0, 0, .18);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ccc-text);
}
.ccc-root *, .ccc-root *::before, .ccc-root *::after { box-sizing: border-box; }
.ccc-root [hidden] { display: none !important; }

/* Mode-specific elements */
.ccc-banner [data-ccc-show] { display: none; }
.ccc-banner.ccc-mode-strict [data-ccc-show="strict"],
.ccc-banner.ccc-mode-us [data-ccc-show="us"] { display: revert; }

/* Banner */
.ccc-banner {
	position: fixed;
	z-index: 2147483000;
	background: var(--ccc-bg);
	color: var(--ccc-text);
	box-shadow: var(--ccc-shadow);
	padding: 20px 24px;
}
.ccc-banner:focus { outline: none; }
.ccc-pos-bottom { left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.ccc-pos-bottom .ccc-banner-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: end; }
.ccc-pos-bottom .ccc-title { grid-column: 1 / -1; }
.ccc-pos-bottom-left { left: 16px; bottom: 16px; max-width: 420px; border-radius: var(--ccc-radius); }
.ccc-pos-center { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); border-radius: var(--ccc-radius); }

.ccc-title { margin: 0 0 6px; font-size: 1.15em; font-weight: 700; line-height: 1.3; color: inherit; }
.ccc-text p { margin: 0 0 8px; }
.ccc-text a, .ccc-modal a { color: var(--ccc-primary); text-decoration: underline; }
.ccc-gpc-note { font-size: .9em; padding: 8px 10px; border-left: 3px solid var(--ccc-primary); background: rgba(0, 0, 0, .04); }

/* Buttons — Accept and Reject share identical styling (no dark patterns). */
.ccc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ccc-btn {
	appearance: none;
	font: inherit;
	font-weight: 600;
	font-size: .95em;
	padding: 10px 18px;
	border-radius: 6px;
	border: 2px solid var(--ccc-primary);
	cursor: pointer;
	line-height: 1.2;
	min-height: 44px;
	flex: 1 1 auto;
	white-space: nowrap;
}
.ccc-btn-primary { background: var(--ccc-primary); color: #fff; }
.ccc-btn-secondary { background: transparent; color: var(--ccc-primary); }
.ccc-btn:hover { filter: brightness(1.08); }
.ccc-root button:focus-visible, .ccc-root a:focus-visible, .ccc-root input:focus-visible + .ccc-slider, .ccc-root summary:focus-visible {
	outline: 3px solid var(--ccc-primary);
	outline-offset: 2px;
}

/* Modal */
.ccc-modal { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ccc-modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.ccc-modal-dialog {
	position: relative;
	background: var(--ccc-bg);
	color: var(--ccc-text);
	width: min(640px, 100%);
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	border-radius: var(--ccc-radius);
	box-shadow: var(--ccc-shadow);
}
.ccc-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px 8px; }
.ccc-modal-body { padding: 0 24px; overflow-y: auto; }
.ccc-modal-foot { padding: 16px 24px 20px; border-top: 1px solid rgba(0, 0, 0, .08); }
.ccc-close { appearance: none; background: none; border: 0; font-size: 28px; line-height: 1; color: inherit; cursor: pointer; padding: 4px 8px; min-width: 44px; min-height: 44px; }
html.ccc-modal-open { overflow: hidden; }

.ccc-cat { padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.ccc-cat:last-of-type { border-bottom: 0; }
.ccc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ccc-cat-label { font-weight: 600; cursor: pointer; }
.ccc-cat-desc { margin: 6px 0 0; font-size: .92em; opacity: .9; }
.ccc-always { font-size: .85em; font-weight: 600; color: var(--ccc-primary); }

/* Switch */
.ccc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.ccc-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.ccc-slider { position: absolute; inset: 0; background: #9ca3af; border-radius: 26px; transition: background .2s; }
.ccc-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.ccc-switch input:checked + .ccc-slider { background: var(--ccc-primary); }
.ccc-switch input:checked + .ccc-slider::before { transform: translateX(20px); }

.ccc-cookies { margin-top: 8px; font-size: .88em; }
.ccc-cookies summary { cursor: pointer; color: var(--ccc-primary); font-weight: 600; }
.ccc-table-wrap { overflow-x: auto; }
.ccc-cookie-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .92em; }
.ccc-cookie-table th, .ccc-cookie-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(0, 0, 0, .08); vertical-align: top; }
.ccc-consent-id { font-size: .85em; opacity: .8; margin: 12px 0; word-break: break-all; }

/* Reopen button */
.ccc-reopen {
	position: fixed; left: 16px; bottom: 16px; z-index: 2147482999;
	width: 44px; height: 44px; border-radius: 50%;
	border: 0; background: var(--ccc-primary); color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
html.ccc-banner-open .ccc-reopen { display: none; }

/* Toast */
.ccc-toast {
	position: fixed; right: 16px; bottom: 16px; z-index: 2147483002;
	max-width: 360px; padding: 12px 16px; border-radius: 8px;
	background: #111827; color: #fff; font-size: .92em; box-shadow: var(--ccc-shadow);
}

.ccc-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 720px) {
	.ccc-pos-bottom .ccc-banner-inner { grid-template-columns: 1fr; }
	.ccc-pos-bottom-left { left: 8px; right: 8px; bottom: 8px; max-width: none; }
	.ccc-banner { padding: 16px; max-height: 80vh; overflow-y: auto; }
	.ccc-btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
	.ccc-slider, .ccc-slider::before { transition: none; }
}
