/**
 * WinRocket setup wizard.
 *
 * Tailwind-style utility look, written as plain CSS so no build step is needed.
 */

/* ---------- Font (Rubik, same as Essential Addons; bundled in inc/admin/assets/fonts, SIL OFL 1.1) ---------- */
@font-face {
	font-family: "WXG Rubik";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../../assets/fonts/rubik-latin-wght-normal.woff2") format("woff2-variations"), url("../../assets/fonts/rubik-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Page ---------- */
body.wxgw-screen,
body.wxgw-screen #wpwrap,
body.wxgw-screen #wpcontent {
	background: #f5f6fc;
}

body.wxgw-screen #wpfooter {
	display: none;
}

body.wxgw-screen #wpbody-content {
	padding-bottom: 40px;
}

.wxgw {
	/* Primary: Tailwind violet. */
	--o-50: #faf5ff;
	--o-100: #f6eeff;
	--o-500: #750ef4;
	--o-600: #6f0af2;
	--v-50: #f5f3ff;
	--v-500: #7c3aed;
	--g-50: #f0fdf4;
	--g-500: #22c55e;
	--g-600: #16a34a;
	--wa: #25d366;
	--wa-dark: #128c7e;
	/* Neutral greys. */
	--s-50: #f9fafb;
	--s-100: #f2f4f7;
	--s-200: #eaecf0;
	--s-300: #d0d5dd;
	--s-400: #98a2b3;
	--s-500: #667085;
	--s-600: #475467;
	--s-700: #344054;
	--s-900: #1d2939;
	--art: #f1effe;
	--shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
	--shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
	--r-lg: 12px;
	--r-xl: 16px;
	max-width: 1100px;
	margin: 28px auto 0;
	padding: 0 4px;
	color: var(--s-900);
	font-family: "WXG Rubik", Rubik, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

.wxgw [hidden] {
	display: none !important;
}

.wxgw-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* ---------- Brand ---------- */
.wxgw-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
}

