#user-consent-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
#user-consent-modal.show {
	opacity: 1;
	visibility: visible;
}
.consent-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}
.consent-content {
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	padding: 30px;
	margin: 20px;
	max-width: 500px;
	width: 90%;
	position: relative;
	z-index: 1001;
	color: #333;
	animation: fadeInScale 0.4s ease-out;
}
@keyframes fadeInScale {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}
.consent-content h2 {
	font-size: 1.6em;
	color: #2c3e50;
	margin-top: 0;
	margin-bottom: 15px;
}
.consent-content p {
	font-size: 0.95em;
	line-height: 1.6;
	margin-bottom: 25px;
	color: #555;
}
.consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
}
.consent-btn {
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.9em;
	font-weight: 600;
	transition: background-color 0.2s ease, transform 0.1s ease;
}
.primary-btn {
	background-color: #007bff;
	color: #fff;
}
.primary-btn:hover {
	background-color: #0056b3;
	transform: translateY(-1px);
}
.secondary-btn {
	background-color: #6c757d;
	color: #fff;
}
.secondary-btn:hover {
	background-color: #5a6268;
	transform: translateY(-1px);
}
.text-btn {
	background-color: transparent;
	color: #007bff;
	padding: 10px 15px;
}
.text-btn:hover {
	text-decoration: underline;
	background-color: rgba(0, 123, 255, 0.05);
}
.consent-settings h3 {
	font-size: 1.2em;
	color: #2c3e50;
	margin-top: 25px;
	margin-bottom: 10px;
}
.consent-settings .setting-category {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}
.consent-settings .setting-category:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.consent-settings .setting-category p {
	font-size: 0.85em;
	color: #777;
	margin-bottom: 15px;
}
.toggle-switch {
	position: relative;
	display: flex;
	align-items: center;
	margin-top: 10px;
}
.toggle-switch input[type="checkbox"] {
	display: none;
}
.toggle-switch label {
	width: 44px;
	height: 24px;
	background-color: #ccc;
	border-radius: 12px;
	position: relative;
	cursor: pointer;
	transition: background-color 0.2s;
	flex-shrink: 0;
}
.toggle-switch label::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background-color: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}
.toggle-switch input[type="checkbox"]:checked + label {
	background-color: #28a745;
}
.toggle-switch input[type="checkbox"]:checked + label::after {
	transform: translateX(20px);
}
.toggle-switch span {
	margin-left: 15px;
	font-size: 0.9em;
	color: #555;
	font-weight: 500;
}
.toggle-switch.disabled label {
	cursor: not-allowed;
	background-color: #e0e0e0;
}
.toggle-switch.disabled label::after {
	background-color: #b0b0b0;
}
.toggle-switch.disabled input[type="checkbox"]:checked + label {
	background-color: #28a745;
}
.toggle-switch.disabled input[type="checkbox"]:checked + label::after {
	background-color: #fff;
}
@media (max-width: 768px) {
	.consent-content {
		padding: 20px;
		width: 95%;
	}
	.consent-content h2 {
		font-size: 1.4em;
	}
	.consent-content p {
		font-size: 0.9em;
	}
	.consent-btn {
		padding: 10px 15px;
		font-size: 0.85em;
	}
	.consent-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.consent-actions .consent-btn {
		width: 100%;
	}
}