.user-consent-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.user-consent-modal {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	max-width: 90%;
	width: 500px;
	padding: 30px;
	box-sizing: border-box;
	color: #333;
	position: relative;
	overflow: hidden;
}

.user-consent-modal h2 {
	font-size: 1.6rem;
	margin-top: 0;
	margin-bottom: 20px;
	color: #222;
}

.user-consent-modal p {
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 25px;
}

.user-consent-modal a {
	color: #007bff;
	text-decoration: none;
}

.user-consent-modal a:hover {
	text-decoration: underline;
}

.user-consent-actions, .user-consent-settings-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 25px;
}

.user-consent-actions button, .user-consent-settings-actions button {
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
	flex-grow: 1;
}

.user-consent-actions button:nth-child(1) {
	background-color: #007bff;
	color: #fff;
}

.user-consent-actions button:nth-child(1):hover {
	background-color: #0056b3;
	transform: translateY(-2px);
}

.user-consent-actions button:nth-child(2) {
	background-color: #e0e0e0;
	color: #333;
}

.user-consent-actions button:nth-child(2):hover {
	background-color: #ccc;
	transform: translateY(-2px);
}

.user-consent-actions button:nth-child(3) {
	background-color: #f0f0f0;
	color: #555;
}

.user-consent-actions button:nth-child(3):hover {
	background-color: #e0e0e0;
	transform: translateY(-2px);
}

.user-consent-settings {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	padding: 30px;
	box-sizing: border-box;
	overflow-y: auto;
	animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
	from { transform: translateX(100%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

.user-consent-settings-section {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.user-consent-settings-section:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.user-consent-settings-section h3 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.2rem;
	margin-top: 0;
	margin-bottom: 10px;
	color: #444;
}

.user-consent-settings-section p {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 10px;
}

.user-consent-settings-actions button:nth-child(1) {
	background-color: #28a745;
	color: #fff;
}

.user-consent-settings-actions button:nth-child(1):hover {
	background-color: #218838;
	transform: translateY(-2px);
}

.user-consent-settings-actions button:nth-child(2) {
	background-color: #f0f0f0;
	color: #555;
}

.user-consent-settings-actions button:nth-child(2):hover {
	background-color: #e0e0e0;
	transform: translateY(-2px);
}

.switch {
	position: relative;
	display: inline-block;
	width: 45px;
	height: 25px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

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

.slider:before {
	position: absolute;
	content: "";
	height: 19px;
	width: 19px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.4s;
	border-radius: 50%;
}

input:checked + .slider {
	background-color: #2196F3;
}

input:focus + .slider {
	box-shadow: 0 0 1px #2196F3;
}

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

.always-on-label {
	font-size: 0.8rem;
	color: #777;
	background-color: #f0f0f0;
	padding: 4px 8px;
	border-radius: 5px;
}

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

	.user-consent-modal h2 {
		font-size: 1.4rem;
	}

	.user-consent-actions button, .user-consent-settings-actions button {
		font-size: 0.9rem;
		padding: 10px 15px;
	}

	.user-consent-settings-section h3 {
		font-size: 1.1rem;
	}
}

@media (max-width: 480px) {
	.user-consent-modal {
		border-radius: 0;
		max-width: 100%;
		height: 100%;
		padding: 15px;
		box-shadow: none;
	}

	.user-consent-overlay {
		align-items: flex-end;
	}

	.user-consent-modal h2 {
		font-size: 1.2rem;
	}

	.user-consent-actions, .user-consent-settings-actions {
		flex-direction: column;
	}

	.user-consent-settings {
		padding: 15px;
	}
}