.wxgw-brand__name {
	color: var(--s-900);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.wxgw-brand__name span {
	color: var(--o-500);
}

.wxgw-brand__tag {
	padding: 2px 10px;
	border: 1px solid var(--s-200);
	border-radius: 999px;
	background: #fff;
	color: var(--s-600);
	font-size: 12px;
	font-weight: 600;
}

/* ---------- Shell + steps ---------- */
.wxgw-shell {
	display: grid;
	gap: 10px;
}

.wxgw-panel {
	border: 1px solid var(--s-200);
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.wxgw-steps {
	display: flex;
	gap: 4px;
	padding: 0 12px;
	border: 1px solid var(--s-200);
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow: var(--shadow-sm);
	overflow-x: auto;
	scrollbar-width: none;
}

.wxgw-steps::-webkit-scrollbar {
	display: none;
}

.wxgw-step {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 18px 16px;
	border: 0;
	background: none;
	color: var(--s-600);
	font: inherit;
	font-size: 16px;
	font-weight: 450;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s;
}

.wxgw-step::after {
	content: "";
	position: absolute;
	right: 10px;
	bottom: -1px;
	left: 10px;
	height: 2px;
	border-radius: 2px;
	background: var(--o-500);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.wxgw-step:hover {
	color: var(--s-900);
}

.wxgw-step:disabled {
	cursor: not-allowed;
}

.wxgw-step:disabled:hover {
	color: var(--s-600);
}

.wxgw-step__num {
	position: relative;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--s-100);
	color: var(--s-600);
	font-size: 15px;
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}

.wxgw-step__num .wxgw-icon {
	display: none;
	width: 16px;
	height: 16px;
	stroke-width: 3;
}

.wxgw-step.is-active {
	color: var(--s-900);
	font-weight: 500;
}

.wxgw-step.is-active::after {
	transform: scaleX(1);
}

.wxgw-step.is-active .wxgw-step__num {
	background: var(--o-100);
	color: var(--o-600);
}

.wxgw-step.is-done .wxgw-step__num {
	background: var(--o-100);
	color: var(--o-500);
}

.wxgw-step.is-done .wxgw-step__n {
	display: none;
}

.wxgw-step.is-done .wxgw-step__num .wxgw-icon {
	display: block;
}

/* ---------- Panels ---------- */
.wxgw-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	gap: 40px;
	align-items: center;
	padding: 40px;
	animation: wxgw-in 0.45s ease both;
}

@keyframes wxgw-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.wxgw-tile {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 22px;
	border-radius: 12px;
}

.wxgw-tile .wxgw-icon {
	width: 26px;
	height: 26px;
	stroke-width: 1.8;
}

.wxgw-tile--violet {
	background: var(--o-100);
	color: var(--o-500);
}

.wxgw-tile--green {
	background: #dcfce7;
	color: var(--g-600);
}

.wxgw-title {
	margin: 0 0 10px;
	padding: 0;
	color: var(--s-900);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.wxgw-title--sm {
	font-size: 22px;
}

.wxgw-lead {
	margin: 0 0 24px;
	color: var(--s-600);
	font-size: 15px;
	line-height: 1.6;
}

.wxgw-list {
	display: grid;
	gap: 12px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.wxgw-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--s-700);
	font-size: 14px;
}

.wxgw-list .wxgw-icon {
	width: 22px;
	height: 22px;
	padding: 4px;
	border-radius: 6px;
	background: var(--o-50);
	color: var(--o-500);
	stroke-width: 3;
}

.wxgw-list .wxgw-icon {
	border-radius: 999px;
	background: var(--o-100);
}

/* ---------- Art ---------- */
.wxgw-art {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 400px;
	overflow: hidden;
	border-radius: var(--r-xl);
}

.wxgw-art--orange,
.wxgw-art--violet,
.wxgw-art--green {
	background: var(--art);
}

.wxgw-art__fill {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
}

.wxgw-svg {
	display: block;
	width: 100%;
	height: auto;
	max-height: 440px;
}

.wxgw-svg text {
	font-family: "WXG Rubik", Rubik, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wxgw-float {
	animation: wxgw-float 5s ease-in-out infinite;
}

.wxgw-float-alt {
	animation: wxgw-float 6s ease-in-out -2s infinite;
}

.wxgw-float-slow {
	animation: wxgw-float-sm 7s ease-in-out infinite;
}

@keyframes wxgw-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@keyframes wxgw-float-sm {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-4px);
	}
}

.wxgw-twinkle {
	animation: wxgw-twinkle 3s ease-in-out infinite;
}

@keyframes wxgw-twinkle {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.45;
	}
}

.wxgw-bar {
	transform-box: fill-box;
	transform-origin: left center;
	animation: wxgw-bar 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

@keyframes wxgw-bar {
	from {
		transform: scaleX(0);
	}
}

.wxgw-blink {
	animation: wxgw-twinkle 1s steps(2, end) infinite;
}

.wxgw-fan > g {
	transform-box: fill-box;
}

/* ---------- WooCommerce requirement ---------- */
.wxgw-req {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding: 14px 14px 14px 16px;
	border: 1px solid #ddd6fe;
	border-radius: var(--r-lg);
	background: var(--o-50);
}

.wxgw[data-wc="active"] .wxgw-req {
	border-color: #bbf7d0;
	background: var(--g-50);
}

.wxgw-req__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #fff;
	color: #7f54b3;
	box-shadow: var(--shadow-xs);
	flex-shrink: 0;
}

.wxgw-req__body {
	display: flex;
	flex: 1 1 220px;
	flex-direction: column;
	min-width: 0;
}

.wxgw .wxgw-req__btn {
	flex: 1 0 100%;
}

.wxgw-req__title {
	font-size: 14px;
	font-weight: 700;
}

.wxgw-req__text {
	color: var(--s-600);
	font-size: 13px;
}

.wxgw-req__error {
	margin-top: 4px;
	color: #dc2626;
	font-size: 13px;
}

.wxgw-req__error a {
	color: inherit;
	font-weight: 600;
}

.wxgw-req__ok {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--g-500);
	color: #fff;
	flex-shrink: 0;
}

.wxgw-req__ok .wxgw-icon {
	stroke-width: 3;
}

