/*
 * Suils Cookie Consent — styled to match the PrestaShop module's banner and modal:
 * bottom bar with bold title, gold "Aceptar todo", dark secondary buttons; white
 * centred modal with category rows, pill toggles and the "Necesaria" chip.
 */

.suils-cc-banner {
	position: fixed;
	inset-block-end: 0;
	inset-inline: 0;
	z-index: 9998;
	background: #fff;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

.suils-cc-banner[hidden],
.suils-cc-overlay[hidden] {
	display: none;
}

.suils-cc-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	max-inline-size: 1140px;
	margin-inline: auto;
	padding: 1.1rem clamp(1rem, 4vw, 2rem);
}

.suils-cc-banner__title {
	margin: 0 0 0.25rem;
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 1.375rem;
	font-weight: 700;
	color: #111;
}

.suils-cc-banner__text {
	margin: 0;
	font-family: Poppins, system-ui, sans-serif;
	font-size: 0.9rem;
	color: #212529;
}

.suils-cc-banner__text a {
	color: #b67d23;
}

.suils-cc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.suils-cc-btn {
	min-block-size: 44px;
	padding: 0 1.3rem;
	border: 0;
	border-radius: 4px;
	font-family: Poppins, system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.suils-cc-btn:hover {
	filter: brightness(1.1);
}

.suils-cc-btn--gold {
	background: #b67d23;
	color: #fff;
}

.suils-cc-btn--dark {
	background: #32373b;
	color: #fff;
}

/* Modal */

.suils-cc-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.55);
}

.suils-cc-modal {
	inline-size: min(600px, 100%);
	max-block-size: min(86vh, 720px);
	overflow-y: auto;
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: 6px;
	background: #fff;
}

.suils-cc-modal__title {
	margin: 0 0 1.25rem;
	font-family: Poppins, system-ui, sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: #111;
}

.suils-cc-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-block-end: 0.9rem;
	padding: 1rem 1.1rem;
	border: 1px solid #e4e4e4;
	border-radius: 4px;
}

.suils-cc-cat__name {
	margin: 0 0 0.25rem;
	font-family: Poppins, system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #111;
}

.suils-cc-cat__desc {
	margin: 0;
	font-family: Poppins, system-ui, sans-serif;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #212529;
}

.suils-cc-chip {
	flex: 0 0 auto;
	padding: 0.45rem 0.9rem;
	border-radius: 3px;
	background: #ececec;
	font-family: Poppins, system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #333;
}

/* Pill toggle */

.suils-cc-switch {
	position: relative;
	flex: 0 0 auto;
	display: inline-block;
	cursor: pointer;
}

.suils-cc-switch input {
	position: absolute;
	opacity: 0;
	inline-size: 100%;
	block-size: 100%;
	cursor: pointer;
}

.suils-cc-switch__track {
	display: block;
	inline-size: 56px;
	block-size: 30px;
	border-radius: 9999px;
	background: #d9d9d9;
	transition: background-color 0.2s ease;
}

.suils-cc-switch__track::after {
	content: "";
	position: absolute;
	inset-block-start: 3px;
	inset-inline-start: 3px;
	inline-size: 24px;
	block-size: 24px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease;
}

.suils-cc-switch input:checked + .suils-cc-switch__track {
	background: #b67d23;
}

.suils-cc-switch input:checked + .suils-cc-switch__track::after {
	transform: translateX(26px);
}

.suils-cc-switch input:focus-visible + .suils-cc-switch__track {
	outline: 2px solid #b67d23;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.suils-cc-banner__actions {
		inline-size: 100%;
	}

	.suils-cc-banner__actions .suils-cc-btn {
		flex: 1 1 auto;
	}
}
