.dcs-consent,
.dcs-consent * {
	box-sizing: border-box;
}

.dcs-consent[hidden] {
	display: none;
}

.dcs-consent {
	--dcs-accent: #0f766e;
	--dcs-surface: #ffffff;
	--dcs-text: #172026;
	--dcs-muted: #5f6b73;
	--dcs-border: #d9e0e5;
	color: var(--dcs-text);
	font-family: inherit;
}

.dcs-consent__overlay {
	background: rgba(23, 32, 38, 0.42);
	inset: 0;
	position: fixed;
	z-index: 999999;
}

.dcs-consent__panel {
	background: var(--dcs-surface);
	border: 1px solid var(--dcs-border);
	box-shadow: 0 18px 60px rgba(23, 32, 38, 0.2);
	display: grid;
	gap: 14px;
	margin: 16px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 20px;
	width: min(680px, calc(100vw - 32px));
}

.dcs-consent--bottom .dcs-consent__panel {
	border-radius: 8px;
	bottom: 0;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
}

.dcs-consent--center .dcs-consent__panel {
	border-radius: 8px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.dcs-consent__title {
	font-size: 22px;
	line-height: 1.2;
	margin: 0;
}

.dcs-consent__message {
	color: var(--dcs-muted);
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
}

.dcs-consent__policy {
	color: var(--dcs-accent);
	font-weight: 700;
}

.dcs-consent__details {
	border: 1px solid var(--dcs-border);
	border-radius: 8px;
	display: grid;
	overflow: hidden;
}

.dcs-consent__details[hidden],
.dcs-consent__button[hidden] {
	display: none;
}

.dcs-consent__category {
	background: #ffffff;
	border-bottom: 1px solid var(--dcs-border);
	padding: 14px;
}

.dcs-consent__category:last-child {
	border-bottom: 0;
}

.dcs-consent__category-header {
	align-items: center;
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr auto;
	margin: 0;
}

.dcs-consent__category-copy {
	display: grid;
	gap: 5px;
}

.dcs-consent__category-copy strong {
	font-size: 15px;
	line-height: 1.25;
}

.dcs-consent__category-copy span {
	color: var(--dcs-muted);
	font-size: 13px;
	line-height: 1.4;
}

.dcs-consent input[type='checkbox'] {
	accent-color: var(--dcs-accent);
	height: 22px;
	width: 22px;
}

.dcs-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.dcs-consent__button,
.dcs-cookie-settings-button,
.dcs-embed-placeholder__button {
	align-items: center;
	appearance: none;
	background: #ffffff;
	border: 1px solid var(--dcs-border);
	border-radius: 6px;
	color: var(--dcs-text);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 42px;
	padding: 10px 14px;
	text-decoration: none;
}

.dcs-consent__button:hover,
.dcs-cookie-settings-button:hover,
.dcs-embed-placeholder__button:hover {
	border-color: var(--dcs-accent);
}

.dcs-consent__button--primary,
.dcs-embed-placeholder__button {
	background: var(--dcs-accent);
	border-color: var(--dcs-accent);
	color: #ffffff;
}

.dcs-embed-placeholder {
	align-items: center;
	background: #f4f7f8;
	border: 1px solid var(--dcs-border, #d9e0e5);
	border-radius: 8px;
	display: grid;
	gap: 12px;
	min-height: 220px;
	padding: 24px;
	place-items: center;
	text-align: center;
}

.dcs-embed-placeholder p {
	color: #3b4650;
	margin: 0;
}

@media (max-width: 560px) {
	.dcs-consent__panel {
		margin: 8px;
		max-height: calc(100vh - 16px);
		padding: 16px;
		width: calc(100vw - 16px);
	}

	.dcs-consent__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.dcs-consent__button {
		width: 100%;
	}
}
