/* Titano Consent · aviso de cookies y panel de preferencias.
   Usa los tokens del tema (--t-*) con valores de respaldo. */

/* Oculta el aviso integrado en el tema: lo sustituye este plugin. */
.t-cookie {
	display: none !important;
}

.tt-consent {
	position: fixed;
	z-index: 9990;
	right: 16px;
	bottom: 16px;
	left: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: center;
	justify-content: space-between;
	max-width: 1208px;
	margin-inline: auto;
	padding: 20px 24px;
	border-radius: var(--t-radius, 24px);
	background: var(--t-ink, #0a1226);
	color: #d5def2;
	box-shadow: 0 30px 80px -20px rgb(0 0 0 / 55%);
	font-family: var(--t-body, system-ui, sans-serif);
	font-size: 15px;
	line-height: 1.55;
}

.tt-consent[hidden] {
	display: none;
}

.tt-consent a {
	color: var(--t-cyan, #4cc3ff);
	text-decoration: underline;
}

.tt-consent__text {
	flex: 1 1 420px;
	min-width: 0;
}

.tt-consent__text p {
	margin: 0;
}

.tt-consent p.tt-consent__title {
	margin-bottom: 4px;
	color: #fff;
	font-family: var(--t-head, system-ui, sans-serif);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.tt-consent__actions,
.tt-prefs__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tt-consent__btn {
	min-width: 150px;
	min-height: 52px;
	padding: 0 22px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.tt-consent__btn:hover {
	border-color: var(--t-blue, #0090d8);
	background: var(--t-blue, #0090d8);
	color: #fff;
}

.tt-consent__btn--primary {
	background: #fff;
	color: var(--t-ink, #0a1226);
}

.tt-consent button:focus-visible,
.tt-consent a:focus-visible,
.tt-prefs button:focus-visible,
.tt-prefs input:focus-visible,
.tt-btn-plain:focus-visible {
	outline: 3px solid var(--t-cyan, #4cc3ff);
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.tt-consent {
		right: 0;
		bottom: 0;
		left: 0;
		padding: 20px 16px 24px;
		border-radius: var(--t-radius, 24px) var(--t-radius, 24px) 0 0;
	}

	.tt-consent__actions {
		flex-direction: column;
		width: 100%;
	}

	.tt-consent__btn {
		width: 100%;
	}
}

/* Panel de preferencias */
.tt-prefs {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	border-radius: var(--t-radius, 24px);
	background: #fff;
	color: var(--t-ink, #0a1226);
	font-family: var(--t-body, system-ui, sans-serif);
	font-size: 16px;
	line-height: 1.5;
	overflow: auto;
}

.tt-prefs::backdrop {
	background: rgb(7 12 34 / 62%);
}

.tt-prefs__form {
	padding: 28px;
}

.tt-prefs__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.tt-prefs__head h2 {
	margin: 0;
	font-family: var(--t-head, system-ui, sans-serif);
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.tt-prefs__close {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border: 2px solid var(--t-ink, #0a1226);
	border-radius: 50%;
	background: transparent;
	color: var(--t-ink, #0a1226);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.tt-prefs__intro {
	margin: 12px 0 20px;
	color: var(--t-text, #3b4663);
	font-size: 15px;
}

.tt-prefs__item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	justify-content: space-between;
	padding: 16px 0;
	border-top: 1px solid var(--t-line, #d5ddec);
}

.tt-prefs__item p {
	margin: 4px 0 0;
	color: var(--t-text, #3b4663);
	font-size: 15px;
}

.tt-prefs__item label {
	cursor: pointer;
}

.tt-prefs__item input {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	accent-color: var(--t-blue, #0090d8);
}

.tt-prefs .tt-consent__btn {
	border-color: var(--t-ink, #0a1226);
	color: var(--t-ink, #0a1226);
}

.tt-prefs .tt-consent__btn:hover {
	border-color: var(--t-ink, #0a1226);
	background: var(--t-ink, #0a1226);
	color: #fff;
}

.tt-prefs .tt-consent__btn--primary {
	background: var(--t-ink, #0a1226);
	color: #fff;
}

.tt-prefs .tt-consent__btn--primary:hover {
	border-color: var(--t-blue, #0090d8);
	background: var(--t-blue, #0090d8);
}

.tt-prefs__actions {
	margin-top: 16px;
}

@media (max-width: 640px) {
	.tt-prefs__form {
		padding: 20px;
	}

	.tt-prefs__actions {
		flex-direction: column;
	}

	.tt-prefs__actions .tt-consent__btn {
		width: 100%;
	}
}

/* Botón para el shortcode [titano_cookie_settings] */
.tt-btn-plain {
	min-height: 48px;
	padding: 0 22px;
	border: 2px solid var(--t-ink, #0a1226);
	border-radius: 999px;
	background: #fff;
	color: var(--t-ink, #0a1226);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.tt-btn-plain:hover {
	background: var(--t-ink, #0a1226);
	color: #fff;
}

@media print {
	.tt-consent {
		display: none !important;
	}
}
