/* Wire 3 Buy Flow — wizard styles. References the wire3 theme.json tokens
   (--wp--preset-* / --wp--custom-*). Enqueued only on /buy/. */

/* Progress rail */
.w3buy-rail {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	counter-reset: step;
	flex-wrap: wrap;
}
.w3buy-rail li {
	flex: 1 1 0;
	min-width: 80px;
	font-family: var(--wp--preset--font-family--dm-sans);
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--wp--preset--color--grey-mid);
	padding-top: 12px;
	border-top: 3px solid var(--wp--preset--color--grey-lt);
	counter-increment: step;
}
.w3buy-rail li::before {
	content: counter(step) ". ";
}
.w3buy-rail li.is-active {
	color: var(--wp--preset--color--navy);
	border-top-color: var(--wp--preset--color--blue);
}
.w3buy-rail li.is-done {
	color: var(--wp--preset--color--green-dk);
	border-top-color: var(--wp--preset--color--green);
}

.w3buy-step > h2 {
	margin-bottom: 6px;
}
.w3buy-step > p.w3buy-sub {
	color: var(--wp--preset--color--grey-dk);
	margin-top: 0;
}

/* Gate form reuses the lead-form field styles; light card wrapper */
.w3buy-gate {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--grey-lt);
	border-radius: var(--wp--custom--radius);
	box-shadow: var(--wp--custom--shadow);
	padding: clamp(20px, 4vw, 32px);
	margin-top: 18px;
}
.w3buy-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; }
.w3buy-field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.w3buy-field--zip { flex: 0 1 120px; }
.w3buy label { font-family: var(--wp--preset--font-family--dm-sans); font-weight: 600; font-size: 0.85rem; color: var(--wp--preset--color--grey-dk); }
.w3buy input[type="text"],
.w3buy input[type="email"],
.w3buy input[type="tel"] {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 1rem;
	color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--off-white);
	border: 1.5px solid var(--wp--preset--color--grey-lt);
	border-radius: var(--wp--custom--radius-sm);
	padding: 12px 14px;
	width: 100%;
	box-sizing: border-box;
}
.w3buy input:focus { outline: none; border-color: var(--wp--preset--color--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--blue) 18%, transparent); }
.w3buy-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--wp--preset--color--grey-dk); }
.w3buy-consent input { width: auto; margin-top: 3px; }
.w3buy-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Plan tiles — the SHARED w3buy speed-carousel card (.sp-card), shown statically
   like the live buyflow's .pe-static. The card look (gradient ring + pill on the
   popular tier, blue-border + green-wash on the selected tier) comes entirely from
   the theme's bundled wire3-shared CSS; this only lays them out + undoes the
   carousel's resting fade. */
.w3buy-plans {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	align-items: stretch;
	margin: 22px 0 24px;
}
.w3buy-plans .sp-card {
	flex: 0 0 auto;
	width: 100%;
	display: flex;
	flex-direction: column;
	opacity: 1;
	transform: none;
}
.w3buy-plans .sp-card:hover:not(.is-selected) {
	opacity: 1;
	border-color: var(--navy-mid);
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(13, 34, 64, 0.12);
}
.w3buy-plans .sp-card.is-popular:hover:not(.is-selected)::before { opacity: 0; }
.w3buy-plans .wire3-term { font-size: 0.76rem; color: var(--grey-mid); margin: 4px 0 2px; }
.w3buy-plans .sp-card .sp-select { margin-top: auto; }
@media (max-width: 900px) { .w3buy-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .w3buy-plans { grid-template-columns: 1fr; } }

/* Service-tier cards (Install step) — stacked, radio-style */
.w3buy-tiers { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 24px; }
.w3buy-tier {
	position: relative;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--grey-lt);
	border-radius: var(--wp--custom--radius);
	box-shadow: var(--wp--custom--shadow);
	padding: 18px 20px;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--dm-sans);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.w3buy-tier:hover { border-color: var(--wp--preset--color--grey-mid); }
.w3buy-tier.is-popular { border-color: var(--wp--preset--color--green); }
.w3buy-tier.is-selected { border-color: var(--wp--preset--color--blue); box-shadow: var(--wp--custom--shadow-lg); }
.w3buy-tier__flag {
	position: absolute; top: -11px; left: 20px;
	background: var(--wp--preset--color--green); color: var(--wp--preset--color--navy);
	font-weight: 700; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 999px;
}
.w3buy-tier__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.w3buy-tier__name { font-weight: 800; font-size: 1.1rem; color: var(--wp--preset--color--navy); letter-spacing: -0.01em; }
.w3buy-tier__price { font-weight: 800; color: var(--wp--preset--color--green-dk); white-space: nowrap; }
.w3buy-tier__blurb { font-size: 0.9rem; color: var(--wp--preset--color--grey-dk); }

.w3buy select.w3buy-slot {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 1rem;
	color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--off-white);
	border: 1.5px solid var(--wp--preset--color--grey-lt);
	border-radius: var(--wp--custom--radius-sm);
	padding: 12px 14px;
	width: 100%;
	box-sizing: border-box;
}

