.privacy-consent-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: none; /* Hidden by default */
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.privacy-consent-popup.show {
	opacity: 1;
}

.privacy-consent-content {
	background: linear-gradient(135deg, #f0f4f8, #e0e8f0);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	padding: 30px;
	max-width: 550px;
	width: 90%;
	box-sizing: border-box;
	position: relative;
	transform: translateY(20px);
	transition: transform 0.3s ease-in-out;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: #333;
	overflow: hidden;
}

.privacy-consent-popup.show .privacy-consent-content {
	transform: translateY(0);
}

.privacy-consent-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.privacy-consent-title {
	font-size: 1.8em;
	font-weight: 700;
	color: #1a202c;
}

.privacy-consent-description {
	font-size: 0.95em;
	line-height: 1.6;
	color: #4a5568;
	margin-bottom: 25px;
}

.privacy-consent-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.privacy-consent-button {
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	text-align: center;
}

.privacy-consent-button.primary {
	background-color: #4c51bf;
	color: #fff;
}

.privacy-consent-button.primary:hover {
	background-color: #434190;
	transform: translateY(-1px);
}

.privacy-consent-button.secondary {
	background-color: #cbd5e0;
	color: #2d3748;
}

.privacy-consent-button.secondary:hover {
	background-color: #a0aec0;
	transform: translateY(-1px);
}

.privacy-consent-button.link {
	background: none;
	color: #4c51bf;
	text-decoration: underline;
	padding: 0;
	font-weight: 500;
}

.privacy-consent-button.link:hover {
	color: #434190;
}

.privacy-consent-settings {
	display: none; /* Hidden by default */
}

.privacy-consent-settings.active {
	display: block;
}

.privacy-consent-setting-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px solid #e2e8f0;
}

.privacy-consent-setting-item:last-child {
	border-bottom: none;
}

.privacy-consent-setting-info {
	flex: 1;
	margin-right: 20px;
}

.privacy-consent-setting-title {
	font-weight: 600;
	font-size: 1.1em;
	color: #2d3748;
	margin-bottom: 5px;
}

.privacy-consent-setting-description {
	font-size: 0.85em;
	color: #718096;
	line-height: 1.4;
}

.privacy-consent-toggle-switch {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 28px;
}

.privacy-consent-toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.privacy-consent-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.4s;
	border-radius: 28px;
}

.privacy-consent-toggle-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: 0.4s;
	border-radius: 50%;
}

input:checked + .privacy-consent-toggle-slider {
	background-color: #4c51bf;
}

input:focus + .privacy-consent-toggle-slider {
	box-shadow: 0 0 1px #4c51bf;
}

input:checked + .privacy-consent-toggle-slider:before {
	transform: translateX(20px);
}

.privacy-consent-toggle-switch.disabled .privacy-consent-toggle-slider {
	background-color: #e2e8f0;
	cursor: not-allowed;
}

.privacy-consent-toggle-switch.disabled input:checked + .privacy-consent-toggle-slider {
	background-color: #a0aec0;
}

.privacy-consent-footer-buttons {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 30px;
}

@media (max-width: 768px) {
	.privacy-consent-content {
		width: 95%;
		padding: 20px;
	}

	.privacy-consent-title {
		font-size: 1.5em;
	}

	.privacy-consent-description {
		font-size: 0.9em;
	}

	.privacy-consent-button {
		padding: 10px 15px;
		font-size: 0.9em;
	}

	.privacy-consent-setting-title {
		font-size: 1em;
	}

	.privacy-consent-setting-description {
		font-size: 0.8em;
	}

	.privacy-consent-toggle-switch {
		width: 40px;
		height: 24px;
	}

	.privacy-consent-toggle-slider:before {
		height: 16px;
		width: 16px;
		left: 4px;
		bottom: 4px;
	}

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

	.privacy-consent-buttons, .privacy-consent-footer-buttons {
		flex-direction: column;
	}

	.privacy-consent-footer-buttons {
		flex-direction: column-reverse;
	}

	.privacy-consent-button.link {
		margin-top: 10px;
	}
}
