/**
 * Cookie consent banner styles.
 * Uses C5E theme tokens (var(--wp--preset--color--*)).
 */

.c5e-cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 100000;
	max-width: 720px;
	margin: 0 auto;
	background: #ffffff;
	color: #1f2932;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	transform: translateY( 24px );
	opacity: 0;
	transition: transform 240ms ease, opacity 240ms ease;
	font-family: var(--wp--preset--font-family--main, inherit);
}

.c5e-cookie-banner.is-open {
	transform: translateY( 0 );
	opacity: 1;
}

.c5e-cookie-banner__inner {
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.c5e-cookie-banner__title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: #1f2932;
}

.c5e-cookie-banner__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

.c5e-cookie-banner__text a {
	color: #846537;
	text-decoration: underline;
}

.c5e-cookie-banner__options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	background: #f7f5f0;
	border-radius: 8px;
}

.c5e-cookie-banner__option {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.4;
	color: #333;
	cursor: pointer;
}

.c5e-cookie-banner__option input {
	margin-top: 3px;
	flex-shrink: 0;
}

.c5e-cookie-banner__option--locked {
	cursor: default;
	opacity: 0.85;
}

.c5e-cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.c5e-cookie-banner__btn {
	border: 0;
	cursor: pointer;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.c5e-cookie-banner__btn--secondary {
	background: transparent;
	color: #555;
	border: 1px solid #d8d0c4;
}

.c5e-cookie-banner__btn--secondary:hover {
	background: #f0ebe1;
}

.c5e-cookie-banner__btn--primary {
	background: linear-gradient(90deg, #846537, #ebc769, #caa86d);
	color: #1f2932;
}

.c5e-cookie-banner__btn--primary:hover {
	opacity: 0.92;
}

@media ( max-width: 600px ) {
	.c5e-cookie-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
	}
	.c5e-cookie-banner__inner {
		padding: 16px;
	}
	.c5e-cookie-banner__actions {
		flex-direction: column-reverse;
	}
	.c5e-cookie-banner__btn {
		width: 100%;
	}
}
