/**
 * Estilos do frontend para LGPD Compliance
 */

/* Banner de Cookies */
#lgpd-cookie-banner {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	z-index: 9999;
}

#lgpd-cookie-banner * {
	box-sizing: border-box;
}

.lgpd-banner-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.lgpd-banner-text h3 {
	margin: 0 0 10px 0;
	font-size: 18px;
	font-weight: 600;
}

.lgpd-banner-text p {
	margin: 0;
	opacity: 0.9;
}

.lgpd-banner-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.lgpd-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.lgpd-btn:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.lgpd-btn-primary {
	color: white;
}

.lgpd-btn-secondary {
	background-color: transparent;
	border: 2px solid;
}

.lgpd-detailed-preferences {
	padding: 15px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	margin-top: 10px;
}

.lgpd-category-item {
	margin-bottom: 12px;
}

.lgpd-checkbox-label {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	gap: 10px;
}

.lgpd-checkbox-label input[type="checkbox"] {
	margin-top: 4px;
	cursor: pointer;
	flex-shrink: 0;
}

.lgpd-checkbox-label input[type="checkbox"]:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.lgpd-checkbox-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lgpd-checkbox-text strong {
	font-weight: 600;
}

.lgpd-checkbox-text small {
	opacity: 0.8;
	font-size: 12px;
}

.lgpd-banner-links {
	display: flex;
	gap: 20px;
	justify-content: center;
	margin-top: 10px;
	font-size: 12px;
	flex-wrap: wrap;
}

.lgpd-banner-links a {
	color: inherit;
	text-decoration: underline;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.lgpd-banner-links a:hover {
	opacity: 1;
}

.lgpd-toggle-details {
	background: transparent;
	border: none;
	color: inherit;
	cursor: pointer;
	text-decoration: underline;
	font-size: 14px;
	padding: 0;
	font-weight: 600;
}

.lgpd-toggle-details:hover {
	opacity: 0.8;
}

/* Checkout Consent */
#lgpd-checkout-consent {
	padding: 20px;
	margin: 20px 0;
	background-color: #f9f9f9;
	border-left: 4px solid #007bff;
	border-radius: 4px;
}

#lgpd-checkout-consent h3 {
	margin-top: 0;
	color: #333;
	font-size: 16px;
}

.lgpd-consent-field {
	margin-bottom: 15px;
}

.lgpd-consent-field:last-child {
	margin-bottom: 0;
}

.lgpd-checkbox-label {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	gap: 10px;
	font-size: 14px;
}

.lgpd-checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	cursor: pointer;
	flex-shrink: 0;
}

.lgpd-checkbox-label a {
	color: #007bff;
	text-decoration: none;
}

.lgpd-checkbox-label a:hover {
	text-decoration: underline;
}

/* User Rights Page */
.lgpd-user-rights {
	max-width: 800px;
	margin: 40px auto;
	padding: 20px;
}

.lgpd-rights-container h2 {
	color: #333;
	margin-bottom: 20px;
	font-size: 28px;
}

.lgpd-rights-section {
	margin-bottom: 40px;
	padding: 20px;
	background-color: #f9f9f9;
	border-left: 4px solid #007bff;
	border-radius: 4px;
}

.lgpd-rights-section h3 {
	color: #333;
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 18px;
}

.lgpd-rights-section p {
	color: #666;
	line-height: 1.6;
	margin-bottom: 15px;
}

.lgpd-request-status {
	padding: 12px;
	margin-bottom: 15px;
	border-radius: 4px;
	font-size: 14px;
}

.lgpd-request-status.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.lgpd-request-status.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.lgpd-request-status.info {
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

.lgpd-data-summary {
	background-color: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	margin-top: 10px;
}

.lgpd-data-summary-item {
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.lgpd-data-summary-item:last-child {
	border-bottom: none;
}

.lgpd-data-summary-label {
	font-weight: 600;
	color: #333;
}

.lgpd-data-summary-value {
	color: #666;
	margin-top: 5px;
}

.lgpd-consent-history {
	background-color: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	margin-top: 10px;
}

.lgpd-consent-item {
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	font-size: 13px;
}

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

.lgpd-consent-item strong {
	color: #333;
}

.lgpd-consent-item small {
	color: #999;
}

.lgpd-user-rights-login {
	text-align: center;
	padding: 40px 20px;
}

.lgpd-user-rights-login p {
	margin: 10px 0;
}

.lgpd-user-rights-login a {
	color: #007bff;
	text-decoration: none;
	font-weight: 600;
}

.lgpd-user-rights-login a:hover {
	text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
	.lgpd-banner-content {
		grid-template-columns: 1fr !important;
	}

	.lgpd-banner-buttons {
		flex-direction: column;
		width: 100%;
	}

	.lgpd-btn {
		width: 100%;
		padding: 15px;
	}

	.lgpd-banner-links {
		flex-direction: column;
		gap: 10px;
	}

	.lgpd-user-rights {
		margin: 20px auto;
		padding: 10px;
	}

	.lgpd-rights-section {
		padding: 15px;
	}

	.lgpd-checkbox-label {
		flex-wrap: wrap;
	}

	.lgpd-rights-container h2 {
		font-size: 24px;
	}

	.lgpd-rights-section h3 {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	#lgpd-cookie-banner {
		padding: 15px;
	}

	.lgpd-banner-text h3 {
		font-size: 16px;
	}

	.lgpd-banner-text p {
		font-size: 13px;
	}

	.lgpd-btn {
		font-size: 13px;
		padding: 12px 16px;
	}

	.lgpd-banner-links {
		font-size: 11px;
	}
}

/* Animações */
@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#lgpd-cookie-banner {
	animation: slideIn 0.3s ease-out;
}

/* Acessibilidade */
.lgpd-btn:focus,
.lgpd-checkbox-label input:focus,
.lgpd-toggle-details:focus {
	outline: 2px solid #007bff;
	outline-offset: 2px;
}

/* Impressão */
@media print {
	#lgpd-cookie-banner {
		display: none !important;
	}
}
