#ccc-banner {
	box-sizing: border-box;
	z-index: 999999;
	font-family: var(--ccc-font, inherit);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ccc-text);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

#ccc-banner *,
#ccc-banner *::before,
#ccc-banner *::after {
	box-sizing: border-box;
}

#ccc-banner.ccc-hidden {
	display: none !important;
}

#ccc-banner.ccc-anim-slide.ccc-hidden {
	display: flex !important;
	opacity: 0;
	transform: translateY(100%);
	pointer-events: none;
}

#ccc-banner.ccc-anim-fade.ccc-hidden {
	display: flex !important;
	opacity: 0;
	pointer-events: none;
}

#ccc-banner.ccc-anim-none.ccc-hidden {
	display: none !important;
}

#ccc-banner.ccc-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

#ccc-banner .ccc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, var(--ccc-overlay-opacity, 0.5));
	z-index: 0;
}

#ccc-banner .ccc-inner {
	position: relative;
	z-index: 1;
}

#ccc-banner.ccc-pos-bottom {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
}

#ccc-banner.ccc-pos-bottom .ccc-inner {
	max-width: 100%;
}

#ccc-banner.ccc-pos-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

#ccc-banner.ccc-pos-top .ccc-inner {
	max-width: 100%;
}

#ccc-banner.ccc-pos-center {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

#ccc-banner.ccc-pos-center .ccc-inner {
	max-width: 560px;
	width: 90%;
}

#ccc-banner.ccc-layout-bar .ccc-inner {
	background: var(--ccc-bg);
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
	padding: 16px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

#ccc-banner.ccc-layout-bar .ccc-header {
	display: flex;
	align-items: center;
	gap: 8px;
}

#ccc-banner.ccc-layout-bar .ccc-message {
	flex: 1;
	min-width: 200px;
	margin: 0;
	font-size: 13px;
}

#ccc-banner.ccc-layout-bar .ccc-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

#ccc-banner.ccc-layout-bar .ccc-links {
	display: flex;
	gap: 12px;
	font-size: 12px;
	flex-shrink: 0;
}

#ccc-banner.ccc-layout-floating .ccc-inner {
	background: var(--ccc-bg);
	border-radius: var(--ccc-radius, 12px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	padding: 20px 24px;
	max-width: 460px;
	margin: 16px;
}

#ccc-banner.ccc-pos-bottom.ccc-layout-floating {
	justify-content: center;
}

#ccc-banner.ccc-pos-bottom.ccc-layout-floating .ccc-inner {
	border-radius: var(--ccc-radius, 12px) var(--ccc-radius, 12px) 0 0;
}

#ccc-banner.ccc-pos-top.ccc-layout-floating .ccc-inner {
	border-radius: 0 0 var(--ccc-radius, 12px) var(--ccc-radius, 12px);
}

#ccc-banner.ccc-layout-floating .ccc-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

#ccc-banner.ccc-layout-floating .ccc-message {
	margin: 0 0 16px;
	font-size: 13px;
}

#ccc-banner.ccc-layout-floating .ccc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

#ccc-banner.ccc-layout-floating .ccc-links {
	display: flex;
	gap: 12px;
	font-size: 12px;
}

.ccc-header .ccc-icon {
	flex-shrink: 0;
	color: var(--ccc-accent);
}

.ccc-title {
	font-weight: 700;
	font-size: 15px;
}

.ccc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border: none;
	border-radius: var(--ccc-radius, 12px);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s;
	font-family: inherit;
	line-height: 1.3;
	text-decoration: none;
}

.ccc-btn:hover {
	opacity: 0.9;
}

.ccc-btn:active {
	transform: scale(0.98);
}