.wxgw [data-wc-show] {
	display: none;
}

.wxgw[data-wc="missing"] [data-wc-show~="missing"],
.wxgw[data-wc="installed"] [data-wc-show~="installed"],
.wxgw[data-wc="active"] [data-wc-show~="active"] {
	display: revert;
}

.wxgw[data-wc="missing"] .wxgw-btn[data-wc-show~="missing"],
.wxgw[data-wc="installed"] .wxgw-btn[data-wc-show~="installed"],
.wxgw[data-wc="active"] .wxgw-req__ok[data-wc-show~="active"] {
	display: inline-flex;
}

.wxgw[data-wc="active"] .wxgw-req__ok[data-wc-show~="active"] {
	display: grid;
}

/* ---------- Buttons ---------- */
.wxgw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.wxgw-btn:active {
	transform: translateY(1px);
}

.wxgw-btn:focus-visible,
.wxgw-link:focus-visible,
.wxgw-step:focus-visible {
	outline: 2px solid var(--o-500);
	outline-offset: 2px;
	box-shadow: none;
}

.wxgw-btn--lg {
	min-height: 48px;
	padding: 0 22px;
	font-size: 15px;
}

.wxgw-btn--primary {
	background: var(--o-500);
	color: #fff;
	box-shadow: var(--shadow-xs);
}

.wxgw-btn--primary:hover,
.wxgw-btn--primary:focus {
	background: var(--o-600);
	color: #fff;
}

.wxgw-btn--dark {
	background: var(--s-900);
	color: #fff;
}

.wxgw-btn--dark:hover,
.wxgw-btn--dark:focus {
	background: var(--s-700);
	color: #fff;
}

.wxgw-btn--ghost {
	border-color: var(--s-300);
	box-shadow: var(--shadow-xs);
	background: #fff;
	color: var(--s-700);
}

.wxgw-btn--ghost:hover,
.wxgw-btn--ghost:focus {
	border-color: var(--s-300);
	background: var(--s-50);
	color: var(--s-900);
}

.wxgw-btn--whatsapp {
	background: var(--wa);
	color: #fff;
}

.wxgw-btn--whatsapp:hover,
.wxgw-btn--whatsapp:focus {
	background: #1ebe5a;
	color: #fff;
}

.wxgw-btn--whatsapp .wxgw-icon {
	width: 20px;
	height: 20px;
}

.wxgw-btn:disabled,
.wxgw-btn.is-disabled {
	background: var(--s-200);
	color: var(--s-400);
	cursor: not-allowed;
}

.wxgw-btn.is-loading {
	pointer-events: none;
	opacity: 0.85;
}

.wxgw-btn--dark.is-loading {
	background: var(--s-900);
	color: #fff;
}

.wxgw-btn--primary.is-loading {
	background: var(--o-500);
	color: #fff;
}

.wxgw-btn.is-loading .wxgw-icon {
	display: none;
}

.wxgw-btn.is-loading::before {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 999px;
	animation: wxgw-spin 0.7s linear infinite;
}

@keyframes wxgw-spin {
	to {
		transform: rotate(360deg);
	}
}

.wxgw-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 6px;
	border: 0;
	background: none;
	color: var(--s-600);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.wxgw-link:hover {
	color: var(--s-900);
}

.wxgw-link .wxgw-icon {
	width: 16px;
	height: 16px;
}

/* ---------- Footer ---------- */
.wxgw-footer {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
}

.wxgw-footer__hint {
	color: var(--s-500);
	font-size: 13px;
}

.wxgw-footer__right {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

/* ---------- Step 2 ---------- */
.wxgw-error {
	margin: 12px 0 0;
	color: #dc2626;
	font-size: 13px;
}

.wxgw [data-sample-show] {
	display: none;
}

.wxgw[data-sample="no"] [data-sample-show="no"],
.wxgw[data-sample="yes"] [data-sample-show="yes"] {
	display: block;
}

.wxgw[data-sample="yes"] .wxgw-art__fill[data-sample-show="yes"],
.wxgw[data-sample="no"] .wxgw-art__fill[data-sample-show="no"] {
	display: grid;
}

.wxgw[data-sample="yes"] .wxgw-btn[data-sample-show="yes"] {
	display: inline-flex;
}

.wxgw-success {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding: 12px 14px;
	border: 1px solid #bbf7d0;
	border-radius: var(--r-lg);
	background: var(--g-50);
	animation: wxgw-in 0.4s ease both;
}

.wxgw-success__icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--g-500);
	color: #fff;
	flex-shrink: 0;
}

