:root {
	--gdpr-cmp-text-color: #1f2937;
	--gdpr-cmp-banner-bg-color: #ffffff;
	--gdpr-cmp-manage-link-color: #1f2937;
	--gdpr-cmp-font-family: inherit;
	--gdpr-cmp-btn-primary-bg: #1f2937;
	--gdpr-cmp-btn-primary-text: #ffffff;
	--gdpr-cmp-btn-secondary-bg: #ffffff;
	--gdpr-cmp-btn-secondary-text: #1f2937;
	--gdpr-cmp-btn-customize-bg: #ffffff;
	--gdpr-cmp-btn-customize-text: #1f2937;
}

.gdpr-cmp-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99998;
	background: var(--gdpr-cmp-banner-bg-color);
	border-top: 1px solid #d9d9d9;
	box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
	padding: 16px;
	color: var(--gdpr-cmp-text-color);
	font-family: var(--gdpr-cmp-font-family);
}

.gdpr-cmp-banner__content {
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}

.gdpr-cmp-banner__text {
	margin: 0;
	flex: 1 1 60%;
	color: var(--gdpr-cmp-text-color);
}

.gdpr-cmp-banner__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.gdpr-cmp-btn {
	padding: 5px 10px;
	border-radius: 6px;
	border: 1px solid var(--gdpr-cmp-btn-secondary-text);
	font-size: 12px;
	line-height: 1.2;
	min-height: 28px;
	cursor: pointer;
	font-family: var(--gdpr-cmp-font-family);
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto;
	max-width: max-content;
	height: 28px;
}

/* Override aggressive theme button styles (Elementor/theme presets). */
.gdpr-cmp-banner button.gdpr-cmp-btn,
.gdpr-cmp-modal button.gdpr-cmp-btn {
	padding: 5px 10px !important;
	font-size: 12px !important;
	line-height: 1.2 !important;
	min-height: 28px !important;
	height: 28px !important;
	width: auto !important;
	max-width: max-content !important;
	flex: 0 0 auto !important;
	border-radius: 6px !important;
	white-space: nowrap !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	margin: 0 !important;
}

.gdpr-cmp-btn--primary {
	background: var(--gdpr-cmp-btn-primary-bg);
	color: var(--gdpr-cmp-btn-primary-text);
	border-color: var(--gdpr-cmp-btn-primary-bg);
}

.gdpr-cmp-btn--secondary {
	background: var(--gdpr-cmp-btn-secondary-bg);
	color: var(--gdpr-cmp-btn-secondary-text);
	border-color: var(--gdpr-cmp-btn-secondary-text);
}

.gdpr-cmp-btn--customize {
	background: var(--gdpr-cmp-btn-customize-bg);
	color: var(--gdpr-cmp-btn-customize-text);
	border-color: var(--gdpr-cmp-btn-customize-text);
}

/* Force dashboard-selected colors over theme presets. */
.gdpr-cmp-banner button.gdpr-cmp-btn--primary,
.gdpr-cmp-modal button.gdpr-cmp-btn--primary {
	background: var(--gdpr-cmp-btn-primary-bg) !important;
	color: var(--gdpr-cmp-btn-primary-text) !important;
	border-color: var(--gdpr-cmp-btn-primary-bg) !important;
}

.gdpr-cmp-banner button.gdpr-cmp-btn--secondary,
.gdpr-cmp-modal button.gdpr-cmp-btn--secondary {
	background: var(--gdpr-cmp-btn-secondary-bg) !important;
	color: var(--gdpr-cmp-btn-secondary-text) !important;
	border-color: var(--gdpr-cmp-btn-secondary-text) !important;
}

.gdpr-cmp-banner button.gdpr-cmp-btn--customize,
.gdpr-cmp-modal button.gdpr-cmp-btn--customize {
	background: var(--gdpr-cmp-btn-customize-bg) !important;
	color: var(--gdpr-cmp-btn-customize-text) !important;
	border-color: var(--gdpr-cmp-btn-customize-text) !important;
}

.gdpr-cmp-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

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

.gdpr-cmp-modal__panel {
	position: relative;
	max-width: 680px;
	margin: 5vh auto;
	background: #ffffff;
	border-radius: 8px;
	padding: 22px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	max-height: 90vh;
	overflow: auto;
	color: var(--gdpr-cmp-text-color);
	font-family: var(--gdpr-cmp-font-family);
}

.gdpr-cmp-option {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	border-bottom: 1px solid #ececec;
	padding: 14px 0;
}

.gdpr-cmp-option p {
	margin: 4px 0 0;
	color: #4b5563;
}

.gdpr-cmp-modal__actions {
	margin-top: 16px;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.gdpr-cmp-policy-link {
	color: #1d4ed8;
	text-decoration: underline;
}

.gdpr-cmp-switch {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 24px;
}

.gdpr-cmp-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.gdpr-cmp-slider {
	position: absolute;
	inset: 0;
	cursor: pointer;
	background: #b9b9b9;
	border-radius: 24px;
	transition: 0.2s;
}

.gdpr-cmp-slider:before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	top: 3px;
	background: #ffffff;
	border-radius: 50%;
	transition: 0.2s;
}

.gdpr-cmp-switch input:checked + .gdpr-cmp-slider {
	background: #2563eb;
}

.gdpr-cmp-switch input:checked + .gdpr-cmp-slider:before {
	transform: translateX(22px);
}

.gdpr-cmp-manage-link {
	position: static;
	display: block;
	width: fit-content;
	margin: 10px auto 0;
	background: transparent;
	color: var(--gdpr-cmp-manage-link-color) !important;
	text-decoration: none;
	padding: 4px 6px;
	border-radius: 4px;
	font-size: 13px;
	font-family: var(--gdpr-cmp-font-family);
	border: 1px solid transparent;
}

a.gdpr-cmp-manage-link:link,
a.gdpr-cmp-manage-link:visited,
a.gdpr-cmp-manage-link:hover,
a.gdpr-cmp-manage-link:focus {
	color: var(--gdpr-cmp-manage-link-color) !important;
}

.gdpr-cmp-manage-link:hover,
.gdpr-cmp-manage-link:focus {
	text-decoration: underline;
	outline: none;
	border-color: var(--gdpr-cmp-manage-link-color) !important;
}

.gdpr-cmp-manage-link--inline {
	display: inline;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
}

@media (max-width: 768px) {
	.gdpr-cmp-banner__content {
		flex-direction: row;
		align-items: flex-start;
	}

	.gdpr-cmp-modal__panel {
		margin: 2vh 12px;
	}

	.gdpr-cmp-banner__actions {
		gap: 6px;
		justify-content: flex-start;
	}
}
