/*!
 * Flow V2 — Desktop Presentation Layer
 * ─────────────────────────────────────────────────────────────────────
 * Version: v68.104-S6.8.2
 * Scope:   EVERY rule lives inside @media (min-width: 769px) and is
 *          prefixed with body.flow-v2-page. The prefix is load-bearing:
 *          stage modules inject their (mobile-first) styles into <head>
 *          AFTER this enqueued file, so equal-specificity desktop
 *          overrides would lose by source order. body.flow-v2-page
 *          (0-2-0) beats the injected single-class rules (0-1-0)
 *          deterministically — no !important arms race.
 *
 * VISUAL SPEC — v1 heritage desktop /checkout/identificacao/ (screenshot
 * 2026-07-07): two columns; FLOW SVG logo top-left; "Olá, informe seu
 * e-mail para finalizar a compra" ~32px; grey inline input + green CTA
 * (~230px) in one row; trust box far below; privacy line; "Compra
 * segura · Flow Brasil" bottom-center; right grey panel with Voltar,
 * Itens (N), product rows, totals, Total a pagar.
 * ───────────────────────────────────────────────────────────────────── */

@media (min-width: 769px) {

	/* ─── Two-column shell ──────────────────────────────────────────── */
	body.flow-v2-page { background: #fff; }
	body.flow-v2-page #fc-v2-cloak {
		background: #fff;
		display: grid;
		grid-template-columns: minmax(0, 1fr) 45%; /* v1 measured: 55/45 */
		grid-template-rows: auto 1fr auto;
		min-height: 100vh;
	}
	body.flow-v2-page .fc-v2-header         { grid-column: 1; grid-row: 1; }
	body.flow-v2-page #fc-v2-root           { grid-column: 1; grid-row: 2; }
	body.flow-v2-page #fc-v2-pagamento-zone { grid-column: 1; grid-row: 3; }
	body.flow-v2-page .fc-v2-desk-summary   { grid-column: 2; grid-row: 1 / span 3; }
	body.flow-v2-page .fc-v2-desk-secure    { grid-column: 1; grid-row: 3; }

	/* ─── Header: v1 SVG logo only, no divider, no cart pill ──────────
	 * S6.19.1 (Eduardo): cart icon/total do NOT belong on the desktop
	 * CHECKOUT steps — the side cart lives on catalog/product/category
	 * pages only (their templates show the header cart by default; the
	 * sidecart module's desktop gate stays open to serve them). */
	body.flow-v2-page .fc-v2-header {
		padding: 40px 0 0 clamp(48px, 10.6vw, 200px);
		background: #fff;
		border: none;
		box-shadow: none;
	}
	body.flow-v2-page .fc-v2-header-cart { display: none; }
	body.flow-v2-page .fc-v2-logo-mobile { display: none; }
	body.flow-v2-page .fc-v2-logo-desktop { display: inline-block; line-height: 0; }
	body.flow-v2-page .fc-v2-logo-desktop svg { width: 160px; height: auto; }

	/* ─── Left column: content well ─────────────────────────────────── */
	body.flow-v2-page #fc-v2-root {
		width: auto;
		max-width: none; /* border-box: width cap lives on the content below */
		padding: 0 48px 0 clamp(48px, 10.6vw, 200px);
		background: #fff;
	}

	/* ─── Stage 1A — desktop restyle of the SAME mobile DOM ─────────── */
	body.flow-v2-page .fc-v2-sov-1a { min-height: auto; }
	body.flow-v2-page .fc-v2-sov-1a-content {
		padding: clamp(58px, 7.5vh, 92px) 0 24px; /* v1 measured: title Y=199 */
		max-width: 649px;                          /* v1 measured content well */
	}
	body.flow-v2-page .fc-v2-sov-1a-title {
		font-size: 32px;
		font-weight: 300;
		letter-spacing: normal;
		line-height: 40px;
		color: #1a1a1a;
		max-width: 560px;
		margin: 0 0 34px;
	}
	/* Inline island: grey input + green CTA in ONE row (v1 pattern) */
	body.flow-v2-page .fc-v2-sov-1a-island {
		flex-direction: row;
		gap: 6px;
		align-items: stretch;
	}
	body.flow-v2-page .fc-v2-sov-1a-input {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		height: 48px;
		background: #f3f4f6;
		border: 1px solid #f3f4f6;
		border-radius: 5px;
		font-size: 14px;
		padding: 0 16px;
	}
	body.flow-v2-page .fc-v2-sov-1a-input:focus {
		background: #fff;
		border-color: #5B5B5B;
	}
	body.flow-v2-page .fc-v2-sov-1a-cta {
		flex: 0 0 191px;
		width: 191px;
		height: 48px;
		border-radius: 5px;
		font-size: 14px;
		font-weight: 500;
		letter-spacing: normal;
	}
	/* Trust box: generous gap below the island, column-wide, left-aligned */
	body.flow-v2-page .fc-v2-sov-1a-trust {
		max-width: none;
		width: 100%;
		margin: 138px 0 0;
		background: #f8faf8;          /* v1 measured: green-tinted */
		border: 1px solid #e8f0e8;    /* v1 measured: green-tinted hairline */
		border-radius: 8px;
		padding: 16px 20px;
		box-sizing: border-box;
	}
	body.flow-v2-page .fc-v2-sov-1a-trust-title { font-size: 13px; color: #1a1a1a; margin: 0 0 10px; }
	body.flow-v2-page .fc-v2-sov-1a-trust-list li {
		font-size: 12px;
		font-weight: 400;
		color: #666;
		line-height: 16px;
		margin: 0 0 6px;
		padding-left: 24px; /* 16px icon + 8px gap (v1 measured) */
	}
	body.flow-v2-page .fc-v2-sov-1a-trust-list li::before {
		content: "";
		width: 16px;
		height: 16px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%235caa6a'/%3E%3Cpath d='M8 12l3 3 5-5' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
		border-radius: 0;
		top: 0;
	}
	body.flow-v2-page .fc-v2-sov-1a-privacy {
		max-width: none;
		margin: 14px 0 0;
		font-size: 11px;
		color: #999;
		text-align: left;
	}
	body.flow-v2-page .fc-v2-sov-1a-privacy a { color: #5caa6a; font-weight: 500; }
	/* Mobile-only affordances off on desktop */
	body.flow-v2-page .fc-v2-sov-1a-back { display: none; }

	/* ─── Stage 1B — Olá fork (v1 #fc-screen2 mimic, measured @1878) ── */
	body.flow-v2-page .fc-v2-sov-1b { min-height: auto; }
	body.flow-v2-page .fc-v2-sov-1b-content {
		padding: clamp(58px, 7.5vh, 92px) 0 24px; /* v1: greeting Y=199, same as 1A title */
		max-width: 649px;                          /* v1 content well */
		min-height: auto;
	}
	body.flow-v2-page .fc-v2-sov-1b-title {
		font-size: 32px;      /* v1 .fc-screen2-greeting: 32/300 #1a1a1a */
		font-weight: 300;
		letter-spacing: normal;
		line-height: 38px;
		color: #1a1a1a;
		margin: 0 0 4px;      /* v1: greeting→email gap 4px */
	}
	body.flow-v2-page .fc-v2-sov-1b-email {
		font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
		font-size: 18px;      /* v1 .fc-screen2-email: 18/500 #1a1a1a */
		font-weight: 500;
		color: #1a1a1a;
		line-height: 27px;
		margin: 0 0 28px;     /* v1: email→CTA gap 28px */
	}
	body.flow-v2-page .fc-v2-sov-1b-cta-green {
		width: 100%;          /* v1: full 649px content well */
		height: 52px;
		border-radius: 5px;
		font-size: 16px;      /* v1: 16/500, no letter-spacing */
		font-weight: 500;
		letter-spacing: normal;
	}
	body.flow-v2-page .fc-v2-sov-1b-cta-green:hover { background: #4e9a5c; }
	/* Fast-flow fork (renders only when cep-rapido ships — pre-styled to v1) */
	body.flow-v2-page .fc-v2-sov-1b-divider {
		width: 324px;         /* v1 .fc-mp-divider: half well */
		margin: 32px 0 0;     /* v1: CTA→express gap 32px */
		font-size: 10.8px;    /* v1 measured */
		color: #555;
		text-transform: none;
	}
	body.flow-v2-page .fc-v2-sov-1b-divider::before,
	body.flow-v2-page .fc-v2-sov-1b-divider::after { background: #aaa; } /* v1 hairlines */
	body.flow-v2-page .fc-v2-sov-1b-cta-mp {
		width: 324px;         /* v1 #fc-mp-btn: 324×48 */
		height: 48px;
		border-radius: 5px;
		font-size: 15px;      /* v1: 15/600 */
		font-weight: 600;
		letter-spacing: normal;
		gap: 10px;            /* v1 measured */
		margin-top: 33px;     /* v1: divider→button gap 33px */
	}
	body.flow-v2-page .fc-v2-sov-1b-cta-mp:hover { background: #0086c7; }
	body.flow-v2-page .fc-v2-sov-1b-cta-mp svg { width: 28px; height: 28px; } /* v1 logo size */
	/* v1 desktop left column has no bottom Voltar (panel owns back-nav) */
	body.flow-v2-page .fc-v2-sov-1b-spacer,
	body.flow-v2-page .fc-v2-sov-1b-footer { display: none; }

	/* ─── "Compra segura · Flow Brasil" (bottom of left column) ─────── */
	body.flow-v2-page .fc-v2-desk-secure {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 28px 48px 36px clamp(48px, 10.6vw, 200px);
		font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
		font-size: 13px;
		color: #555;
		background: #fff;
		max-width: none;
	}
	body.flow-v2-page .fc-v2-desk-secure svg { width: 16px; height: 16px; color: #2e7d32; flex-shrink: 0; }
	body.flow-v2-page .fc-v2-desk-secure strong { font-weight: 600; color: #222; }

	/* ─── Right column: order summary panel ─────────────────────────── */
	body.flow-v2-page .fc-v2-desk-summary {
		background: #f9fafb; /* v1 measured: rgb(249,250,251) */
		border-left: none;
		box-shadow: none;    /* v1 measured: no border, no shadow — bg contrast only */
		/* v1 measured (.fc-sidebar computed style): ASYMMETRIC and FIXED —
		 * padding: 40px 220px 40px 48px. Content well = 577px @1878 viewport.
		 * v1 does NOT scale these; exact mimic, no fluid interpretation. */
		padding: 40px 220px 40px 48px;
		box-sizing: border-box;
		font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
	}
	body.flow-v2-page .fc-v2-desk-back {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		background: none;
		border: none;
		cursor: pointer;
		font-family: inherit;
		font-size: 15px;
		font-weight: 500;
		color: #333;
		padding: 4px 0;
		margin: 0 0 64px;
	}
	body.flow-v2-page .fc-v2-desk-back:hover { opacity: 0.65; }
	body.flow-v2-page .fc-v2-desk-back svg { width: 15px; height: 15px; stroke-width: 2.4; }
	/* S6.8.2 — replaces the removed "Itens (N)" heading: same 44px of
	 * vertical space (22px text box + 22px margin), zero layout shift. */
	body.flow-v2-page .fc-v2-desk-spacer { height: 44px; }
	/* S6.13.2/S6.19.3 — benefício: parens dropped, label AND value BOLD,
	 * always (Eduardo: "sempre !!"). */
	body.flow-v2-page .fc-v2-desk-line.is-benefit span { font-weight: 700; }
	/* S6.13.0 — com-juros installment disclosure under Total a pagar */
	body.flow-v2-page .fc-v2-desk-parcelas {
		font-size: 12px;
		font-weight: 400;
		color: #666;
		text-align: right;
		margin: 6px 0 0;
	}
	body.flow-v2-page .fc-v2-desk-item {
		display: flex;
		gap: 16px;
		align-items: flex-start;
		padding: 0 0 24px;
		border-bottom: 1px solid #e5e5e6;
		margin: 0 0 20px;
	}
	body.flow-v2-page .fc-v2-desk-item-img {
		flex: 0 0 72px;    /* v1 measured: 72x90 */
		width: 72px;
		height: 90px;
		object-fit: cover;
		border-radius: 4px;
		background: #eee;
	}
	body.flow-v2-page .fc-v2-desk-item-mid { flex: 1 1 auto; min-width: 0; }
	body.flow-v2-page .fc-v2-desk-item-name {
		font-size: 14px;   /* v1 measured */
		font-weight: 500;
		color: #1a1a1a;
		margin: 0 0 5px;
		line-height: 1.35;
	}
	body.flow-v2-page .fc-v2-desk-item-qty { font-size: 13px; font-weight: 300; color: #6d717f; }
	body.flow-v2-page .fc-v2-desk-item-qty strong { color: #222; font-weight: 600; }
	body.flow-v2-page .fc-v2-desk-item-price {
		flex-shrink: 0;
		font-size: 14px;   /* v1 measured */
		font-weight: 500;
		color: #000;
		white-space: nowrap;
	}
	body.flow-v2-page .fc-v2-desk-line {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		font-size: 14px;
		font-weight: 400;
		color: #6d717f;    /* v1 measured: grey labels */
		margin: 0 0 14px;
	}
	body.flow-v2-page .fc-v2-desk-line-value { font-weight: 500; color: #000; } /* v1 measured */
	body.flow-v2-page .fc-v2-desk-line-value.is-discount { font-size: 13px; font-weight: 400; color: #b14242; } /* v1 measured */
	body.flow-v2-page .fc-v2-desk-line.is-benefit { color: #2d5a47; font-weight: 500; } /* v1 measured */
	body.flow-v2-page .fc-v2-desk-line.is-benefit .fc-v2-desk-line-value { color: #2d5a47; font-weight: 400; }
	body.flow-v2-page .fc-v2-desk-line.is-benefit {
		border-top: 1px solid #e8e8e9;
		padding-top: 18px;
		margin-top: 6px;
		margin-bottom: 18px;
	}
	body.flow-v2-page .fc-v2-desk-total {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		border-top: 1px solid #d2d5db;
		padding: 20px 0 0;
		margin: 20px 0 0;
	}
	body.flow-v2-page .fc-v2-desk-total-label { font-size: 17px; font-weight: 700; color: #000; }
	body.flow-v2-page .fc-v2-desk-total-value { font-size: 17px; font-weight: 500; color: #000; } /* v1 measured: value lighter than label */
}

/* ─── Mobile: desktop companions do not exist ─────────────────────── */
@media (max-width: 768px) {
	body.flow-v2-page .fc-v2-desk-summary,
	body.flow-v2-page .fc-v2-desk-secure { display: none !important; }
	/* S6.16.1 (Eduardo, 2026-07-08): the v1 FLOW logo now shows on MOBILE
	 * V2 too — same inline SVG element the desktop slot carries, sized to
	 * v1 mobile's measured 112px (.fc-mob-logo svg). The old WP-custom-
	 * logo/text mobile slot is retired below. */
	body.flow-v2-page .fc-v2-logo-desktop { display: inline-block !important; line-height: 0; }
	body.flow-v2-page .fc-v2-logo-desktop svg { width: 112px; height: auto; }
	body.flow-v2-page .fc-v2-logo-mobile { display: none !important; }
}