.wxgw-success__icon .wxgw-icon {
	width: 16px;
	height: 16px;
	stroke-width: 3;
}

.wxgw-success strong {
	display: block;
	font-size: 14px;
}

.wxgw-success span[data-sample-title] {
	display: block;
	color: var(--s-600);
	font-size: 13px;
}

.wxgw-guide-steps {
	display: grid;
	gap: 6px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.wxgw-guide-steps li {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: var(--r-lg);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.wxgw-guide-steps li > span {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--s-100);
	color: var(--s-600);
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
	transition: background 0.2s, color 0.2s;
}

.wxgw-guide-steps strong {
	display: block;
	font-size: 14px;
	line-height: 26px;
}

.wxgw-guide-steps em {
	display: block;
	max-height: 0;
	overflow: hidden;
	color: var(--s-600);
	font-size: 13px;
	font-style: normal;
	opacity: 0;
	transition: max-height 0.3s, opacity 0.3s;
}

.wxgw-guide-steps li.is-active {
	border-color: #ddd6fe;
	background: var(--v-50);
}

.wxgw-guide-steps li.is-active > span {
	background: var(--v-500);
	color: #fff;
}

.wxgw-guide-steps li.is-active em {
	max-height: 60px;
	opacity: 1;
}

.wxgw-actions-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Product edit screen mock-up */
.wxgw-mock {
	position: relative;
	width: calc(100% - 48px);
	max-width: 500px;
	margin: 24px;
	overflow: hidden;
	border: 1px solid #ddd6fe;
	border-radius: 14px;
	background: #f6f7f7;
	color: #1d2327;
	font-size: 11px;
	line-height: 1.35;
}

.wxgw-mock__bar {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 9px 12px;
	background: #1d2327;
}

.wxgw-mock__bar > i {
	width: 8px;
	height: 8px;
	border-radius: 99px;
	background: #fb7185;
}

.wxgw-mock__bar > i:nth-child(2) {
	background: #fbbf24;
}

.wxgw-mock__bar > i:nth-child(3) {
	background: #34d399;
}

.wxgw-mock__crumb {
	margin-left: 10px;
	color: #c3c4c7;
	font-size: 11px;
}

.wxgw-mock__crumb b {
	color: #fff;
	font-weight: 600;
}

.wxgw-mock__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 128px;
	gap: 10px;
	padding: 12px;
}

.wxgw-mock__title {
	display: flex;
	align-items: center;
	height: 34px;
	padding: 0 10px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
}

.wxgw-type {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
}

.wxgw-mock[data-stage="1"] .wxgw-type {
	animation: wxgw-typing 1.6s steps(20, end) 0.3s both;
}

@keyframes wxgw-typing {
	from {
		max-width: 0;
	}
	to {
		max-width: 100%;
	}
}

.wxgw-caret {
	display: none;
	width: 1.5px;
	height: 16px;
	margin-left: 1px;
	background: var(--s-900);
	animation: wxgw-twinkle 0.8s steps(2, end) infinite;
}

.wxgw-mock[data-stage="1"] .wxgw-caret {
	display: inline-block;
}

.wxgw-mock__editor {
	display: grid;
	gap: 6px;
	margin: 8px 0;
	padding: 10px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
}

.wxgw-mock__editor i {
	height: 6px;
	border-radius: 4px;
	background: #f0f0f1;
}

.wxgw-mock__editor i:nth-child(2) {
	width: 80%;
}

.wxgw-mock__editor i:nth-child(3) {
	width: 55%;
}

.wxgw-mock__pd {
	overflow: hidden;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
}

