.cactus-cc-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 999990;
	padding: 16px;
	box-sizing: border-box;
}

.cactus-cc-banner[hidden],
.cactus-cc-modal[hidden],
.cactus-cc-reopen[hidden] {
	display: none !important;
}

.cactus-cc-banner--bottom {
	bottom: 0;
}

.cactus-cc-banner--top {
	top: 0;
}

.cactus-cc-banner--center {
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
}

.cactus-cc-banner__inner {
	max-width: 1100px;
	margin: 0 auto;
	background: var(--cactus-cc-bg, #111827);
	color: var(--cactus-cc-color, #fff);
	border-radius: var(--cactus-cc-radius, 14px);
	padding: 18px 20px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	display: flex;
	gap: 18px;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
}

.cactus-cc-banner__copy {
	flex: 1 1 320px;
	min-width: 0;
}

.cactus-cc-banner__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
}

.cactus-cc-banner__text {
	font-size: 14px;
	line-height: 1.45;
	opacity: 0.95;
}

.cactus-cc-banner__text p {
	margin: 0 0 0.6em;
}

.cactus-cc-banner__text p:last-child {
	margin-bottom: 0;
}

.cactus-cc-banner__privacy {
	margin: 10px 0 0;
	font-size: 13px;
}

.cactus-cc-banner__privacy a {
	color: inherit;
	text-decoration: underline;
}

.cactus-cc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
}

.cactus-cc-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
}

.cactus-cc-btn--primary {
	background: var(--cactus-cc-accent, #34a853);
	color: var(--cactus-cc-accent-text, #fff);
}

.cactus-cc-btn--secondary {
	background: transparent;
	color: inherit;
	border-color: rgba(255, 255, 255, 0.35);
}

.cactus-cc-btn--ghost {
	background: rgba(255, 255, 255, 0.12);
	color: inherit;
}

.cactus-cc-modal {
	position: fixed;
	inset: 0;
	z-index: 999991;
}

.cactus-cc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.cactus-cc-modal__card {
	position: relative;
	max-width: 560px;
	margin: 8vh auto 0;
	background: var(--cactus-cc-bg, #111827);
	color: var(--cactus-cc-color, #fff);
	border-radius: var(--cactus-cc-radius, 14px);
	padding: 20px 20px 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
	max-height: 84vh;
	overflow: auto;
}

.cactus-cc-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: transparent;
	border: 0;
	color: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.cactus-cc-modal__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 28px 14px 0;
}

.cactus-cc-modal__cats {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.cactus-cc-cat {
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	padding: 10px 12px;
}

.cactus-cc-cat__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	cursor: pointer;
}

.cactus-cc-cat__badge {
	margin-left: auto;
	font-size: 11px;
	font-weight: 600;
	opacity: 0.75;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	padding: 2px 8px;
}

.cactus-cc-cat__desc {
	margin-top: 6px;
	font-size: 13px;
	opacity: 0.9;
	line-height: 1.4;
}

.cactus-cc-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.cactus-cc-reopen {
	position: fixed;
	left: 14px;
	bottom: 14px;
	z-index: 999989;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	border: 0;
	background: var(--cactus-cc-bg, #111827);
	color: var(--cactus-cc-color, #fff);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 0;
}

.cactus-cc-reopen__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
}

.cactus-cc-reopen__icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.cactus-cc-reopen-link {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

@media (max-width: 640px) {
	.cactus-cc-banner__inner {
		align-items: stretch;
	}

	.cactus-cc-banner__actions {
		justify-content: stretch;
	}

	.cactus-cc-banner__actions .cactus-cc-btn {
		flex: 1 1 auto;
	}

	.cactus-cc-modal__card {
		margin: 4vh 12px 0;
	}
}
