.cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1080;
	background: #14171a;
	color: #f1f1f1;
	padding: 18px 20px;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
	display: none;
}

.cookie-banner.is-visible {
	display: block;
}

.cookie-banner__inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.cookie-banner__text {
	flex: 1 1 320px;
	font-size: .9rem;
	margin: 0;
	color: #f1f1f1;
}

.cookie-banner__text a {
	color: #8ec6ff;
	text-decoration: underline;
}

.cookie-banner__actions {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 1090;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .55);
	padding: 16px;
}

.cookie-modal.is-visible {
	display: flex;
}

.cookie-modal__dialog {
	background: #fff;
	color: #212529;
	border-radius: 8px;
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}

.cookie-modal__category {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #e9ecef;
}

.cookie-modal__category:last-of-type {
	border-bottom: none;
}

.cookie-modal__category-title {
	font-weight: 600;
	margin-bottom: 2px;
}

.cookie-modal__category-desc {
	font-size: .85rem;
	color: #6c757d;
	margin: 0;
}

@media (max-width: 575.98px) {
	.cookie-banner__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.cookie-banner__actions {
		justify-content: stretch;
	}

	.cookie-banner__actions .btn {
		flex: 1 1 auto;
	}
}

/* El banner de cookies es fixed a pantalla completa: mientras este visible,
   desplaza el widget de WhatsApp (fixed, bottom:75px/10px) para que no quede
   tapado detras. Ver whatsapp.css. La transition evita que el boton "salte"
   de golpe al aceptar/rechazar y que el banner desaparezca. */
.chat-wp,
.wp-xs {
	transition: bottom .25s ease;
}

body.has-cookie-banner .chat-wp {
	bottom: 170px;
}

body.has-cookie-banner .wp-xs {
	bottom: 100px;
}

@media (max-width: 575.98px) {
	body.has-cookie-banner .chat-wp {
		bottom: 220px;
	}

	body.has-cookie-banner .wp-xs {
		bottom: 150px;
	}
}