.wxgw-mock__pdhead {
	padding: 8px 10px;
	border-bottom: 1px solid #dcdcde;
	font-weight: 600;
}

.wxgw-mock__pdhead em {
	margin-left: 6px;
	padding: 1px 6px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	color: #50575e;
	font-size: 10px;
	font-style: normal;
	font-weight: 400;
}

.wxgw-mock__pdbody {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	min-height: 138px;
}

.wxgw-mock__tabs {
	margin: 0;
	padding: 0;
	border-right: 1px solid #eee;
	background: #fafafa;
	list-style: none;
}

.wxgw-mock__tabs li {
	margin: 0;
	padding: 7px 10px;
	border-bottom: 1px solid #eee;
	color: #2271b1;
	transition: background 0.2s, color 0.2s;
}

.wxgw-mock[data-stage="1"] .wxgw-mock__tabs .is-general,
.wxgw-mock:not([data-stage="1"]) .wxgw-mock__tabs .is-giveaway {
	background: #eee;
	color: #50575e;
	font-weight: 600;
}

.wxgw-mock__pane {
	position: relative;
	padding: 10px 12px;
}

.wxgw-pane {
	display: none;
	animation: wxgw-in 0.35s ease both;
}

.wxgw-mock[data-stage="1"] [data-pane="1"],
.wxgw-mock[data-stage="2"] [data-pane="2"],
.wxgw-mock[data-stage="3"] [data-pane="3"],
.wxgw-mock[data-stage="4"] [data-pane="4"] {
	display: block;
}

.wxgw-pane label {
	display: block;
	margin: 0 0 3px;
	color: #50575e;
	font-size: 10px;
}

.wxgw-field {
	display: flex;
	align-items: center;
	height: 24px;
	margin-bottom: 8px;
	padding: 0 8px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	font-weight: 600;
}

.wxgw-field--empty {
	border-color: #dcdcde;
}

.wxgw-field--date::before {
	content: "";
	width: 9px;
	height: 9px;
	margin-right: 6px;
	border: 1.5px solid #8c8f94;
	border-top-width: 3px;
	border-radius: 2px;
}

.wxgw-two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.wxgw-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	padding: 6px 8px;
	border-radius: 6px;
	font-weight: 600;
}

.wxgw-toggle {
	position: relative;
	width: 30px;
	height: 17px;
	border-radius: 99px;
	background: #c3c4c7;
	transition: background 0.3s;
}

.wxgw-toggle i {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 13px;
	height: 13px;
	border-radius: 99px;
	background: #fff;
	transition: transform 0.3s;
}

.wxgw-mock[data-stage="2"] .wxgw-toggle {
	animation: wxgw-toggle-bg 0.3s ease 0.9s both;
}

.wxgw-mock[data-stage="2"] .wxgw-toggle i {
	animation: wxgw-toggle-dot 0.3s ease 0.9s both;
}

@keyframes wxgw-toggle-bg {
	to {
		background: var(--o-500);
	}
}

@keyframes wxgw-toggle-dot {
	to {
		transform: translateX(13px);
	}
}

.wxgw-mock__side {
	display: grid;
	align-content: start;
	gap: 10px;
}

.wxgw-mock__box {
	display: grid;
	gap: 6px;
	padding: 0 0 10px;
	overflow: hidden;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
}

.wxgw-mock__box > i {
	height: 6px;
	margin: 0 10px;
	border-radius: 4px;
	background: #f0f0f1;
}

.wxgw-mock__boxhead {
	padding: 7px 10px;
	border-bottom: 1px solid #eee;
	font-weight: 600;
}

.wxgw-mock__publish {
	justify-self: end;
	margin: 4px 10px 0;
	padding: 6px 12px;
	border-radius: 4px;
	background: #2271b1;
	color: #fff;
	font-weight: 600;
}

.wxgw-mock__img {
	display: grid;
	place-items: center;
	height: 64px;
	margin: 0 10px;
	border-radius: 6px;
	background: var(--o-500);
	color: #fff;
	font-size: 16px;
}

/* Highlight ring on the active field */
.wxgw-hl {
	position: relative;
	transition: box-shadow 0.25s;
}