/* Review summary */
.w3buy-summary { margin: 18px 0; display: flex; flex-direction: column; gap: 0; }
.w3buy-summary > div {
	display: flex; justify-content: space-between; gap: 16px;
	padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--grey-lt);
}
.w3buy-summary dt { margin: 0; font-weight: 600; color: var(--wp--preset--color--grey-dk); }
.w3buy-summary dd { margin: 0; font-weight: 700; color: var(--wp--preset--color--navy); text-align: right; }
.w3buy-fine { font-size: 0.85rem; color: var(--wp--preset--color--grey-dk); }

/* Actions */
.w3buy-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.w3buy button.w3buy-next, .w3buy button.w3buy-place, .w3buy-gate button[type="submit"] {
	font-family: var(--wp--preset--font-family--dm-sans); font-weight: 700; font-size: 1rem;
	color: var(--wp--preset--color--navy); background: var(--wp--preset--color--green);
	border: 0; border-radius: var(--wp--custom--radius-sm); padding: 14px 22px; cursor: pointer;
	transition: filter 0.15s ease, transform 0.1s ease;
}
.w3buy button.w3buy-next:hover:not(:disabled), .w3buy button.w3buy-place:hover:not(:disabled), .w3buy-gate button[type="submit"]:hover:not(:disabled) { filter: brightness(0.93); transform: translateY(-1px); }
.w3buy button:disabled { opacity: 0.55; cursor: not-allowed; }
.w3buy button.w3buy-back {
	font-family: var(--wp--preset--font-family--dm-sans); font-weight: 700; font-size: 1rem;
	color: var(--wp--preset--color--grey-dk); background: transparent;
	border: 1.5px solid var(--wp--preset--color--grey-lt); border-radius: var(--wp--custom--radius-sm);
	padding: 14px 22px; cursor: pointer;
}

/* Status */
.w3buy-status { margin: 4px 0 0; font-weight: 600; font-size: 0.9rem; }
.w3buy-status.is-ok { color: var(--wp--preset--color--green-dk); }
.w3buy-status.is-err { color: var(--wp--preset--color--red); }

/* Finish */
.w3buy-finish { text-align: center; padding: 24px 0; }
.w3buy-check {
	width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
	background: var(--wp--preset--color--green); color: var(--wp--preset--color--navy);
	font-size: 34px; line-height: 64px; font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
	.w3buy-plans .sp-card:hover, .w3buy-tier:hover,
	.w3buy button.w3buy-next:hover, .w3buy button.w3buy-place:hover,
	.w3buy-gate button[type="submit"]:hover { transform: none !important; }
}

/* ════════ Gate-in-hero (matches the live buyflow landing) ════════
   The address gate lives in the eero navy .hero; the "Fiber done honestly"
   value-band sits beneath it. Both show ONLY on the gate step; the wizard
   (plan…finish) shows only after. Toggled purely by buy.js's data-step. */
.w3buy[data-step="gate"] .w3buy-wizard { display: none; }
.w3buy:not([data-step="gate"]) .w3buy-gatehero,
.w3buy:not([data-step="gate"]) .w3buy-why { display: none; }

.w3buy-gatehero .hero-inner { max-width: 720px; }
.w3buy-kick { display: inline-block; color: var(--green); font-family: var(--font-head);
	font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 12px; }
.w3buy-gatehero .w3buy-step { margin: 26px auto 0; max-width: 560px; text-align: left; }
.w3buy-gatehero .w3buy-step > h2, .w3buy-gatehero .w3buy-sub { display: none; } /* the hero h1/sub carry the heading */
.w3buy-gatehero .w3buy-gate { display: flex; flex-direction: column; gap: 14px;
	background: transparent; border: 0; box-shadow: none; padding: 0; margin-top: 0; }
.w3buy-gatehero .w3buy-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; }
.w3buy-gatehero .w3buy-field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.w3buy-gatehero .w3buy-field--zip { flex: 0 1 120px; }
.w3buy-gatehero label { color: rgba(255, 255, 255, 0.82); font-family: var(--font-head); font-weight: 600; font-size: 0.84rem; }
.w3buy-gatehero input[type="text"],
.w3buy-gatehero input[type="email"],
.w3buy-gatehero input[type="tel"] {
	background: #fff; border: 1.5px solid transparent; border-radius: 12px; padding: 13px 15px;
	font-family: var(--font-body); font-size: 1rem; color: var(--navy); width: 100%; box-sizing: border-box;
	transition: box-shadow 0.15s ease;
}
.w3buy-gatehero input:focus { outline: none; box-shadow: 0 0 0 3px rgba(125, 196, 0, 0.5); }
.w3buy-gatehero .w3buy-consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.w3buy-gatehero .w3buy-consent span { color: rgba(255, 255, 255, 0.78); font-size: 0.86rem; line-height: 1.4; }
.w3buy-gatehero button[type="submit"] {
	margin-top: 4px; background: var(--green); color: var(--navy); border: 0; border-radius: 12px;
	padding: 15px 22px; font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; cursor: pointer;
	transition: filter 0.15s ease, transform 0.1s ease;
}
.w3buy-gatehero button[type="submit"]:hover { filter: brightness(0.94); transform: translateY(-1px); }
.w3buy-gatehero .w3buy-status { color: #fff; font-weight: 600; margin: 2px 0 0; min-height: 1.2em; }
.w3buy-gatehero .w3buy-status.is-err { color: #FFD7D7; }

/* The wizard (post-gate) — constrained, centred, on the page bg. */
.w3buy-wizard { max-width: 920px; margin: 0 auto; padding: 46px 24px 72px; }
