[data-consent]:not([data-ccb-granted]) {
	display: none !important;
}

.ccb[hidden],
.ccb [hidden],
.ccb-manage[hidden] {
	display: none !important;
}

.ccb {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	align-items: end;
	padding: 20px;
	color: #1f2933;
	font-family: inherit;
}

.ccb__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.ccb__dialog {
	position: relative;
	width: min(760px, 100%);
	max-height: calc(100vh - 40px);
	margin: 0 auto;
	padding: 28px;
	overflow: auto;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.ccb__dialog h2 {
	margin: 0 0 12px;
	font-size: 1.5rem;
	line-height: 1.25;
}

.ccb__dialog p {
	margin: 0;
	line-height: 1.6;
}

.ccb__settings {
	display: grid;
	gap: 10px;
	margin-top: 22px;
}

.ccb__category {
	padding: 14px;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
}

.ccb__category > label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	cursor: pointer;
}

.ccb__category small,
.ccb__service span {
	display: block;
	margin-top: 4px;
	color: #52616b;
}

.ccb__category input {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

.ccb__details {
	margin-top: 10px;
	font-size: 0.9rem;
}

.ccb__details summary {
	cursor: pointer;
}

.ccb__service {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #e6edf2;
}

.ccb__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 24px;
}

.ccb__button,
.ccb-manage {
	padding: 11px 16px;
	border: 1px solid #1f2933;
	border-radius: 6px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.ccb__button--primary {
	color: #fff;
	background: #1f2933;
}

.ccb__button--secondary {
	color: #1f2933;
	background: #fff;
}

.ccb__button:focus-visible,
.ccb-manage:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}

.ccb-manage {
	position: fixed;
	z-index: 999998;
	right: 16px;
	bottom: 16px;
	padding: 9px 12px;
	border-color: #fff;
	color: #fff;
	background: #1f2933;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
	font-size: 0.8rem;
}

@media (max-width: 600px) {
	.ccb {
		padding: 0;
	}

	.ccb__dialog {
		max-height: 92vh;
		padding: 20px;
		border-radius: 12px 12px 0 0;
	}

	.ccb__actions,
	.ccb__button {
		width: 100%;
	}
}