.wxgw-mock[data-stage="1"] [data-hl="1"],
.wxgw-mock[data-stage="2"] [data-hl="2"],
.wxgw-mock[data-stage="3"] [data-hl="3"],
.wxgw-mock[data-stage="4"] [data-hl="4"] {
	box-shadow: 0 0 0 2px var(--v-500), 0 0 0 6px rgba(124, 58, 237, 0.18);
	animation: wxgw-ring 1.4s ease-in-out infinite;
}

@keyframes wxgw-ring {
	50% {
		box-shadow: 0 0 0 2px var(--v-500), 0 0 0 9px rgba(124, 58, 237, 0.08);
	}
}

/* Fake cursor */
.wxgw-cursor {
	position: absolute;
	z-index: 3;
	top: 0;
	left: 0;
	width: 24px;
	height: 24px;
	transition: transform 0.9s cubic-bezier(0.5, 0, 0.2, 1);
	pointer-events: none;
}

.wxgw-cursor svg {
	display: block;
	width: 100%;
	height: 100%;
}

.wxgw-mock[data-stage="1"] .wxgw-cursor {
	transform: translate(var(--c1x, 200px), var(--c1y, 60px));
}

.wxgw-mock[data-stage="2"] .wxgw-cursor {
	transform: translate(var(--c2x, 60px), var(--c2y, 220px));
}

.wxgw-mock[data-stage="3"] .wxgw-cursor {
	transform: translate(var(--c3x, 200px), var(--c3y, 210px));
}

.wxgw-mock[data-stage="4"] .wxgw-cursor {
	transform: translate(var(--c4x, 440px), var(--c4y, 110px));
}

.wxgw-mock__progress {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	padding: 0 12px 12px;
}

.wxgw-mock__progress i {
	position: relative;
	height: 4px;
	overflow: hidden;
	border-radius: 9px;
	background: #e4e4e7;
}

.wxgw-mock__progress i::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--v-500);
	transform: scaleX(0);
	transform-origin: left;
}

.wxgw-mock__progress i.is-done::after {
	transform: scaleX(1);
}

.wxgw-mock__progress i.is-active::after {
	animation: wxgw-progress var(--wxgw-stage-ms, 4200ms) linear both;
}

.wxgw-mock.is-paused .wxgw-mock__progress i.is-active::after {
	animation: none;
	transform: scaleX(1);
}

@keyframes wxgw-progress {
	to {
		transform: scaleX(1);
	}
}

/* ---------- Step 3 ---------- */
.wxgw-wa {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
}

.wxgw-wa__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wxgw-wa__num {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.wxgw-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: max-content;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.wxgw-pill--green {
	background: #dcfce7;
	color: #15803d;
}

.wxgw-pill--green::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 99px;
	background: var(--g-500);
}

.wxgw-msg {
	opacity: 0;
	animation: wxgw-msg 9s ease infinite;
}

.wxgw-msg--1 {
	animation-delay: 0.2s;
}

.wxgw-msg--2 {
	animation-delay: 1.2s;
}

.wxgw-msg--3 {
	animation-delay: 2.4s;
}

.wxgw-msg--4 {
	animation-delay: 3.4s;
}

@keyframes wxgw-msg {
	0% {
		opacity: 0;
		transform: translateY(6px);
	}
	6%,
	88% {
		opacity: 1;
		transform: none;
	}
	100% {
		opacity: 0;
	}
}

.wxgw-dot1,
.wxgw-dot2,
.wxgw-dot3 {
	animation: wxgw-dot 1.2s ease-in-out infinite;
}

.wxgw-dot2 {
	animation-delay: 0.15s;
}

.wxgw-dot3 {
	animation-delay: 0.3s;
}

@keyframes wxgw-dot {
	0%,
	60%,
	100% {
		opacity: 0.35;
	}
	30% {
		opacity: 1;
	}
}

/* ---------- Congratulations ---------- */
.wxgw-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 16px;
}

.wxgw-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	animation: wxgw-fade 0.25s ease both;
}

@keyframes wxgw-fade {
	from {
		opacity: 0;
	}
}

