/* Website For Sale Chase - front-end styles. All selectors are namespaced with .wfsc-root. */

.wfsc-root {
	--wfsc-accent: #229ed9;
	--wfsc-accent-dark: #1b86b9;
	--wfsc-accent-rgb: 34, 158, 217;
	--wfsc-z: 99990;
	--wfsc-bottom: 16px;
	--wfsc-edge: 16px;
	--wfsc-mouse: 84px;
	--wfsc-cat: 112px;
	--wfsc-dir: 1;
	--wfsc-bg: #ffffff;
	--wfsc-fg: #14213d;
	--wfsc-muted: #56607a;
	--wfsc-line: rgba(20, 33, 61, 0.1);
	--wfsc-b: calc(var(--wfsc-bottom) + env(safe-area-inset-bottom, 0px));
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.45;
}

.wfsc-root[data-side="right"] {
	--wfsc-dir: -1;
}

@media (max-width: 600px) {
	.wfsc-root {
		--wfsc-mouse: 64px;
		--wfsc-cat: 86px;
		--wfsc-edge: 12px;
	}
}

@media (prefers-color-scheme: dark) {
	.wfsc-root {
		--wfsc-bg: #1c2438;
		--wfsc-fg: #f3f6fc;
		--wfsc-muted: #aab4ca;
		--wfsc-line: rgba(255, 255, 255, 0.12);
	}
}

.wfsc-root,
.wfsc-root *,
.wfsc-root *::before,
.wfsc-root *::after {
	box-sizing: border-box;
}

/* ---------- Characters ---------- */

.wfsc-stage {
	position: fixed;
	left: 0;
	right: 0;
	bottom: var(--wfsc-b);
	height: calc(var(--wfsc-cat) + 12px);
	overflow: hidden;
	pointer-events: none;
	z-index: var(--wfsc-z);
}

.wfsc-stage[hidden] {
	display: none;
}

.wfsc-char {
	position: absolute;
	left: 0;
	bottom: 0;
	will-change: transform;
}

.wfsc-mouse {
	width: var(--wfsc-mouse);
	height: var(--wfsc-mouse);
	z-index: 2;
}

.wfsc-cat {
	width: var(--wfsc-cat);
	height: var(--wfsc-cat);
	z-index: 1;
}

.wfsc-sprite {
	width: 100%;
	height: 100%;
	transform: scaleX(var(--wfsc-dir));
}

.wfsc-sprite svg,
.wfsc-sprite img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	box-shadow: none;
	object-fit: contain;
	overflow: visible;
	transform-origin: 50% 100%;
}

.wfsc-char.is-running .wfsc-sprite > * {
	animation: wfsc-run 0.26s ease-in-out infinite alternate;
}

@keyframes wfsc-run {
	from { transform: translateY(0) rotate(-2deg); }
	to   { transform: translateY(-7px) rotate(3deg); }
}

/* Speech bubble, always on the side facing the screen centre */
.wfsc-bubble {
	position: absolute;
	bottom: 55%;
	width: max-content;
	max-width: min(190px, 44vw);
	padding: 8px 12px;
	border-radius: 14px;
	background: var(--wfsc-bg);
	color: var(--wfsc-fg);
	border: 1px solid var(--wfsc-line);
	box-shadow: 0 6px 18px rgba(10, 20, 50, 0.18);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.wfsc-root[data-side="left"] .wfsc-bubble {
	left: calc(100% + 4px);
	transform-origin: 0 100%;
}

.wfsc-root[data-side="right"] .wfsc-bubble {
	right: calc(100% + 4px);
	transform-origin: 100% 100%;
}

.wfsc-bubble.is-in {
	opacity: 1;
	transform: scale(1);
}

/* ---------- Banner card ---------- */

.wfsc-card {
	position: fixed;
	bottom: calc(var(--wfsc-b) + var(--wfsc-mouse) + 14px);
	width: min(360px, calc(100vw - 2 * var(--wfsc-edge)));
	padding: 20px 20px 16px;
	border-radius: 20px;
	background: var(--wfsc-bg);
	color: var(--wfsc-fg);
	border: 1px solid var(--wfsc-line);
	box-shadow: 0 18px 48px rgba(10, 20, 50, 0.24), 0 2px 6px rgba(10, 20, 50, 0.08);
	z-index: var(--wfsc-z);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(18px) scale(0.94);
	transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25), visibility 0s linear 0.5s;
}

