@property --thriveo-flow-light {
	syntax: '<number>';
	inherits: true;
	initial-value: 0.1;
}

.thriveo-flow {
	--thriveo-flow-dark: #060b17;
	--thriveo-flow-bright: #e8fbff;
	--thriveo-flow-accent: var(--thriveo-color-accent, var(--wp--preset--color--primary, #12d9e3));
	--thriveo-flow-card-accent: #12d9e3;
	--thriveo-flow-card-bg: #0b1220;
	--thriveo-flow-card-fg: #f4f8ff;
	--thriveo-flow-duration: 0.9s;
	--thriveo-flow-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.thriveo-flow__notice {
	font-style: italic;
	opacity: 0.7;
}

.thriveo-flow__steps {
	list-style: none;
	margin: 0;
	padding: 0;
}

.thriveo-flow__content > * {
	margin-block: 0 0.75rem;
}

.thriveo-flow__counter {
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	opacity: 0.7;
}

.thriveo-flow__subtitle {
	font-size: 1.15rem;
	opacity: 0.85;
}

.thriveo-flow__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thriveo-flow-card {
	background: var(--thriveo-flow-card-bg);
	color: var(--thriveo-flow-card-fg);
	border: 1px solid var(--thriveo-flow-card-accent);
	border-radius: 0.75rem;
	padding: 1rem 1.25rem;
	box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.35);
}

.thriveo-flow-card__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: var(--thriveo-flow-card-fg);
}

.thriveo-flow-card__results {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.thriveo-flow .thriveo-flow-card .thriveo-flow-card__value {
	display: block;
	font-size: 1.6rem;
	line-height: 1.15;
	color: var(--thriveo-flow-card-accent);
}

.thriveo-flow-card__label {
	display: block;
	color: var(--thriveo-flow-card-fg);
	font-size: 0.95rem;
	opacity: 0.9;
}

.thriveo-flow__results-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
}

.thriveo-flow:not(.is-enhanced) .thriveo-flow__step,
.thriveo-flow:not(.is-enhanced) .thriveo-flow__results {
	position: relative;
	margin-block: 2rem;
}

.thriveo-flow:not(.is-enhanced) .thriveo-flow__image {
	display: none;
}

.thriveo-flow:not(.is-enhanced) .thriveo-flow__cards {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

.thriveo-flow.is-enhanced [data-flow-card-key] {
	cursor: help;
	text-decoration: underline dotted;
	text-underline-offset: 0.25em;
}

.thriveo-flow__dialog {
	--panel-bg: color-mix(in srgb, #050912 80%, transparent);
	--panel-fg: #f4f8ff;
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	color: var(--panel-fg);
	transition: --thriveo-flow-light var(--thriveo-flow-duration) var(--thriveo-flow-ease);
	background: radial-gradient(
		circle at 50% 50%,
		color-mix(in srgb, var(--thriveo-flow-bright) calc(var(--thriveo-flow-light) * 100%), var(--thriveo-flow-dark)) 0%,
		color-mix(in srgb, var(--thriveo-flow-bright) calc(var(--thriveo-flow-light) * 45%), var(--thriveo-flow-dark)) 65%,
		var(--thriveo-flow-dark) 130%
	);
}

.thriveo-flow__dialog[data-tone='light'] {
	--panel-bg: color-mix(in srgb, #ffffff 88%, transparent);
	--panel-fg: #0b1220;
}

.thriveo-flow__dialog:not([open]) {
	display: none;
}

.thriveo-flow__dialog::backdrop {
	background: #000;
}

html.thriveo-flow-open {
	overflow: hidden;
}

.thriveo-flow__dialog .thriveo-flow__stage,
.thriveo-flow__dialog .thriveo-flow__steps {
	position: absolute;
	inset: 0;
}

.thriveo-flow__dialog .thriveo-flow__step,
.thriveo-flow__dialog .thriveo-flow__results {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		transform var(--thriveo-flow-duration) var(--thriveo-flow-ease),
		opacity var(--thriveo-flow-duration) var(--thriveo-flow-ease),
		visibility 0s linear var(--thriveo-flow-duration);
}

.thriveo-flow__dialog .is-past {
	transform: scale(1.6);
}

.thriveo-flow__dialog .is-next {
	transform: scale(0.6);
}

.thriveo-flow__dialog .is-current {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition-delay: 0s;
}

.thriveo-flow__dialog .thriveo-flow__content {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: min(46rem, 90vw);
	max-height: calc(100dvh - 11rem);
	overflow: auto;
	padding: 2rem;
	border-radius: 1rem;
	background: var(--panel-bg);
	color: var(--panel-fg);
	transition: background-color var(--thriveo-flow-duration), color var(--thriveo-flow-duration);
}

.thriveo-flow__dialog .thriveo-flow__content :is(h2, p, ul, ol, li, strong, a) {
	color: inherit;
}

.thriveo-flow__dialog .thriveo-flow-card :is(h3, strong, span) {
	color: inherit;
}

.thriveo-flow__results .thriveo-flow__content {
	width: min(60rem, 92vw);
}

.thriveo-flow__dialog .thriveo-flow__image {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 1;
	width: 55%;
	opacity: 0.35;
	pointer-events: none;
}

.thriveo-flow__image--left {
	left: 0;
	mask-image: linear-gradient(to right, #000 45%, transparent);
}

.thriveo-flow__image--right {
	right: 0;
	mask-image: linear-gradient(to left, #000 45%, transparent);
}

.thriveo-flow__dialog .thriveo-flow__cards {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.thriveo-flow__dialog .thriveo-flow__cards .thriveo-flow-card {
	position: absolute;
	box-sizing: border-box;
	width: min(22rem, calc(100% - 1rem));
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.25rem);
	transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
}

.thriveo-flow__dialog .thriveo-flow__cards .thriveo-flow-card.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition-delay: 0s;
}

.thriveo-flow__chrome {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
}

.thriveo-flow__chrome > * {
	pointer-events: auto;
}

.thriveo-flow__status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.thriveo-flow__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
}

.thriveo-flow__controls {
	position: absolute;
	left: 50%;
	bottom: 1.25rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	transform: translateX(-50%);
}

.thriveo-flow__dots {
	display: flex;
	gap: 0.5rem;
}

.thriveo-flow__close,
.thriveo-flow__back,
.thriveo-flow__next {
	padding: 0.55rem 1.1rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: var(--panel-bg);
	color: var(--panel-fg);
	font: inherit;
	cursor: pointer;
}

.thriveo-flow__close:disabled,
.thriveo-flow__back:disabled,
.thriveo-flow__next:disabled {
	opacity: 0.4;
	cursor: default;
}

.thriveo-flow__dot {
	width: 0.9rem;
	height: 0.9rem;
	padding: 0;
	border: 1px solid var(--panel-fg);
	border-radius: 50%;
	background: var(--panel-bg);
	cursor: pointer;
}

.thriveo-flow__dot[aria-current='step'] {
	background: var(--panel-fg);
}

.thriveo-flow__close:focus-visible,
.thriveo-flow__back:focus-visible,
.thriveo-flow__next:focus-visible,
.thriveo-flow__dot:focus-visible,
.thriveo-flow [data-flow-card-key]:focus-visible {
	outline: 3px solid var(--thriveo-flow-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.thriveo-flow__dialog,
	.thriveo-flow__dialog .thriveo-flow__step,
	.thriveo-flow__dialog .thriveo-flow__results,
	.thriveo-flow__dialog .thriveo-flow__content {
		transition-duration: 0.2s;
	}

	.thriveo-flow__dialog .is-past,
	.thriveo-flow__dialog .is-next {
		transform: none;
	}
}

@media (max-width: 600px) {
	.thriveo-flow__dialog .thriveo-flow__content {
		padding: 1.25rem;
		max-height: calc(100dvh - 9rem);
	}

	.thriveo-flow__dialog .thriveo-flow__image {
		width: 100%;
	}
}