.wxgw-modal__card {
	position: relative;
	width: 100%;
	max-width: 560px;
	padding: 36px 32px 32px;
	border-radius: 20px;
	background: #fff;
	text-align: center;
	animation: wxgw-pop 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

@keyframes wxgw-pop {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(10px);
	}
}

.wxgw-modal__card:focus {
	outline: none;
}

.wxgw a:focus,
.wxgw button:focus {
	box-shadow: none;
}

.wxgw-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 999px;
	background: var(--s-100);
	color: var(--s-600);
	cursor: pointer;
}

.wxgw-modal__close:hover {
	background: var(--s-200);
	color: var(--s-900);
}

.wxgw-popper {
	display: block;
	width: 200px;
	height: auto;
	margin: 0 auto 8px;
}

.wxgw-popper__cone {
	transform-box: fill-box;
	transform-origin: 0% 100%;
	animation: wxgw-cone 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) 0.1s both;
}

@keyframes wxgw-cone {
	from {
		transform: rotate(-18deg) scale(0.8);
	}
}

.wxgw-popper__check {
	transform-box: fill-box;
	transform-origin: center;
	animation: wxgw-check 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 0.35s both;
}

@keyframes wxgw-check {
	from {
		opacity: 0;
		transform: scale(0.3);
	}
}

.wxgw-popper__burst {
	transform-box: fill-box;
	transform-origin: 0% 100%;
	animation: wxgw-burst 0.7s ease-out 0.25s both;
}

@keyframes wxgw-burst {
	from {
		opacity: 0;
		transform: scale(0.4);
	}
}

.wxgw-modal__title {
	margin: 0 0 8px;
	padding: 0;
	color: var(--s-900);
	font-size: 36px;
	font-weight: 450;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.wxgw-modal__text {
	margin: 0 0 24px;
	color: var(--s-600);
	font-size: 15px;
}

.wxgw-modal__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.wxgw-confetti {
	position: absolute;
	top: 90px;
	left: 50%;
	width: 0;
	height: 0;
	pointer-events: none;
}

.wxgw-confetti i {
	position: absolute;
	top: 0;
	left: 0;
	width: 8px;
	height: 12px;
	border-radius: 2px;
	background: var(--c, #7c3aed);
	opacity: 0;
}

.wxgw-modal.is-open .wxgw-confetti i {
	animation: wxgw-confetti 1.6s cubic-bezier(0.15, 0.6, 0.35, 1) var(--d, 0s) both;
}

@keyframes wxgw-confetti {
	0% {
		opacity: 1;
		transform: translate(0, 0) rotate(0);
	}
	70% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 360deg));
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.wxgw-panel {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 28px;
	}

	.wxgw-panel__art {
		order: -1;
	}

	.wxgw-art {
		min-height: 0;
	}

	.wxgw-svg {
		max-height: 320px;
	}
}

@media (max-width: 600px) {
	.wxgw {
		margin-top: 16px;
	}

	.wxgw-panel {
		padding: 20px;
	}

	.wxgw-title {
		font-size: 23px;
	}

	.wxgw-step {
		padding: 14px 10px;
		font-size: 14px;
	}

	.wxgw-step__label {
		display: none;
	}

	.wxgw-step.is-active .wxgw-step__label {
		display: inline;
	}

	.wxgw-req {
		flex-wrap: wrap;
	}

	.wxgw-req__btn {
		width: 100%;
	}

	.wxgw-footer {
		flex-wrap: wrap;
	}

	.wxgw-footer__hint {
		order: 3;
		width: 100%;
		text-align: right;
	}

	.wxgw-mock {
		width: calc(100% - 24px);
		margin: 12px;
		font-size: 10px;
	}

	.wxgw-mock__body {
		grid-template-columns: 1fr;
	}

	.wxgw-mock__side {
		display: none;
	}

	.wxgw-modal__card {
		padding: 28px 20px 24px;
	}

	.wxgw-modal__title {
		font-size: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wxgw *,
	.wxgw *::before,
	.wxgw *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.wxgw-msg {
		opacity: 1;
	}
}
