/**
 * USH Cookie Consent — banner + floating button.
 *
 * Colours come from CSS custom properties set inline per settings, so this file
 * is identical for every cached visitor.
 */

.ush-cc-root {
	--ushcc-bg: #ffffff;
	--ushcc-heading: #0a2540;
	--ushcc-text: #3c4858;
	--ushcc-btn-bg: #0a2540;
	--ushcc-btn-text: #ffffff;
}

/* ---- Banner ---- */
.ush-cc-banner {
	position: fixed;
	left: 18px;
	right: auto;
	bottom: 0;
	z-index: 99990;
	/* Wide panel flush to the bottom-left. max-width leaves ~400px clear on the
	   right for the 350px-wide Connatix floating video so they never overlap;
	   the mobile query re-centres it above the sticky ad. */
	width: 900px;
	max-width: calc(100vw - 400px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding: 16px 40px 16px 20px;
	background: var(--ushcc-bg);
	color: var(--ushcc-text);
	border-radius: 12px 12px 0 0;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
	font-size: 14px;
	line-height: 1.4;
}

.ush-cc-banner[hidden] {
	display: none;
}

.ush-cc-banner__icon {
	flex: 0 0 auto;
	display: flex;
	color: var(--ushcc-text);
}

.ush-cc-banner__copy {
	flex: 1 1 auto;
	min-width: 0;
}

.ush-cc-banner__heading {
	margin: 0 0 2px;
	font-weight: 700;
	color: var(--ushcc-heading);
}

.ush-cc-banner__message {
	margin: 0;
}

.ush-cc-banner__link {
	color: inherit;
	text-decoration: underline;
	white-space: nowrap;
}

.ush-cc-banner__actions {
	flex: 1 1 100%;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.ush-cc-banner__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--ushcc-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.6;
}

.ush-cc-banner__close:hover {
	opacity: 1;
}

.ush-cc-banner__close:focus-visible {
	outline: 2px solid var(--ushcc-btn-bg);
	outline-offset: 2px;
}

/* ---- Buttons ---- */
.ush-cc-btn {
	cursor: pointer;
	border: 1px solid var(--ushcc-btn-bg);
	border-radius: 6px;
	padding: 9px 20px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

.ush-cc-btn--solid {
	background: var(--ushcc-btn-bg);
	color: var(--ushcc-btn-text);
}

/* Decline carries equal visual weight to Accept (CPPA §7004 symmetry): same
   size, font-weight and a full-strength outline in the banner text colour. */
.ush-cc-btn--ghost {
	background: transparent;
	color: var(--ushcc-text);
	border-color: var(--ushcc-text);
}

.ush-cc-btn:focus-visible {
	outline: 2px solid var(--ushcc-btn-bg);
	outline-offset: 2px;
}

/* ---- "Your Privacy Choices" opt-out link (CCPA §7015) ---- */
.ush-cc-footer-link {
	text-align: center;
	padding: 16px;
	font-size: 13px;
	line-height: 1.4;
}

.ush-cc-privacy-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
	color: inherit;
	text-decoration: underline;
}

.ush-cc-optout-icon {
	flex: 0 0 auto;
	vertical-align: middle;
}

.ush-cc-privacy-link__label {
	line-height: 1;
}

/* ---- Floating cookie button ---- */
.ush-cc-fab {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 99989;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	background: var(--ushcc-bg);
	color: var(--ushcc-text);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.ush-cc-fab[hidden] {
	display: none;
}

.ush-cc-fab:focus-visible {
	outline: 2px solid var(--ushcc-btn-bg);
	outline-offset: 2px;
}

/* The banner is now a bottom-left card by default (see .ush-cc-banner above),
   so the legacy full-width "bottom" vs "bottom-left-card" position variants
   render identically — no separate override needed. */

/* ---- Mobile: equal left/right gutters (centred), lifted above the sticky ad ---- */
@media (max-width: 640px) {
	.ush-cc-banner {
		left: 16px;
		right: 16px;
		bottom: 200px;
		transform: none;
		width: auto;
		max-width: none;
		border-radius: 12px;
		gap: 10px 14px;
		padding: 14px 40px 14px 16px;
	}

	.ush-cc-banner__actions {
		justify-content: stretch;
	}

	.ush-cc-banner__actions .ush-cc-btn {
		flex: 1 1 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ush-cc-banner,
	.ush-cc-fab {
		transition: none;
	}
}

/* ---- Admin preview: contain to the pane instead of the viewport ---- */
.ush-cc-preview {
	position: relative;
	min-height: 130px;
	background: #eef1f4;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	overflow: hidden;
}

.ush-cc-preview .ush-cc-banner,
.ush-cc-preview .ush-cc-fab {
	position: absolute;
}
