/*
 * Golds Utilities — cookie consent banner.
 *
 * Restyle per site by setting these on :root (or body) in the theme:
 *   --golds-consent-bg, --golds-consent-text, --golds-consent-link,
 *   --golds-consent-button-bg, --golds-consent-button-text,
 *   --golds-consent-font, --golds-consent-radius
 */
.golds-consent {
	position: fixed;
	z-index: 2147483000;
	right: 16px;
	bottom: 16px;
	left: 16px;
	box-sizing: border-box;
	max-width: 420px;
	padding: 20px;
	border-radius: var(--golds-consent-radius, 8px);
	background: var(--golds-consent-bg, #222);
	color: var(--golds-consent-text, #fff);
	font-family: var(--golds-consent-font, inherit);
	font-size: 15px;
	line-height: 1.5;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

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

.golds-consent__text {
	margin: 0 0 16px;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.golds-consent__link,
.golds-consent__link:visited {
	color: var(--golds-consent-link, inherit);
	text-decoration: underline;
}

.golds-consent__actions {
	display: flex;
	gap: 10px;
}

/* Accept and Reject look the same on purpose: saying no should be as easy as yes. */
.golds-consent__button {
	flex: 1 1 0;
	margin: 0;
	padding: 10px 16px;
	border: 0;
	border-radius: var(--golds-consent-radius, 8px);
	background: var(--golds-consent-button-bg, #fff);
	color: var(--golds-consent-button-text, #222);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.golds-consent__button:hover {
	opacity: 0.85;
}

.golds-consent__button:focus-visible,
.golds-consent__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (min-width: 600px) {
	.golds-consent {
		right: auto;
		left: 24px;
		bottom: 24px;
	}
}

@media print {
	.golds-consent {
		display: none;
	}
}
