/**
 * The analytics consent notice.
 *
 * Self-contained on purpose. It appears on the carried-over pages too, and those
 * load only legacy.css - so nothing here may lean on the tokens in style.css,
 * and every value is written out. The navy is the site's brand colour.
 *
 * @package Cherokee_Antique_Row
 */

.car-consent {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 1000;
	max-width: 560px;
	margin-left: auto;
	padding: 16px;
	border: 1px solid #e1e0d9;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 6px 24px rgba(11, 11, 11, 0.18);
	color: #0b0b0b;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}

/* The legacy pages centre nearly everything through <center> and align
   attributes, which this must not inherit. */
.car-consent * {
	text-align: left;
}

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

.car-consent-text {
	margin: 0 0 12px;
	color: #0b0b0b;
	font-size: 14px;
}

.car-consent-text a {
	color: #003366;
}

.car-consent-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

/* Both buttons are the same size. Refusing has to be as easy as accepting, and
   a greyed-out, smaller "no" is the pattern that makes it not so. */
.car-consent-button {
	padding: 8px 16px;
	border: 1px solid #003366;
	border-radius: 999px;
	background: #ffffff;
	color: #003366;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.car-consent-button.is-primary {
	background: #003366;
	color: #ffffff;
}

.car-consent-button:hover {
	border-color: #00284f;
}

.car-consent-button.is-primary:hover {
	background: #00284f;
}

.car-consent-button:focus-visible {
	outline: 2px solid #003366;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.car-consent-actions {
		justify-content: stretch;
	}

	.car-consent-button {
		flex: 1;
	}
}