.wfsc-root.wfsc-static .wfsc-card {
	bottom: var(--wfsc-b);
}

.wfsc-root[data-side="left"] .wfsc-card,
.wfsc-root[data-side="left"] .wfsc-pill {
	left: var(--wfsc-edge);
	transform-origin: 0 100%;
}

.wfsc-root[data-side="right"] .wfsc-card,
.wfsc-root[data-side="right"] .wfsc-pill {
	right: var(--wfsc-edge);
	transform-origin: 100% 100%;
}

.wfsc-card.is-in {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition-delay: 0s;
}

.wfsc-root .wfsc-title {
	margin: 0 28px 6px 0;
	padding: 0;
	font-size: 19px;
	font-weight: 750;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--wfsc-fg);
}

.wfsc-root .wfsc-text {
	margin: 0 0 14px;
	padding: 0;
	font-size: 14.5px;
	color: var(--wfsc-muted);
}

.wfsc-root .wfsc-note {
	margin: 10px 0 0;
	padding: 0;
	font-size: 12.5px;
	text-align: center;
	color: var(--wfsc-muted);
}

/* ---------- Buttons ---------- */

.wfsc-root a.wfsc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 13px 18px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--wfsc-accent), var(--wfsc-accent-dark));
	color: #fff;
	font-size: 15.5px;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(var(--wfsc-accent-rgb), 0.38);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wfsc-root a.wfsc-btn:hover,
.wfsc-root a.wfsc-btn:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(var(--wfsc-accent-rgb), 0.5);
	filter: brightness(1.05);
}

.wfsc-root a.wfsc-btn:active {
	transform: translateY(0);
}

.wfsc-root .wfsc-btn:focus-visible,
.wfsc-root .wfsc-pill-link:focus-visible,
.wfsc-root .wfsc-x:focus-visible {
	outline: 3px solid rgba(var(--wfsc-accent-rgb), 0.55);
	outline-offset: 2px;
}

.wfsc-root a.wfsc-btn.is-pulse {
	animation: wfsc-pulse 1.5s ease-out 2;
}

@keyframes wfsc-pulse {
	0%   { box-shadow: 0 8px 18px rgba(var(--wfsc-accent-rgb), 0.38), 0 0 0 0 rgba(var(--wfsc-accent-rgb), 0.5); }
	100% { box-shadow: 0 8px 18px rgba(var(--wfsc-accent-rgb), 0.38), 0 0 0 16px rgba(var(--wfsc-accent-rgb), 0); }
}

.wfsc-icon {
	flex: none;
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.wfsc-root button.wfsc-x {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--wfsc-muted);
	font: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.wfsc-root button.wfsc-x:hover {
	background: rgba(127, 127, 127, 0.18);
	color: var(--wfsc-fg);
}

.wfsc-card .wfsc-x {
	position: absolute;
	top: 10px;
	right: 10px;
}

/* ---------- Compact pill ---------- */

.wfsc-pill {
	position: fixed;
	bottom: var(--wfsc-b);
	display: flex;
	align-items: center;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--wfsc-accent), var(--wfsc-accent-dark));
	box-shadow: 0 10px 26px rgba(var(--wfsc-accent-rgb), 0.45);
	z-index: var(--wfsc-z);
	max-width: calc(100vw - 2 * var(--wfsc-edge));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(14px) scale(0.9);
	transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3), visibility 0s linear 0.4s;
}

.wfsc-pill.is-in {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition-delay: 0s;
}

.wfsc-root a.wfsc-pill-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 4px 10px 14px;
	color: #fff;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 999px;
}

.wfsc-root a.wfsc-pill-link:hover {
	color: #fff;
	text-decoration: underline;
}

.wfsc-pill .wfsc-icon {
	width: 20px;
	height: 20px;
}

.wfsc-root .wfsc-pill button.wfsc-x {
	width: 30px;
	height: 30px;
	margin-right: 6px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 20px;
}

.wfsc-root .wfsc-pill button.wfsc-x:hover {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.wfsc-root *,
	.wfsc-root *::before,
	.wfsc-root *::after {
		animation: none !important;
		transition: none !important;
	}
}
