/* Adega Bartolomeu Analytics - Consent Banner styles */

#aba-consent-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #1a1a1a;
	color: #fff;
	z-index: 999999;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	animation: aba-slide-up 0.3s ease-out;
}

@keyframes aba-slide-up {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

.aba-consent-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.aba-consent-text {
	flex: 1;
	min-width: 280px;
}

.aba-consent-text strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
}

.aba-consent-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.aba-btn {
	padding: 10px 18px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: inherit;
}

.aba-btn-primary {
	background: #c8102e;
	color: #fff;
}
.aba-btn-primary:hover { background: #a30d24; }

.aba-btn-secondary {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.4);
}
.aba-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.aba-btn-link {
	background: transparent;
	color: #fff;
	text-decoration: underline;
	padding: 10px 8px;
}
.aba-btn-link:hover { color: #ddd; }

/* Modal */
#aba-consent-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aba-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.aba-modal-content {
	position: relative;
	background: #fff;
	color: #1a1a1a;
	border-radius: 10px;
	padding: 28px;
	max-width: 480px;
	width: calc(100% - 40px);
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aba-modal-content h2 {
	margin: 0 0 12px;
	font-size: 20px;
}

.aba-toggle-row {
	padding: 14px 0;
	border-top: 1px solid #eee;
}
.aba-toggle-row:first-of-type { border-top: none; }

.aba-toggle-row label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	margin-bottom: 4px;
}

.aba-toggle-row small {
	display: block;
	color: #666;
	margin-left: 26px;
	font-size: 13px;
}

.aba-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.aba-modal-actions .aba-btn-secondary {
	color: #1a1a1a;
	border-color: #ccc;
}
.aba-modal-actions .aba-btn-secondary:hover {
	background: #f5f5f5;
}

@media (max-width: 600px) {
	.aba-consent-inner {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
	}
	.aba-consent-buttons {
		justify-content: stretch;
	}
	.aba-consent-buttons .aba-btn {
		flex: 1;
		min-width: 100px;
	}
}

/* =========================================================================
   v1.1.0: Banner discreto modo opt-out + toast.
   ========================================================================= */

#aba-consent-banner.aba-banner-optout {
	background: #1a1a1a;
	color: #fff;
	border-top: 3px solid #c8102e;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

#aba-consent-banner.aba-banner-optout .aba-consent-inner {
	padding: 14px 24px;
}

#aba-consent-banner.aba-banner-optout .aba-consent-text {
	font-size: 13px;
	line-height: 1.5;
}

#aba-consent-banner.aba-banner-optout .aba-consent-text a {
	color: #fff;
	text-decoration: underline;
}

#aba-consent-banner.aba-banner-optout .aba-optout-link {
	margin-left: 8px;
	font-size: 12px;
	opacity: 0.85;
}

#aba-consent-banner.aba-banner-optout .aba-optout-link:hover {
	opacity: 1;
}

.aba-toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: #2c7a3f;
	color: #fff;
	padding: 12px 24px;
	border-radius: 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	z-index: 1000001;
	animation: aba-toast-in 0.3s ease-out;
}

@keyframes aba-toast-in {
	from { opacity: 0; transform: translate(-50%, 20px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}