.ccc-btn-accept {
	background: var(--ccc-btn-accept, var(--ccc-accent));
	color: var(--ccc-btn-text, #fff);
}

.ccc-btn-reject {
	background: var(--ccc-btn-reject, #6b7280);
	color: var(--ccc-btn-text, #fff);
}

.ccc-btn-settings {
	background: transparent;
	color: var(--ccc-text);
	border: 1px solid currentColor;
	opacity: 0.7;
}

.ccc-btn-settings:hover {
	opacity: 1;
}

.ccc-btn-save {
	background: var(--ccc-accent);
	color: var(--ccc-btn-text, #fff);
}

.ccc-link {
	color: var(--ccc-accent);
	text-decoration: underline;
	font-size: 12px;
}

.ccc-link:hover {
	opacity: 0.8;
}

.ccc-details {
	margin-top: 12px;
	border-top: 1px solid rgba(128, 128, 128, 0.2);
	padding-top: 12px;
}

.ccc-details.ccc-hidden {
	display: none;
}

.ccc-details-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.ccc-category {
	border-bottom: 1px solid rgba(128, 128, 128, 0.15);
	padding: 8px 0;
}

.ccc-category:last-child {
	border-bottom: none;
}

.ccc-category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ccc-category-label {
	font-weight: 600;
	font-size: 13px;
}

.ccc-category-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: var(--ccc-text);
	opacity: 0.5;
	transition: opacity 0.2s;
}

.ccc-category-toggle:hover {
	opacity: 1;
}

.ccc-category-toggle[aria-expanded='true'] svg {
	transform: rotate(180deg);
}

.ccc-category-desc {
	font-size: 12px;
	color: var(--ccc-text);
	opacity: 0.75;
	margin: 6px 0 0;
	line-height: 1.5;
}

.ccc-category-desc.ccc-hidden {
	display: none;
}

.ccc-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	position: relative;
}

.ccc-toggle input[type='checkbox'] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.ccc-slider {
	width: 36px;
	height: 20px;
	background: #ccc;
	border-radius: 10px;
	position: relative;
	transition: background 0.3s;
	flex-shrink: 0;
}

.ccc-slider::before {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	left: 2px;
	top: 2px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.3s;
}

.ccc-toggle input:checked + .ccc-slider {
	background: var(--ccc-accent);
}

.ccc-toggle input:checked + .ccc-slider::before {
	transform: translateX(16px);
}

.ccc-toggle input:disabled + .ccc-slider {
	opacity: 0.5;
}

#ccc-revoke {
	position: fixed;
	z-index: 999997;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: var(--ccc-bg, #fff);
	color: var(--ccc-text, #333);
	border: 1px solid rgba(128, 128, 128, 0.2);
	border-radius: var(--ccc-radius, 12px);
	font-size: 12px;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
	transition: opacity 0.2s, transform 0.2s;
}

#ccc-revoke:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

#ccc-revoke.ccc-hidden {
	display: none;
}

#ccc-revoke svg {
	flex-shrink: 0;
	color: var(--ccc-accent);
}

.ccc-revoke-bottom-left {
	bottom: 16px;
	left: 16px;
}

.ccc-revoke-bottom-right {
	bottom: 16px;
	right: 16px;
}

.ccc-blocked-embed {
	position: relative;
	background: var(--ccc-bg, #f3f4f6);
	border: 2px dashed rgba(128, 128, 128, 0.3);
	border-radius: var(--ccc-radius, 12px);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	overflow: hidden;
}

.ccc-blocked-overlay {
	text-align: center;
	padding: 24px;
	color: var(--ccc-text, #333);
}

.ccc-blocked-overlay svg {
	margin-bottom: 8px;
	opacity: 0.5;
}

.ccc-blocked-overlay p {
	margin: 0 0 12px;
	font-size: 14px;
	opacity: 0.7;
}

.ccc-unblock-btn {
	font-size: 12px;
	padding: 6px 14px;
}

body.ccc-banner-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	#ccc-banner.ccc-layout-bar .ccc-inner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	#ccc-banner.ccc-layout-bar .ccc-actions {
		justify-content: center;
	}

	#ccc-banner.ccc-layout-bar .ccc-links {
		justify-content: center;
	}

	#ccc-banner.ccc-layout-floating .ccc-inner {
		margin: 8px;
		padding: 16px;
	}

	.ccc-btn {
		width: 100%;
	}

	.ccc-details-actions {
		flex-direction: column;
	}
}
