/*
 * Registration animation editor (campaign screen): tabs, field column left, live slide right.
 * The slide itself is styled by inc/lp/css/wi-reg-hero.css — this file only lays out the editor.
 */
.wi-anim {
	max-width: 1180px;
	margin: 14px 0 22px;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.wi-anim__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid #f0f0f1;
	background: #fafafa;
}

.wi-anim__tabs {
	display: inline-flex;
	gap: 4px;
	padding: 3px;
	border-radius: 999px;
	background: #f0f0f1;
}

.wi-anim__tab {
	border: 0;
	background: transparent;
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #50575e;
	cursor: pointer;
}

.wi-anim__tab.is-active {
	background: #fff;
	color: #1d2327;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.wi-anim__notice {
	margin: 0;
	font-size: 12px;
	color: #6b5c50;
}

.wi-anim__notice .button {
	margin-left: 8px;
}

.wi-anim__body {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
	gap: 18px;
	padding: 16px;
	align-items: start;
}

.wi-anim__fields {
	min-width: 0;
}

.wi-anim__pane {
	display: none;
	flex-direction: column;
	gap: 12px;
}

.wi-anim__pane.is-active {
	display: flex;
}

.wi-anim__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wi-anim__label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #1d2327;
}

.wi-anim__chip {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 10px;
	font-weight: 400;
	color: #8a6d3b;
	background: #fcf3e3;
	border: 1px solid #f0dfc0;
	border-radius: 4px;
	padding: 0 4px;
}

.wi-anim__input {
	width: 100%;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	padding: 7px 9px;
	font-size: 13px;
	line-height: 1.4;
}

.wi-anim__input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: 0;
}

.wi-anim__photo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wi-anim__photo img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.wi-anim__help {
	font-size: 11px;
	color: #646970;
}

.wi-anim__preview {
	position: sticky;
	top: 40px;
	min-width: 0;
}

/* The preview simulates a page text size of 17px. The PAGE itself never uses px:
   wi-reg-hero.css takes its base font from the page (font-size: 1em). */
.wi-anim__hero.wi-reg-hero {
	font-size: 17px;
	max-width: 100%;
	/* The admin has no FSE roles, so the preview emulates a light page. These tokens ONLY
	   apply inside the preview; the page itself keeps reading --wi-fse-* and the presets. */
	--rh-ink: #191919;
	--rh-ink-dim: #5f5f5f;
	--rh-surface: #ffffff;
	--rh-bg: #f1eee9;
	--rh-bg-2: #f8f7f5;
	--rh-cta-bg: #191919;
	--rh-cta-ink: #f8f7f5;
	--rh-accent: #f5b684;
	--rh-accent-ink: #111111;
}

.wi-anim__hero .wi-reg-hero__slide[data-wi-empty] {
	display: none;
}

.wi-anim__hidden,
.wi-anim [data-wi-empty="1"] {
	display: none !important;
}

.wi-anim__hero .wi-reg-hero__viewport {
	min-height: 0;
	padding-bottom: 34px;
}

.wi-anim__hero .wi-reg-hero__slide {
	gap: .7em;
}

.wi-anim__hero .wi-rh-benefits li,
.wi-anim__hero .wi-rh-recap li {
	list-style: none;
}

.wi-anim__hero .wi-rh-cta .wp-block-button__link {
	cursor: default;
}

@media (max-width: 960px) {
	.wi-anim__body {
		grid-template-columns: 1fr;
	}

	.wi-anim__preview {
		position: static;
	}
}
