/*
 * Banner de consentimento de cookies.
 * Mantém a identidade Difusora e a leitura confortável.
 */

.dif-consent {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
	background: #ffffff;
	color: var(--dif-color-text, #241b1b);
	border-top: 4px solid var(--dif-color-brand-yellow, #f9ce1e);
	box-shadow: 0 -6px 28px rgba(29, 23, 23, 0.2);
	font-family: var(--dif-font-sans, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	font-size: 0.875rem;
	line-height: 1.55;
}

.dif-consent[hidden] {
	display: none !important;
}

.dif-consent__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	width: min(100% - 2rem, 1180px);
	margin-inline: auto;
}

.dif-consent__text {
	flex: 1 1 440px;
	min-width: 0;
}

.dif-consent__title {
	margin: 0 0 0.3rem;
	color: var(--dif-color-brand-brown, #2f2424);
	font-family: var(--dif-font-serif, Georgia, "Times New Roman", serif);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.dif-consent__title:focus-visible {
	outline: 2px solid var(--dif-color-brand-brown, #2f2424);
	outline-offset: 3px;
}

.dif-consent__text p {
	max-width: 78ch;
	margin: 0;
}

.dif-consent__text a {
	color: var(--dif-color-accent-text, #7a5a12);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dif-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.dif-consent__accept,
.dif-consent__reject {
	min-height: 44px;
	padding: 0.6rem 1rem;
	border-radius: var(--dif-radius, 4px);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.dif-consent__accept {
	background: var(--dif-color-brand-yellow, #f9ce1e);
	color: var(--dif-color-brand-brown-dark, #1d1717);
	border: 1px solid var(--dif-color-brand-yellow, #f9ce1e);
}

.dif-consent__accept:hover {
	background: var(--dif-color-brand-yellow-dark, #e0b800);
	border-color: var(--dif-color-brand-yellow-dark, #e0b800);
}

.dif-consent__reject {
	background: #ffffff;
	color: var(--dif-color-brand-brown, #2f2424);
	border: 1px solid var(--dif-color-brand-brown, #2f2424);
}

.dif-consent__reject:hover {
	background: var(--dif-color-surface, #f6f1e8);
}

.dif-consent__accept:focus-visible,
.dif-consent__reject:focus-visible {
	outline: 3px solid var(--dif-color-brand-brown-dark, #1d1717);
	outline-offset: 2px;
}

/* Link permanente no rodapé */
.footer__cookie-link {
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.footer__cookie-link:hover {
	color: var(--dif-color-brand-yellow, #f9ce1e);
}

.footer__cookie-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.dif-consent__inner {
		align-items: stretch;
	}

	.dif-consent__actions {
		width: 100%;
	}

	.dif-consent__accept,
	.dif-consent__reject {
		flex: 1 1 100%;
	}
}
