#ado-consent-banner[hidden],
#ado-consent-modal[hidden] {
	display: none !important;
}

#ado-consent-banner {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	z-index: 999999;
	box-sizing: border-box;
	max-width: 960px;
	margin: 0 auto;
	padding: 1rem;
	color: #ffffff;
	background: #1f2937;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	font-size: 14px;
	line-height: 1.5;
}

#ado-consent-banner a {
	color: #93c5fd;
	text-decoration: underline;
}

.ado-consent-banner__actions,
.ado-consent-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.ado-consent-button {
	padding: 0.55rem 0.85rem;
	border: 1px solid transparent;
	border-radius: 8px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.ado-consent-button--primary {
	color: #ffffff;
	background: #2563eb;
}

.ado-consent-button--secondary {
	color: #111827;
	background: #ffffff;
	border-color: #d1d5db;
}

.ado-consent-button--ghost {
	color: #ffffff;
	background: transparent;
	border-color: #9ca3af;
}

#ado-consent-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(17, 24, 39, 0.68);
}

.ado-consent-modal__dialog {
	box-sizing: border-box;
	width: min(680px, 100%);
	max-height: calc(100vh - 2rem);
	overflow: auto;
	padding: 1.25rem;
	background: #ffffff;
	color: #111827;
	border-radius: 14px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.ado-consent-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.ado-consent-modal__header h2 {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.ado-consent-close {
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.ado-consent-category {
	padding: 0.75rem 0;
	border-top: 1px solid #e5e7eb;
}

.ado-consent-category label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-weight: 700;
}

.ado-consent-category p {
	margin: 0.35rem 0 0 1.8rem;
	color: #4b5563;
}

.ado-consent-cookie-table {
	width: 100%;
	border-collapse: collapse;
}

.ado-consent-cookie-table th,
.ado-consent-cookie-table td {
	padding: 0.65rem;
	border: 1px solid #d1d5db;
	text-align: left;
	vertical-align: top;
}

.ado-consent-cookie-table th {
	background: #f3f4f6;
}

@media (max-width: 640px) {
	#ado-consent-banner {
		right: 0.5rem;
		bottom: 0.5rem;
		left: 0.5rem;
	}

	.ado-consent-button {
		width: 100%;
	}
}

/* ADO Consent 1.5.8 - Ajustes visuales del banner */
#ado-consent-banner {
	text-align: center;
	padding: 1.1rem 1.25rem;
}

#ado-consent-banner .ado-consent-banner__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
}

#ado-consent-banner .ado-consent-banner__actions,
#ado-consent-modal .ado-consent-modal__actions {
	justify-content: center;
	gap: 0.65rem;
	margin-top: 0;
}

#ado-consent-modal .ado-consent-modal__actions {
	margin-top: 1rem;
}

#ado-consent-banner .ado-consent-button,
#ado-consent-modal .ado-consent-button {
	min-width: 112px;
	padding: 0.68rem 1rem;
	font-weight: 700;
}

#ado-consent-banner .ado-consent-button--secondary,
#ado-consent-modal .ado-consent-button--secondary {
	color: #ffffff;
	background: #dc2626;
	border-color: #dc2626;
}

#ado-consent-banner .ado-consent-button--secondary:hover,
#ado-consent-banner .ado-consent-button--secondary:focus,
#ado-consent-modal .ado-consent-button--secondary:hover,
#ado-consent-modal .ado-consent-button--secondary:focus {
	background: #b91c1c;
	border-color: #b91c1c;
}

#ado-consent-banner .ado-consent-button--ghost,
#ado-consent-modal .ado-consent-button--ghost {
	color: #111827;
	background: #f9fafb;
	border-color: #d1d5db;
}

#ado-consent-banner .ado-consent-button--ghost:hover,
#ado-consent-banner .ado-consent-button--ghost:focus,
#ado-consent-modal .ado-consent-button--ghost:hover,
#ado-consent-modal .ado-consent-button--ghost:focus {
	background: #e5e7eb;
	border-color: #9ca3af;
}