/* =================================================================
 * EREG Theme — cookie-consent.css
 * -----------------------------------------------------------------
 * Styles the visitor cookie notice rendered by inc/cookie-consent.php.
 * Fixed bottom banner, brand purple, slides up on first visit.
 * Uses theme :root variables (defined in main.css) with fallbacks.
 * eresuccess.com · Experience Real Estate Group, LLC
 * ================================================================= */

.ereg-cc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	padding: 11px clamp(14px, 4vw, 34px);
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-top: 2px solid rgba(73, 14, 111, 0.55);
	box-shadow: 0 -4px 18px rgba(13, 13, 16, 0.10);
	/* Hidden state (also set via [hidden] until JS runs) */
	transform: translateY(110%);
	transition: transform 0.35s ease;
}

.ereg-cc.is-visible {
	transform: translateY(0);
}

.ereg-cc__inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.ereg-cc__copy {
	flex: 1 1 auto;
}

.ereg-cc__title {
	margin: 0 0 2px;
	font-weight: 700;
	font-size: 13px;
	color: var(--ereg-purple, #490E6F);
	letter-spacing: 0.01em;
}

.ereg-cc__text {
	margin: 0;
	font-size: 12px;
	line-height: 1.55;
	color: #44444c;
	max-width: 820px;
}

.ereg-cc__text a {
	color: var(--ereg-purple, #490E6F);
	font-weight: 600;
	text-decoration: underline;
}

.ereg-cc__actions {
	flex: 0 0 auto;
	display: flex;
	gap: 10px;
	align-items: center;
}

.ereg-cc__btn {
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	padding: 9px 20px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.ereg-cc__btn--accept {
	background: var(--ereg-purple, #490E6F);
	border: 1px solid var(--ereg-purple, #490E6F);
	color: #ffffff;
}

.ereg-cc__btn--accept:hover {
	background: var(--ereg-purple-dk, #36094f);
	border-color: var(--ereg-purple-dk, #36094f);
}

.ereg-cc__btn--decline {
	background: transparent;
	border: 1px solid var(--ereg-line, #e6e0ee);
	color: var(--ereg-purple, #490E6F);
}

.ereg-cc__btn--decline:hover {
	background: var(--ereg-cream, #f7f4fb);
	border-color: var(--ereg-purple, #490E6F);
}

.ereg-cc__btn:focus-visible {
	outline: 2px solid var(--ereg-purple-lt, #6b2d96);
	outline-offset: 2px;
}

/* ---- Footer "Cookie Settings" trigger ---------------------------
   Inherits the look of the other footer legal links. */
.cookie-settings-link {
	cursor: pointer;
}

/* ---- Mobile: stack copy over full-width buttons ----------------- */
@media (max-width: 720px) {
	.ereg-cc__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}
	.ereg-cc__actions {
		justify-content: stretch;
	}
	.ereg-cc__btn {
		flex: 1 1 0;
		padding: 13px 18px;
		text-align: center;
	}
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.ereg-cc {
		transition: none;
	}
}
