/*
 * The company's page and widget (/w/:key, /embed/:key). Only the platform's tokens (app.css) are used, so the company's palette
 * (the page overrides --brand and friends) recolors everything. The chat fills the window: the iframe of the widget, or the
 * whole screen of a phone that scanned the QR code. On a wide screen the company's own page is the same chat in one column in the
 * middle. There is no bar of tabs: the header has the few places a visitor may want (Nossa história, Sobre, Histórico) and the
 * opening of an empty conversation (headline, four ways to start, the catalog) is the home.
 *
 * The look: the company's color and logo lead, the assistant speaks as the company (its logo is the avatar), and everything a
 * visitor can touch (a way to start, an item, an action) is a card with a photo or an icon, never a bare outlined button.
 */
@layer components {
	html, body.widget { height: 100%; margin: 0; }
	body.widget { background: var(--bg); color: var(--ink); font-family: var(--font-sans); }
	.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

	.wmain { display: block; height: 100%; }
	.wchat {
		/* Shadows of the cards, and the mark of the assistant: the company's logo (set by the page) or a spark on the brand color. */
		--w-card: 0 1px 2px rgb(16 24 40 / 0.05), 0 10px 24px -14px rgb(16 24 40 / 0.24);
		--w-lift: 0 2px 4px rgb(16 24 40 / 0.06), 0 20px 36px -18px rgb(16 24 40 / 0.4);
		--w-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M11 2.5l2.2 6.3 6.3 2.2-6.3 2.2L11 19.5l-2.2-6.3L2.5 11l6.3-2.2z'/%3E%3Cpath fill='white' opacity='.85' d='M19 14.5l.9 2.6 2.6.9-2.6.9-.9 2.6-.9-2.6-2.6-.9 2.6-.9z'/%3E%3C/svg%3E");
		--wlogo: var(--w-spark);
		--wlogo-size: 58%;
		/* The paper of the chat is the page color of the company with a breath of its brand; hairlines and tints follow the same color. */
		--w-paper: color-mix(in srgb, var(--brand) 4%, var(--bg));
		--w-tint: color-mix(in srgb, var(--brand) 11%, var(--w-paper));
		--w-hair: color-mix(in srgb, var(--brand) 10%, var(--line));
		--gx: 1rem;
		/* The display face has old-style figures by default; prices, years and areas read better lined up. */
		font-variant-numeric: lining-nums;
		position: relative; display: flex; flex-direction: column; height: 100%; height: 100dvh; max-width: 44rem; margin: 0 auto; overflow: hidden; background: var(--w-paper);
	}
	.wchat-main { position: relative; display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
	/* On a wide screen the company's page is one column in the middle, on a tint of its color; the header already says who the company is. */
	@media (min-width: 46rem) {
		body.widget-page { background: color-mix(in srgb, var(--brand) 7%, var(--surface-2)); }
		body.widget-page .wchat { --gx: 1.75rem; box-shadow: 0 0 0 1px var(--w-hair), 0 24px 60px -30px rgb(0 0 0 / 0.35); }
		.wchat[data-mode='page'] .wchat-top { padding-top: 1.4rem; }
		.wchat[data-mode='page'] .wchat-title h1 { font-size: 1.5rem; }
		.wchat[data-mode='page'] .wchat-title p { font-size: 0.56rem; }
		.wchat[data-mode='page'] .wchat-avatar { width: 2.9rem; height: 2.9rem; }
		.wchat[data-mode='page'] .wchat-act { width: 4.1rem; }
		.wchat[data-mode='page'] .wchat-photo { width: 66%; height: 18.75rem; }
		.wchat[data-mode='page'] .wchat-photo.is-cover { width: 62%; height: 26rem; }
		.wchat[data-mode='page'] .wchat-hero-title { max-width: 13em; font-size: 2.25rem; }
		.wchat[data-mode='page'] .wchat-lead { max-width: 28em; font-size: 0.97rem; }
		.wchat[data-mode='page'] .wchat-ways { grid-template-columns: repeat(4, minmax(0, 1fr)); }
		.wchat[data-mode='page'] .wchat-way { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0.5rem; min-height: 6.75rem; }
		.wchat[data-mode='page'] .wchat-rail .wchat-item { flex-basis: 12.9rem; }
		.wchat[data-mode='page'] .wchat-turn[data-from='assistant'] > span:first-child { max-width: min(100%, 40rem); }
	}
	body.widget-embed .wchat { max-width: none; }
	.wchat-empty { justify-content: center; padding: 2rem 1.5rem; text-align: center; }
	.wchat-empty h1 { font-size: 1.4rem; }
	.wchat-empty p { color: var(--muted); }

	/* The door of a private chat: the company's header and the place to type the code. */
	.wchat-lock .wchat-main { justify-content: flex-start; }
	.wlock { display: grid; align-content: start; gap: 0.75rem; padding: 2rem 1.5rem; }
	.wlock h2 { margin: 0; font-size: 1.25rem; }
	.wlock p { margin: 0; color: var(--muted); }
	.wlock .field-error { color: var(--danger); }
	.wlock-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 0.5rem; }
	.wlock-form .input { width: 100%; box-sizing: border-box; }

	/* Icons drawn by the CSS (a mask over the text color), so a button keeps its label as its only text. `--i` is set per icon below. */
	.wchat-ico { display: inline-block; flex: none; width: 1.1rem; height: 1.1rem; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
	[data-ico='grid'], [data-kind='grid'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
	[data-ico='calendar'], [data-kind='calendar'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2.5'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
	[data-ico='help'], [data-kind='help'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.2a2.7 2.7 0 0 1 5.1 1.2c0 1.8-2.6 2.2-2.6 3.8M12 17.2h.01'/%3E%3C/svg%3E"); }
	[data-ico='person'], [data-kind='person'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6.5 8-6.5s8 2.5 8 6.5'/%3E%3C/svg%3E"); }
	[data-ico='tag'], [data-kind='tag'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12.2V4a1 1 0 0 1 1-1h8.2a1 1 0 0 1 .7.3l8 8a1 1 0 0 1 0 1.4l-8.2 8.2a1 1 0 0 1-1.4 0l-8-8a1 1 0 0 1-.3-.7z'/%3E%3Ccircle cx='8' cy='8' r='1.4'/%3E%3C/svg%3E"); }
	[data-ico='spark'], [data-kind='spark'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3l1.9 5.1L18 10l-5.1 1.9L11 17l-1.9-5.1L4 10l5.1-1.9z'/%3E%3Cpath d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z'/%3E%3C/svg%3E"); }
	[data-ico='pin'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.6 7-11a7 7 0 0 0-14 0c0 5.4 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
	[data-ico='clock'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
	[data-ico='home'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
	[data-ico='key'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='m11 12 9-9M16 7l3 3M14 9l2 2'/%3E%3C/svg%3E"); }
	[data-ico='file'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
	[data-ico='alert'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E"); }
	[data-ico='compare'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='12' height='12' rx='2'/%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3C/svg%3E"); }
	[data-ico='tree'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-6'/%3E%3Cpath d='M12 16a6 6 0 0 0 4.5-10A5 5 0 0 0 7.5 6 6 6 0 0 0 12 16z'/%3E%3C/svg%3E"); }
	[data-ico='bed'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18V7M3 14h18v4M21 18v-5a3 3 0 0 0-3-3h-7v4'/%3E%3Ccircle cx='7' cy='11' r='1.6'/%3E%3C/svg%3E"); }
	[data-ico='car'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l1.6-4.8A2 2 0 0 1 8.5 7h7a2 2 0 0 1 1.9 1.2L19 13'/%3E%3Crect x='3' y='13' width='18' height='5' rx='1.5'/%3E%3Cpath d='M6 18v2M18 18v2M7 15.5h.01M17 15.5h.01'/%3E%3C/svg%3E"); }
	[data-ico='search'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
	[data-ico='receipt'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 7h6M9 11h6'/%3E%3C/svg%3E"); }
	[data-ico='chat'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
	[data-ico='chart'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='14' width='4' height='6' rx='0.5'/%3E%3Crect x='10' y='9' width='4' height='11' rx='0.5'/%3E%3Crect x='17' y='4' width='4' height='16' rx='0.5'/%3E%3C/svg%3E"); }
	[data-ico='compass'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15.5 8.5-2 5-5 2 2-5z'/%3E%3C/svg%3E"); }
	[data-ico='suitcase'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 13h18'/%3E%3C/svg%3E"); }
	[data-ico='umbrella'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 18 0z'/%3E%3Cpath d='M12 12v6a2 2 0 0 0 4 0'/%3E%3C/svg%3E"); }
	[data-ico='people'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14.2a6.5 6.5 0 0 1 3.5 5.8'/%3E%3C/svg%3E"); }
	[data-ico='paw'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='10' r='1.6'/%3E%3Ccircle cx='11' cy='6.5' r='1.6'/%3E%3Ccircle cx='16' cy='7' r='1.6'/%3E%3Ccircle cx='19' cy='11.5' r='1.6'/%3E%3Cpath d='M12 12c-3 0-5.5 3-5.5 5.2 0 1.6 1.4 2.3 3 2 1-.2 1.7-.5 2.5-.5s1.5.3 2.5.5c1.6.3 3-.4 3-2C17.5 15 15 12 12 12z'/%3E%3C/svg%3E"); }
	[data-ico='leaf'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-9 5-14 15-14 0 10-5 15-14 15'/%3E%3Cpath d='M5 19c3-4 6-6 10-8'/%3E%3C/svg%3E"); }

	/* Header: the company's logo and name (the opening has its photo behind it) and the few places a visitor may want besides talking. On the
	   opening the places carry their name; in a conversation (and in the frame of another site) only the circle stays. */
	.wchat-top { position: relative; z-index: 2; flex: none; padding: 0.75rem var(--gx) 0; }
	.wchat-head { display: flex; align-items: flex-start; gap: 0.55rem; }
	.wchat-avatar { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; overflow: hidden; border-radius: 0.7rem; background: var(--surface); color: var(--brand); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; box-shadow: var(--w-card); }
	.wchat-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
	.wchat-avatar-lg { width: 3.8rem; height: 3.8rem; font-size: 1.5rem; background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 4px var(--w-paper), 0 10px 20px -10px rgb(0 0 0 / 0.55); }
	.wchat-title { min-width: 0; flex: 1; padding-top: 1px; }
	.wchat-title h1 { display: -webkit-box; margin: 0; overflow: hidden; font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
	.wchat-title.is-long h1 { font-size: 1.0625rem; }
	.wchat-title p { margin: 0.25rem 0 0; font-size: 0.53rem; font-weight: 600; line-height: 1; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); }
	.wchat-dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px rgb(74 222 128 / 0.3); }
	.wchat-tools { display: flex; flex: none; gap: 0.3rem; }
	.wchat-tool, .wchat-icon { border: 0; color: inherit; font: inherit; cursor: pointer; background: color-mix(in srgb, currentColor 16%, transparent); transition: background 120ms, transform 120ms; }
	.wchat-tool:hover, .wchat-icon:hover { background: color-mix(in srgb, currentColor 28%, transparent); }
	.wchat-icon:active { transform: scale(0.94); }
	.wchat-tool { padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
	.wchat-tool[hidden] { display: none; }
	.wchat-icon { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; padding: 0; border-radius: 50%; }
	.wchat-icon[hidden] { display: none; }
	.wchat-svg { flex: none; width: 1.25rem; height: 1.25rem; }
	.wchat-act { display: grid; justify-items: center; align-content: start; gap: 0.25rem; width: 3.1rem; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 0.656rem; font-weight: 600; line-height: 1.15; text-align: center; text-shadow: 0 0 6px var(--w-paper), 0 0 2px var(--w-paper); cursor: pointer; }
	.wchat-act-ico { position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: color-mix(in srgb, var(--surface) 95%, transparent); box-shadow: var(--w-card); transition: transform 120ms; }
	.wchat-act:hover .wchat-act-ico { transform: translateY(-1px); }
	.wchat-act:active .wchat-act-ico { transform: scale(0.94); }
	.wchat-act:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 1rem; }
	.wchat-act-label { max-width: 100%; }
	.wchat-act-badge { position: absolute; top: -0.25rem; right: -0.25rem; min-width: 1.06rem; height: 1.06rem; box-sizing: border-box; padding: 0 0.25rem; border-radius: 999px; background: var(--secondary); color: var(--secondary-ink); font-size: 0.625rem; font-weight: 700; line-height: 1.06rem; text-align: center; text-shadow: none; }
	.wchat-act-badge[hidden] { display: none; }
	/* "Nova conversa" only once there is one to leave. */
	.wchat-act-new { display: none; }
	.wchat[data-started='true'] .wchat-act-new { display: grid; }

	/* A conversation in progress (and the frame of another site): the header shrinks to one line of circles, under a hairline. */
	.wchat:is([data-started='true'], [data-mode='embed']) .wchat-top { padding: 0.75rem var(--gx); border-bottom: 1px solid var(--w-hair); background: var(--w-paper); }
	.wchat:is([data-started='true'], [data-mode='embed']) .wchat-head { align-items: center; }
	.wchat:is([data-started='true'], [data-mode='embed']) .wchat-avatar { width: 2.1rem; height: 2.1rem; border-radius: 0.6rem; font-size: 1.05rem; }
	.wchat:is([data-started='true'], [data-mode='embed']) .wchat-title h1 { font-size: 0.9375rem; line-height: 1.12; -webkit-line-clamp: 2; }
	.wchat:is([data-started='true'], [data-mode='embed']) .wchat-title p { margin-top: 0.19rem; font-size: 0.5rem; }
	.wchat:is([data-started='true'], [data-mode='embed']) .wchat-tools { gap: 0.4rem; }
	.wchat:is([data-started='true'], [data-mode='embed']) .wchat-act { width: auto; }
	.wchat:is([data-started='true'], [data-mode='embed']) .wchat-act-ico { width: 2.25rem; height: 2.25rem; border: 1px solid var(--w-hair); box-shadow: none; }
	.wchat:is([data-started='true'], [data-mode='embed']) .wchat-act-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

	/* The photo behind the opening: the first photo of the catalog, fading into the paper on its left and bottom. */
	.wchat-photo { position: absolute; top: 0; right: 0; z-index: 0; width: 62%; height: 21.25rem; background: var(--photo) center / cover; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 78%), linear-gradient(to bottom, #000 60%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 78%), linear-gradient(to bottom, #000 60%, transparent); mask-composite: intersect; }
	.wchat-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--w-paper) 72%, transparent), transparent 36%); }
	/* The company's own cover is usually a cut-out photo of its business: it hangs from the top right corner, whole, and the fade only helps it melt. */
	.wchat-photo.is-cover { width: 68%; height: 22rem; background-position: right top; }
	/* A company with no photo has its color and a ring instead. */
	/* The opening scrolls under the header: once it has moved, the header takes the color of the paper so the two never print over each other. */
	.wchat[data-scrolled='true']:not([data-started='true']) .wchat-top { padding-bottom: 0.5rem; border-bottom: 1px solid var(--w-hair); background: color-mix(in srgb, var(--w-paper) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
	.wchat-photo.is-none { background: radial-gradient(70% 60% at 92% 8%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%), radial-gradient(50% 40% at 70% 70%, color-mix(in srgb, var(--secondary) 16%, transparent), transparent 72%); }
	.wchat-photo.is-none::before { content: ''; position: absolute; right: -4.4rem; top: 2.5rem; width: 15.6rem; height: 15.6rem; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--brand) 16%, transparent); box-shadow: inset 0 0 0 2.1rem color-mix(in srgb, var(--brand) 4%, transparent), 0 0 0 2.1rem color-mix(in srgb, var(--brand) 3%, transparent); }
	.wchat:is([data-started='true'], [data-mode='embed']) .wchat-photo { display: none; }

	/* The conversation: the paper of the chat, scrolling between the header and the message box. On the opening it also holds the headline and the ways to start. */
	.wchat-log { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 0.75rem var(--gx) 1rem; list-style: none; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: none; }
	.wchat-log::-webkit-scrollbar { display: none; }
	.wchat[data-started='true'] .wchat-log { padding-top: 0.9rem; }
	/* The assistant's first line is for a screen reader; the opening (headline, ways to start) takes its place on the screen. */
	.wchat-turn[data-greeting] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.wchat-turn { display: grid; gap: 0.55rem; min-width: 0; font-size: 0.96rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; animation: wchat-pop 240ms cubic-bezier(0.2, 0.7, 0.2, 1); }
	.wchat-turn > * { min-width: 0; }
	/* The map address an answer gives about an order is a link: underlined in the text colour, so it reads on any brand colour in both themes. */
	.wchat-turn a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 0.15em; }
	/* An answer is Markdown (public/js/markdown.js): close paragraphs, lists with their markers, the text colour kept for bold, quotes and code. */
	.wchat-turn .md { display: grid; gap: 0.5rem; white-space: normal; }
	.wchat-turn .md :is(p, ul, ol, blockquote, pre) { margin: 0; }
	.wchat-turn .md :is(ul, ol) { padding-left: 1.25rem; }
	.wchat-turn .md ul { list-style: disc; }
	.wchat-turn .md ol { list-style: decimal; }
	.wchat-turn .md li + li { margin-top: 0.2rem; }
	.wchat-turn .md li::marker { color: var(--brand); }
	.wchat-turn .md strong { font-weight: 700; }
	.wchat-turn .md blockquote { padding-left: 0.7rem; border-left: 3px solid currentColor; opacity: 0.85; }
	.wchat-turn .md code { padding: 0.05rem 0.3rem; border-radius: 0.3rem; background: color-mix(in srgb, currentColor 12%, transparent); font-size: 0.9em; }
	.wchat-turn .md pre { overflow-x: auto; white-space: pre; }
	.wchat-turn .md hr { margin: 0.15rem 0; border: 0; border-top: 1px solid currentColor; opacity: 0.3; }
	/* The person: the brand color, a tail on the lower right. */
	.wchat-turn[data-from='visitor'] { align-self: flex-end; max-width: min(86%, 34rem); padding: 0.65rem 1rem; border-radius: 1.35rem 1.35rem 0.35rem 1.35rem; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 76%, #000)); color: var(--brand-ink); box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--brand) 85%, transparent); }
	/* The assistant speaks as the company: its mark on the left, the words in a soft card, and whatever else it offers (cards, forms) laid out beside the mark. */
	.wchat-turn[data-from='assistant'] { align-self: stretch; grid-template-columns: 2.1rem minmax(0, 1fr); column-gap: 0.65rem; row-gap: 0.6rem; }
	.wchat-turn[data-from='assistant']::before { content: ''; grid-column: 1; grid-row: 1; width: 2.1rem; height: 2.1rem; border-radius: 28%; background: var(--wlogo) center / var(--wlogo-size) no-repeat, linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 66%, #000)); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05), 0 6px 12px -6px rgb(0 0 0 / 0.4); }
	.wchat-turn[data-from='assistant'] > * { grid-column: 2; }
	.wchat-turn[data-from='assistant'] > span:first-child { justify-self: start; max-width: min(100%, 36rem); padding: 0.75rem 1rem; border: 1px solid color-mix(in srgb, var(--line) 65%, transparent); border-radius: 0.4rem 1.35rem 1.35rem 1.35rem; background: var(--surface); color: var(--ink); box-shadow: var(--w-card); }
	/* "Digitando…": three dots that take turns; the words stay for a screen reader. */
	.wchat-turn[data-waiting] > span:first-child { display: inline-flex; align-items: center; height: 1.2rem; padding-block: 0.85rem; font-size: 0; }
	.wchat-turn[data-waiting] > span:first-child::after { --dim: color-mix(in srgb, var(--muted) 30%, transparent); content: ''; width: 0.46rem; height: 0.46rem; margin-right: 1.7rem; border-radius: 50%; background: var(--muted); box-shadow: 0.85rem 0 0 var(--dim), 1.7rem 0 0 var(--dim); animation: wchat-typing 1.15s ease-in-out infinite; }
	.wchat-turn[data-from='staff'] { align-self: flex-start; max-width: min(86%, 34rem); padding: 0.65rem 0.95rem; border: 1px solid var(--brand); border-radius: 0.35rem 1.25rem 1.25rem 1.25rem; background: var(--brand-soft); color: var(--ink); }
	.wchat-turn[data-from='staff']::before { content: attr(data-author); font-size: 0.75rem; font-weight: 600; color: var(--brand); }
	.wchat-status { position: relative; z-index: 3; margin: 0; padding: 0.4rem var(--gx); font-size: 0.82rem; color: var(--ink-2); background: var(--brand-soft); border-top: 1px solid var(--line); }
	.wchat-status[hidden] { display: none; }

	/* The cards an answer shows: a row of cards with a photo to slide through, the first of them already touching the edge. */
	.wchat-cards { display: flex; gap: 0.7rem; margin-inline: -0.15rem; padding: 0.15rem 0.15rem 0.6rem; overflow-x: auto; scroll-snap-type: x proximity; white-space: normal; scrollbar-width: thin; }
	.wchat-card { display: flex; flex: 0 0 min(15.5rem, 80%); flex-direction: column; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 1.15rem; background: var(--surface); box-shadow: var(--w-card); cursor: pointer; scroll-snap-align: start; transition: transform 160ms, box-shadow 160ms, border-color 160ms; }
	.wchat-cards > .wchat-card:only-child { flex-basis: min(19rem, 100%); }
	.wchat-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--w-lift); }
	.wchat-card > img, .wchat-card > .wchat-nophoto { width: 100%; height: 8.6rem; border-radius: 0; object-fit: cover; background-color: var(--surface-2); }
	.wchat-card > div { display: grid; gap: 0.25rem; padding: 0.7rem 0.85rem 0.8rem; }
	.wchat-card > div > strong { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.25; }
	.wchat-card .wchat-price strong { font-family: var(--font-sans); font-size: 1.05rem; }
	.wchat-card p { margin: 0; font-size: 0.8rem; color: var(--muted); }
	.wchat-card-more { display: inline-block; margin-top: 0.15rem; font-size: 0.8rem; font-weight: 700; color: var(--brand); }
	.wchat-card-more::after { content: ' \203A'; }
	.wchat-card:focus-visible, .wchat-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

	/* What the assistant offers to do (a reservation, a visit, a contact), and its form. Inputs never push the card wider than the screen. */
	.wchat-action { padding: 0.8rem 0.9rem; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 1.1rem; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); box-shadow: var(--w-card); font-size: 0.9rem; white-space: normal; }
	.wchat-action .btn { justify-self: start; }
	.wchat-turn-wide { max-width: 100%; align-self: stretch; }
	/* A form or a receipt uses the whole width; only the words stay beside the mark. */
	.wchat-turn-wide[data-from='assistant'] > :not(:first-child) { grid-column: 1 / -1; }
	.wchat-ask { display: grid; gap: 0.7rem; min-width: 0; margin-top: 0.5rem; white-space: normal; }
	.wchat-ask .field { min-width: 0; }
	.wchat-ask .input, .wchat-ask .textarea, .wchat-ask .select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
	.wchat-ask input[type='date'], .wchat-ask input[type='time'], .wchat-ask input[type='number'] { appearance: none; -webkit-appearance: none; min-height: 2.6rem; }
	.wchat-ask .field-error[hidden] { display: none; }

	/* "Seu pedido": the summary of a request while it is filled in, and the receipt once it is sent (the server writes every number in it). */
	.wchat-board, .wchat-order { display: grid; gap: 0.5rem; min-width: 0; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--bg); white-space: normal; }
	.wchat-board-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
	.wchat-board-body { display: grid; gap: 0.45rem; }
	.wchat-board-item, .wchat-order-head { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: center; }
	.wchat-board-item img, .wchat-board-item .wchat-nophoto, .wchat-order-head img, .wchat-order-head .wchat-nophoto { width: 3.6rem; height: 3.6rem; border-radius: 0.6rem; object-fit: cover; background-color: var(--surface-2); }
	.wchat-board-item strong, .wchat-order-title strong { display: block; }
	.wchat-board-line, .wchat-order-code { display: block; font-size: 0.82rem; color: var(--muted); }
	.wchat-board-total { margin: 0; font-size: 0.95rem; }
	.wchat-board-total strong { font-size: 1.15rem; }
	.wchat-board-hint { margin: 0; font-size: 0.85rem; color: var(--muted); }
	.wchat-board-ok { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--success); }
	.wchat-board-problem { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--danger); }
	.wchat-order { margin-top: 0.4rem; border-color: var(--brand); animation: wchat-pop 180ms ease-out; }
	.wchat-order:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
	.wchat-order-facts { display: grid; gap: 0.25rem; margin: 0; }
	.wchat-order-fact { display: flex; justify-content: space-between; gap: 0.8rem; font-size: 0.88rem; }
	.wchat-order-fact dt { color: var(--muted); }
	.wchat-order-fact dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
	.wchat-order-detail { display: block; font-size: 0.78rem; font-weight: 400; color: var(--muted); }
	.wchat-order-watch { display: grid; gap: 0.4rem; min-width: 0; }
	.wchat-order-state, .wchat-order-next, .wchat-order-line, .wchat-order-notice { margin: 0; font-size: 0.86rem; }
	.wchat-order-next, .wchat-order-line, .wchat-order-notice, .wchat-order-sure { color: var(--ink-2); }
	.wchat-order-status, .wchat-order-cancel { display: grid; gap: 0.5rem; min-width: 0; }
	.wchat-order-sure { flex-basis: 100%; font-size: 0.86rem; }
	.wchat-order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
	.wchat-order-copied { font-size: 0.8rem; color: var(--muted); }

	/* The lines of a conta with several parts (rates of other dates, fees), in the summary of the form and in the receipt. */
	.wchat-board-lines, .wchat-order-lines { display: grid; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
	.wchat-board-lines li, .wchat-order-lines li { display: flex; justify-content: space-between; gap: 0.8rem; font-size: 0.85rem; color: var(--ink-2); }
	.wchat-board-lines strong, .wchat-order-lines strong { flex: none; font-weight: 600; color: var(--ink); }

	/* The invitation to keep the WhatsApp of an order in the account, under the receipt. */
	.wchat-invite { display: grid; gap: 0.5rem; min-width: 0; margin-top: 0.4rem; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--bg); white-space: normal; }
	.wchat-invite-hint, .wchat-invite-message { margin: 0; font-size: 0.85rem; color: var(--ink-2); }
	.wchat-invite .input { width: 100%; min-width: 0; box-sizing: border-box; }

	/* "Pedidos": a row for each order the person made (the list of the history), and the page of one order. */
	/* "Continue de onde parou": the latest open order, or else the last conversation, as one row. With it the line of support gives its room to the catalog. */
	.wchat-resume[hidden], .wchat-orders-empty[hidden] { display: none; }
	.wchat-resume { display: grid; gap: 0.375rem; min-width: 0; }
	.wchat-welcome:has(.wchat-resume:not([hidden])) .wchat-lead { display: none; }
	.wchat-resume-row { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto 1rem; align-items: center; gap: 0.6rem; box-sizing: border-box; width: 100%; padding: 0.55rem 0.75rem 0.55rem 0.55rem; border: 1px solid var(--w-hair); border-radius: 1rem; background: var(--surface); box-shadow: var(--w-card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 120ms, transform 120ms; }
	.wchat-resume-row:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--w-hair)); transform: translateY(-1px); }
	.wchat-resume-row:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
	.wchat-resume-row::after { content: ''; grid-column: 4; width: 0.45rem; height: 0.45rem; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
	.wchat-resume-row:not(:has(.badge))::after { grid-column: 3 / 5; justify-self: end; }
	.wchat-resume-ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 0.75rem; background: var(--w-tint); color: var(--brand); }
	.wchat-resume-text { min-width: 0; }
	.wchat-resume-text strong, .wchat-resume-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.wchat-resume-text strong { font-size: 0.84rem; font-weight: 600; line-height: 1.2; }
	.wchat-resume-text small { margin-top: 0.125rem; font-size: 0.75rem; line-height: 1.25; color: var(--ink-2); }
	.wchat-orders { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
	.wchat-orders:empty { display: none; }
	.wchat-orders-empty { display: grid; gap: 0.75rem; justify-items: start; }
	.wchat-recover { margin-top: 1rem; border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.7rem 0.9rem; }
	.wchat-recover summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
	.wchat-recover[open] summary { margin-bottom: 0.5rem; }
	.wchat-recover .field-error[hidden] { display: none; }
	.wchat-options { display: grid; gap: 0.6rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
	.wchat-stars { display: flex; gap: 0.25rem; }
	.wchat-star { border: 0; background: transparent; padding: 0.1rem 0.2rem; font-size: 1.7rem; line-height: 1; color: var(--brand); cursor: pointer; }
	.wchat-star:disabled { cursor: default; }
	.wchat-star:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 0.3rem; }
	.wchat-option { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.65rem 0.8rem; }
	.wchat-option > div { display: grid; min-width: 0; }
	.wchat-orders-empty p { margin: 0; color: var(--ink-2); }
	.wchat-orow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; box-sizing: border-box; width: 100%; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 0.95rem; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: border-color 120ms, transform 120ms; }
	.wchat-orow:hover { border-color: var(--brand); transform: translateY(-1px); }
	.wchat-orow-thumb { width: 3.6rem; height: 3.6rem; overflow: hidden; border-radius: 0.65rem; background: var(--surface-2); }
	.wchat-orow-thumb img, .wchat-orow-thumb .wchat-nophoto { display: block; width: 100%; height: 100%; object-fit: cover; }
	.wchat-orow-main { display: grid; gap: 0.25rem; min-width: 0; }
	.wchat-orow-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
	.wchat-orow-top .badge { flex: none; }
	.wchat-orow-name { min-width: 0; overflow: hidden; font-size: 0.95rem; text-overflow: ellipsis; white-space: nowrap; }
	.wchat-orow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; font-size: 0.82rem; color: var(--ink-2); }
	.wchat-orow-kind { padding: 0.05rem 0.55rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.72rem; font-weight: 700; }
	.wchat-orow-kind[data-kind='contact'] { background: var(--brand-soft); color: var(--brand); }
	.wchat-orow-value { font-size: 0.86rem; font-weight: 600; }
	.wchat-orow-ago { font-size: 0.76rem; color: var(--muted); }
	.wchat-orderpage { gap: 1.1rem; }
	.wchat-opage-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; align-items: center; }
	.wchat-opage-head img, .wchat-opage-head .wchat-nophoto { width: 4.4rem; height: 4.4rem; border-radius: 0.8rem; object-fit: cover; background-color: var(--surface-2); }
	.wchat-opage-head strong { display: block; font-size: 1.1rem; line-height: 1.25; overflow-wrap: anywhere; }
	.wchat-opage-head .wchat-order-code { display: inline; margin-left: 0.25rem; }
	.wchat-opage-head .wchat-orow-kind { display: inline-block; margin-top: 0.25rem; }
	.wchat-opage-state { display: grid; gap: 0.55rem; min-width: 0; margin-bottom: 0.85rem; }
	.wchat-opage-state > p { margin: 0; }
	.wchat-opage-answer { padding: 0.7rem 0.9rem; border-left: 3px solid var(--brand); border-radius: 0.3rem 0.8rem 0.8rem 0.3rem; background: var(--brand-soft); line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
	.wchat-timeline { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
	.wchat-timeline li { position: relative; display: grid; gap: 0.05rem; padding-left: 1.3rem; }
	.wchat-timeline li::before { content: ''; position: absolute; left: 0; top: 0.4rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--brand); }
	.wchat-timeline li:not(:last-child)::after { content: ''; position: absolute; left: 0.27rem; top: 1.1rem; bottom: -0.6rem; width: 2px; background: var(--line); }
	.wchat-timeline small { font-size: 0.78rem; color: var(--muted); }
	.wchat-opage-lines { display: grid; gap: 0.3rem; margin: 0; }
	.wchat-opage-total { margin-top: 0.3rem; padding-top: 0.5rem; border-top: 1px solid var(--line); font-weight: 700; }
	.wchat-opage-code { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
	.wchat-opage-code strong { font-size: 1.05rem; letter-spacing: 0.04em; }
	/* After the rules of .wchat-sheet-foot, which come later in this file and also size the buttons: the extra class wins. */
	.wchat-sheet-foot.wchat-orderpage-foot { flex-wrap: wrap; max-height: 45%; overflow-y: auto; }
	.wchat-sheet-foot.wchat-orderpage-foot .btn { flex: 1 1 8rem; }
	.wchat-sheet-foot.wchat-orderpage-foot .btn-primary { flex-basis: 100%; }
	.wchat-sheet-foot.wchat-orderpage-foot .wchat-order-cancel { flex: 1 1 100%; }

	/* Quick replies after an answer (small pills under the conversation) and the message box, which floats like a card. */
	.wchat-chips { position: relative; z-index: 3; display: flex; gap: 0.45rem; padding: 0.6rem var(--gx) 0.15rem; overflow-x: auto; background: var(--w-paper); scrollbar-width: none; }
	.wchat-chips::-webkit-scrollbar { display: none; }
	.wchat-chips:empty { display: none; }
	.wchat-chip { flex: none; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 999px; background: var(--surface); color: var(--brand); font: inherit; font-size: 0.85rem; font-weight: 600; padding: 0.42rem 0.95rem; cursor: pointer; box-shadow: var(--w-card); transition: background 120ms, transform 120ms; }
	.wchat-chip:hover { background: var(--brand-soft); transform: translateY(-1px); }

	/* The foot of the chat: the catalog strip (in a conversation), the message box, the examples (on the opening) and the fine print. */
	.wchat-dock { position: relative; z-index: 3; flex: none; display: flex; flex-direction: column; padding: 0.5rem var(--gx) 0; background: var(--w-paper); }
	.wchat-form { padding: 0; }
	.wchat-composer { display: flex; align-items: center; gap: 0.3rem; height: 3.25rem; box-sizing: border-box; padding: 0 0.375rem 0 0.55rem; border: 1px solid var(--w-hair); border-radius: 999px; background: var(--surface); box-shadow: 0 14px 30px -18px rgb(16 24 40 / 0.42), 0 1px 2px rgb(16 24 40 / 0.05); transition: border-color 140ms, box-shadow 140ms; }
	.wchat-composer:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), 0 14px 30px -18px rgb(16 24 40 / 0.42); }
	.wchat-spark { display: grid; place-items: center; flex: none; width: 2.125rem; height: 2.125rem; margin-right: 0.3rem; border-radius: 50%; background: var(--w-tint); color: var(--brand); }
	.wchat-spark .wchat-svg { width: 1.125rem; height: 1.125rem; }
	.wchat-input { flex: 1; min-width: 0; padding: 0.55rem 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 0.9rem; }
	.wchat-input::placeholder { color: var(--muted); }
	.wchat-mic, .wchat-send { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer; transition: background 120ms, transform 120ms; }
	.wchat-mic[hidden] { display: none; }
	.wchat-mic { background: transparent; color: var(--ink-2); }
	.wchat-mic:hover { background: var(--surface-2); }
	.wchat-mic[aria-pressed='true'] { background: var(--danger); color: #fff; animation: wchat-pulse 1.3s ease-in-out infinite; }
	.wchat-send { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); color: var(--brand-ink); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--brand) 90%, transparent); }
	.wchat-send:hover { transform: scale(1.06); }
	.wchat-send:disabled { opacity: 0.5; transform: none; cursor: default; }

	/* Things to write under the message box, on the opening only. */
	.wchat-examples { display: flex; gap: 0.5rem; margin-top: 0.5rem; padding: 0.125rem 0; overflow-x: auto; scrollbar-width: none; }
	.wchat-examples::-webkit-scrollbar { display: none; }
	.wchat-example { display: inline-flex; flex: none; align-items: center; gap: 0.45rem; padding: 0.45rem 0.75rem; border: 1px solid var(--w-hair); border-radius: 999px; background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--ink); font: inherit; font-size: 0.75rem; font-weight: 500; line-height: 1.2; cursor: pointer; transition: border-color 120ms, transform 120ms; }
	.wchat-example:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--w-hair)); transform: translateY(-1px); }
	.wchat-example .wchat-ico { width: 0.95rem; height: 0.95rem; color: var(--brand); }
	.wchat[data-started='true'] .wchat-examples { display: none; }

	/* The catalog during a conversation: one line with a few photos, folded when the person wants the room. */
	.wchat-strip { margin: 0 0 0.5rem; border: 1px solid var(--w-hair); border-radius: 1rem; background: color-mix(in srgb, var(--surface) 78%, transparent); }
	.wchat-strip[hidden], .wchat:not([data-started='true']) .wchat-strip { display: none; }
	.wchat-strip summary { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; font-size: 0.78rem; font-weight: 600; line-height: 1.2; list-style: none; cursor: pointer; }
	.wchat-strip summary::-webkit-details-marker { display: none; }
	.wchat-strip summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 1rem; }
	.wchat-strip small { font-size: 0.75rem; font-weight: 500; color: var(--ink-2); }
	.wchat-strip-toggle { display: inline-flex; align-items: center; gap: 0.25rem; margin-left: auto; color: var(--brand); font-size: 0.75rem; }
	.wchat-strip-toggle .wchat-svg { width: 0.95rem; height: 0.95rem; transition: transform 200ms; }
	.wchat-strip[open] .wchat-strip-toggle .wchat-svg { transform: rotate(180deg); }
	.wchat-strip[open] .wchat-strip-more, .wchat-strip:not([open]) .wchat-strip-less { display: none; }
	.wchat-thumbs { display: flex; gap: 0.5rem; padding: 0 0.75rem 0.7rem; overflow-x: auto; scrollbar-width: none; }
	.wchat-thumbs::-webkit-scrollbar { display: none; }
	.wchat-thumb, .wchat-thumbs-more { flex: none; width: 4.4rem; height: 3.25rem; box-sizing: border-box; padding: 0; border-radius: 0.65rem; overflow: hidden; cursor: pointer; }
	.wchat-thumb { border: 0; background: var(--surface-2); }
	.wchat-thumb img, .wchat-thumb .wchat-nophoto { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
	.wchat-thumb:focus-visible, .wchat-thumbs-more:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
	.wchat-thumbs-more { display: grid; place-items: center; border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); background: none; color: var(--brand); font: inherit; font-size: 0.69rem; font-weight: 600; line-height: 1.2; text-align: center; }

	.wchat-account { margin: 0; padding: 0.35rem 0 0.15rem; font-size: 0.78rem; line-height: 1.35; color: var(--ink-2); background: var(--w-paper); text-align: center; }
	.wchat-account a { color: var(--brand); font-weight: 600; }
	.wchat-notice { margin: 0; padding: 0 0 calc(0.6rem + env(safe-area-inset-bottom)); font-size: 0.7rem; line-height: 1.35; color: var(--muted); background: var(--w-paper); text-align: center; }
	.wchat-notice a { color: inherit; text-decoration: underline; }
	/* The fine print folds into one line; a tap opens it. */
	.wchat-fine { background: var(--w-paper); }
	.wchat-fine summary { padding: 0.35rem 0 calc(0.55rem + env(safe-area-inset-bottom)); font-size: 0.656rem; line-height: 1.3; color: var(--muted); text-align: center; cursor: pointer; list-style: none; }
	.wchat-fine summary::-webkit-details-marker { display: none; }
	.wchat-fine summary span { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
	.wchat-fine summary:hover span { text-decoration-thickness: 2px; }
	.wchat-fine[open] summary { padding-bottom: 0.2rem; }
	.wchat-fine .wchat-notice { padding-bottom: calc(0.6rem + env(safe-area-inset-bottom)); }

	/* Screens over the chat: Nossa história, Sobre, the catalog, the history. A round way back on the left, the title beside it. */
	.wchat-sheet { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: var(--w-paper); animation: wchat-slide 240ms cubic-bezier(0.2, 0.7, 0.2, 1); }
	.wchat-sheet[hidden] { display: none; }
	.wchat-sheet-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem var(--gx) 0.625rem; }
	.wchat-sheet-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.1; }
	/* The title takes the focus when a screen opens (so a screen reader starts there); it is not a control, so it draws no ring. */
	.wchat-sheet-head h2:focus { outline: none; }
	.wchat-sheet-head .wchat-icon { width: 2.4rem; height: 2.4rem; border: 1px solid var(--w-hair); background: var(--surface); color: var(--ink); }
	.wchat-sheet-body { flex: 1; display: grid; align-content: start; gap: 1rem; padding: 0.4rem var(--gx) 1.4rem; overflow-y: auto; }

	/* The history: one list at a time, chosen with the two tabs on top. */
	.wchat-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; background: var(--w-tint); }
	.wchat-seg-tab { display: flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.6rem; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: inherit; font-size: 0.8125rem; font-weight: 600; line-height: 1; cursor: pointer; }
	.wchat-seg-count { padding: 0.125rem 0.45rem; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); font-size: 0.69rem; }
	.wchat-seg-count[hidden] { display: none; }
	.wchat-seg-tab[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--w-card); }
	.wchat-seg-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
	.wchat-panel { display: grid; gap: 0.6rem; min-width: 0; }
	.wchat-panel[hidden] { display: none; }

	/* What a visitor finds in an empty conversation: who is speaking, four ways to start (cards with an icon), and the catalog to look at. */
	.wchat-welcome { display: grid; gap: 0.75rem; min-width: 0; margin: 0; list-style: none; animation: wchat-pop 320ms cubic-bezier(0.2, 0.7, 0.2, 1); }
	.wchat-hero { display: grid; justify-items: start; }
	.wchat-tag { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.25rem 1rem 0.25rem 0.25rem; border-radius: 999px; background: var(--w-tint); font-size: 0.8125rem; font-weight: 500; line-height: 1; }
	.wchat-tag-ico { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--brand); color: var(--brand-ink); }
	.wchat-tag-ico .wchat-svg { width: 0.95rem; height: 0.95rem; }
	.wchat-hero-title { max-width: 8.4em; margin: 0.75rem 0 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.06; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; text-shadow: 0 0 14px var(--w-paper), 0 0 5px var(--w-paper), 0 0 2px var(--w-paper); }
	.wchat-hero-title em { font-style: italic; color: var(--brand); }
	.wchat-lead { max-width: 16em; margin: 0.5rem 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); text-shadow: 0 0 10px var(--w-paper), 0 0 4px var(--w-paper); }
	.wchat-eyebrow { margin: 0; font-size: 0.656rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

	.wchat-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
	.wchat-way { display: grid; grid-template-columns: 1.625rem minmax(0, 1fr); gap: 0.55rem; align-items: center; min-height: 4.4rem; box-sizing: border-box; padding: 0.625rem 0.7rem; border: 1px solid var(--w-hair); border-radius: 1rem; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--w-card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform 160ms, box-shadow 160ms, border-color 160ms; }
	.wchat-way:hover { border-color: color-mix(in srgb, var(--brand) 60%, var(--w-hair)); box-shadow: var(--w-lift); transform: translateY(-2px); }
	.wchat-way:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
	.wchat-way .wchat-ico { width: 1.625rem; height: 1.625rem; color: var(--brand); }
	.wchat-way strong { display: block; font-family: var(--font-display); font-size: 0.906rem; font-weight: 600; line-height: 1.15; }
	.wchat-way-text { display: block; margin-top: 0.2rem; font-size: 0.72rem; line-height: 1.3; color: var(--ink-2); }
	/* The first way to start wears the second color of the company (the dark one) and the last one its brand color; the two in between stay light. */
	.wchat-way:first-child, .wchat-way:last-child { border-color: transparent; }
	.wchat-way:first-child { background: var(--secondary); color: var(--secondary-ink); }
	.wchat-way:last-child { background: var(--brand); color: var(--brand-ink); }
	.wchat-way:first-child .wchat-ico { color: var(--secondary-ink); }
	.wchat-way:last-child .wchat-ico { color: var(--brand-ink); }
	.wchat-way:first-child .wchat-way-text { color: color-mix(in srgb, var(--secondary-ink) 84%, transparent); }
	.wchat-way:last-child .wchat-way-text { color: color-mix(in srgb, var(--brand-ink) 84%, transparent); }

	.wchat-showcase { min-width: 0; margin-top: 0.25rem; }
	.wchat-showcase[hidden] { display: none; }
	.wchat-showcase-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
	.wchat-showcase-title { margin: 0; font-family: var(--font-display); font-size: 1.19rem; font-weight: 600; line-height: 1.15; }
	.wchat-pill { display: inline-flex; align-items: center; gap: 0.45rem; flex: none; padding: 0.5rem 0.75rem; border: 1px solid color-mix(in srgb, var(--brand) 42%, transparent); border-radius: 999px; background: transparent; color: var(--brand); font: inherit; font-size: 0.75rem; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; transition: background 120ms; }
	.wchat-pill:hover { background: var(--brand-soft); }
	.wchat-pill .wchat-svg { width: 0.95rem; height: 0.95rem; }
	.wchat-rail { display: flex; gap: 0.625rem; margin: 0.625rem calc(var(--gx) * -1) 0; padding: 0.125rem var(--gx) 0.4rem; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gx); scrollbar-width: none; }
	.wchat-rail::-webkit-scrollbar { display: none; }

	/* The card of an item (welcome and catalog): a photo with the price over it, the name, and the first facts. */
	.wchat-item { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 1.25rem; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--w-card); transition: transform 160ms, border-color 160ms, box-shadow 160ms; }
	.wchat-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); box-shadow: var(--w-lift); }
	.wchat-rail .wchat-item { flex: 0 0 15rem; scroll-snap-align: start; }
	.wchat-item-photo { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface-2); }
	.wchat-item-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 58%; background: linear-gradient(to top, rgb(8 12 20 / 0.74), transparent); pointer-events: none; }
	.wchat-item-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
	.wchat-item:hover .wchat-item-photo img { transform: scale(1.06); }
	.wchat-nophoto { display: block; width: 100%; height: 100%; min-height: 3rem; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='1.6'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center / 2rem no-repeat; }
	.wchat-badge { position: absolute; z-index: 2; top: 0.65rem; left: 0.65rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: rgb(0 0 0 / 0.68); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
	.wchat-badge-inline { position: static; justify-self: start; background: var(--warning-soft); color: var(--warning); }
	.wchat-item-body { display: grid; gap: 0.5rem; padding: 0.75rem 0.9rem 0.95rem; }
	.wchat-item-name { display: -webkit-box; overflow: hidden; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.22; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
	.wchat-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.35rem; }
	.wchat-price small { font-size: 0.72rem; color: var(--muted); }
	.wchat-price strong { font-size: 1rem; color: var(--brand); }
	.wchat-price-lg strong { font-size: 1.7rem; }
	.wchat-price-lg small { font-size: 0.82rem; }
	/* On a photo the price is white, over a dark fade: the prefix on its own line ("A partir de"), then the value and its unit. */
	.wchat-price-over { position: absolute; z-index: 1; left: 0.9rem; right: 0.9rem; bottom: 0.7rem; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 0.35rem; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / 0.45); }
	.wchat-price-over small { color: rgb(255 255 255 / 0.88); }
	.wchat-price-over small:first-child { grid-column: 1 / -1; font-size: 0.68rem; letter-spacing: 0.02em; }
	.wchat-price-over strong { color: #fff; font-size: 1.2rem; line-height: 1.15; }
	/* The catalog's cards are narrower (two to a row on a phone): the value is a little smaller so the unit stays beside it. */
	.wchat-grid .wchat-price-over { left: 0.75rem; right: 0.75rem; }
	.wchat-grid .wchat-price-over strong { font-size: 1.02rem; }
	.wchat-grid .wchat-price-over small:not(:first-child) { font-size: 0.66rem; }
	.wchat-item-facts { display: flex; flex-wrap: wrap; gap: 0.3rem; }
	.wchat-item-facts span { padding: 0.12rem 0.5rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.71rem; font-weight: 500; }
	/* Two facts are enough on the smaller cards of the catalog; the page of the item has them all. */
	.wchat-grid .wchat-item-facts span:nth-child(n + 3) { display: none; }
	.wchat-item-more { align-items: center; justify-content: center; gap: 0.25rem; padding: 1rem; border-style: dashed; background: var(--brand-soft); color: var(--brand); text-align: center; }
	.wchat-rail .wchat-item-more { flex-basis: 9rem; }
	.wchat-item-more span { font-size: 0.78rem; color: var(--muted); }
	.wchat-skeleton { flex: 0 0 15rem; height: 16.5rem; border-radius: 1.25rem; background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 50%, var(--surface)) 50%, var(--surface-2) 70%) 0 0 / 200% 100%; animation: wchat-shimmer 1.3s linear infinite; }

	.wchat-about-hero { display: flex; align-items: center; gap: 0.85rem; }
	.wchat-about-hero strong { display: block; font-size: 1.15rem; line-height: 1.2; }
	.wchat-about-hero span:not(.wchat-avatar) { font-size: 0.85rem; color: var(--muted); }
	.wchat-about-text { margin: 0; line-height: 1.6; white-space: pre-line; }
	.wchat-about-empty { color: var(--muted); }
	.wchat-facts { display: grid; gap: 0.75rem; margin: 0; }
	.wchat-facts:empty { display: none; }
	.wchat-facts > div { padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--surface); }
	.wchat-facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
	.wchat-facts dd { margin: 0.2rem 0 0; }
	.wchat-about-actions { display: grid; gap: 0.5rem; }
	.wchat-about-actions .btn { justify-content: center; text-align: center; }

	.wchat-chats { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
	.wchat-chats li { display: flex; align-items: stretch; gap: 0.4rem; }
	.wchat-chats li[data-current] .wchat-chat-open { border-color: var(--brand); background: var(--brand-soft); }
	.wchat-chat-open { flex: 1; min-width: 0; display: grid; gap: 0.15rem; padding: 0.65rem 0.85rem; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
	.wchat-chat-open:hover { border-color: var(--brand); }
	.wchat-chat-open strong { overflow: hidden; font-size: 0.93rem; text-overflow: ellipsis; white-space: nowrap; }
	.wchat-chat-open span { font-size: 0.78rem; color: var(--muted); }
	.wchat-chat-del { flex: none; width: 2.4rem; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--surface); color: var(--muted); font-size: 1.1rem; cursor: pointer; }
	.wchat-chat-del:hover { color: var(--danger); border-color: var(--danger); }
	.wchat-sheet-note { margin: 0; font-size: 0.8rem; color: var(--muted); }

	/* The catalog and the page of an item. */
	.wchat-sheet-item { z-index: 6; }
	.wchat-sheet-item .wchat-sheet-head h2 { flex: 1; text-align: center; }
	.wchat-search { box-sizing: border-box; width: 100%; padding: 0.7rem 1rem 0.7rem 2.6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 0.9rem center no-repeat; color: var(--ink); font: inherit; outline: 0; }
	.wchat-search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
	.wchat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.8rem; }
	.wchat-grid:empty { display: none; }
	.wchat-sheet-note[hidden], [data-widget-catalog-more][hidden] { display: none; }
	.wchat-sheet-foot { display: flex; gap: 0.6rem; padding: 0.75rem 1rem; border-top: 1px solid var(--line); background: var(--surface); }
	.wchat-sheet-foot .btn { flex: 1; justify-content: center; text-align: center; }
	.wchat-sheet-foot [hidden] { display: none; }
	.wchat-itempage { align-content: start; gap: 1.1rem; padding-top: 0; }
	.wchat-gallery { position: relative; margin: 0 -1rem; background: var(--surface-2); }
	.wchat-gallery-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.wchat-gallery-strip::-webkit-scrollbar { display: none; }
	.wchat-gallery-strip img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; max-height: 55vh; object-fit: cover; scroll-snap-align: center; }
	.wchat-gallery-count { position: absolute; right: 0.8rem; bottom: 0.8rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: rgb(0 0 0 / 0.62); color: #fff; font-size: 0.75rem; font-weight: 600; }
	.wchat-nophoto-lg { aspect-ratio: 4 / 3; height: auto; }
	.wchat-item-info { display: grid; gap: 0.85rem; }
	.wchat-itempage .wchat-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
	.wchat-itempage .wchat-facts > div { padding: 0.6rem 0.8rem; border-radius: 0.8rem; }
	.wchat-itempage .wchat-facts > div:has(.wchat-tags) { grid-column: 1 / -1; }
	.wchat-itempage .wchat-facts dd { font-weight: 600; }
	.wchat-item-title { margin: 0; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; }
	.wchat-item-text { margin: 0; line-height: 1.65; white-space: pre-line; }
	.wchat-fact-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
	.wchat-fact-chip { padding: 0.32rem 0.75rem; border-radius: 999px; background: var(--brand-soft); font-size: 0.84rem; font-weight: 600; }
	.wchat-fact-chip small { margin-right: 0.35rem; font-size: 0.74rem; font-weight: 500; color: var(--muted); }
	.wchat-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
	.wchat-tags li { padding: 0.28rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.82rem; }

	/* Sobre: a cover with the company's photos, who it is, and what a visitor would otherwise have to ask. */
	.wchat-about { align-content: start; gap: 1.25rem; padding-top: 0; }
	.wchat-about-cover { display: grid; grid-template-columns: repeat(var(--n, 1), 1fr); height: 8.5rem; margin: 0 -1rem; overflow: hidden; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #000)); }
	.wchat-about-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
	.wchat-cover-0 { height: 5rem; }
	.wchat-cover-2 { --n: 2; }
	.wchat-cover-3 { --n: 3; }
	.wchat-cover-4 { --n: 4; }
	.wchat-about-hero { position: relative; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-top: -2.4rem; padding: 0 0.1rem; }
	.wchat-about-hero strong { font-family: var(--font-display); font-size: 1.4rem; }
	.wchat-about-hero .wchat-avatar-lg { box-shadow: 0 0 0 4px var(--bg), 0 6px 14px -6px rgb(0 0 0 / 0.5); }
	.wchat-presence { display: inline-flex; align-items: center; gap: 0.45rem; justify-self: start; margin: 0; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: var(--success-soft); color: var(--success); }
	.wchat-presence[data-state='off'] { background: var(--surface-2); color: var(--ink-2); }
	.wchat-presence[data-state='off'] .wchat-dot { background: var(--muted); box-shadow: none; }
	.wchat-quote { margin: 0; padding: 0.95rem 1.1rem; border-left: 3px solid var(--brand); border-radius: 0.3rem 0.9rem 0.9rem 0.3rem; background: var(--brand-soft); font-family: var(--font-display); font-size: 1.1rem; line-height: 1.45; }
	.wchat-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.6rem; }
	.wchat-stat { display: grid; gap: 0.15rem; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 0.95rem; background: var(--surface); color: var(--ink); font: inherit; text-align: left; }
	button.wchat-stat { cursor: pointer; transition: border-color 120ms, transform 120ms; }
	button.wchat-stat:hover { border-color: var(--brand); transform: translateY(-1px); }
	.wchat-stat strong { font-size: 1rem; }
	.wchat-stat span { font-size: 0.78rem; color: var(--muted); }
	.wchat-block h3 { margin: 0 0 0.55rem; font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
	.wchat-block p { margin: 0 0 0.6rem; line-height: 1.65; white-space: pre-line; }
	.wchat-block p:last-child { margin-bottom: 0; }
	.wchat-facts a, .wchat-block a { color: var(--brand); font-weight: 600; }
	.wchat-faq details { border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); }
	.wchat-faq details + details { margin-top: 0.5rem; }
	.wchat-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.75rem 0.95rem; font-weight: 600; cursor: pointer; list-style: none; }
	.wchat-faq summary::-webkit-details-marker { display: none; }
	.wchat-faq summary::after { content: '+'; flex: none; font-size: 1.15rem; font-weight: 700; color: var(--brand); }
	.wchat-faq details[open] summary::after { content: '\2013'; }
	.wchat-faq details p { margin: 0; padding: 0 0.95rem 0.9rem; line-height: 1.6; white-space: pre-line; color: var(--ink-2); }

	/* The page of an item and "Sobre", a little more like a magazine: rounded photos, the name in the display face. */
	/* No `overflow` on the gallery itself: as a grid item it would be allowed to shrink to nothing. The strip, which scrolls, clips the corners. */
	.wchat-gallery, .wchat-gallery-strip { border-radius: 0 0 1.5rem 1.5rem; }
	.wchat-item-title { font-size: 1.6rem; }
	.wchat-about-cover { border-radius: 0 0 1.5rem 1.5rem; }
	.wchat-about-hero .wchat-avatar-lg { border-radius: 28%; }

	/* The row of highlights on the opening: smaller cards than the catalog's, so the first screen holds the headline, the ways to start and the row. */
	.wchat-rail .wchat-item { flex: 0 0 9.5rem; border-radius: 1rem; scroll-snap-align: start; }
	.wchat-rail .wchat-item-photo { aspect-ratio: 16 / 10; }
	.wchat-rail .wchat-item-body { gap: 0.25rem; padding: 0.5rem 0.625rem 0.625rem; }
	.wchat-rail .wchat-item-name { font-size: 0.8125rem; line-height: 1.2; }
	.wchat-rail .wchat-price-over { left: 0.6rem; right: 0.6rem; bottom: 0.5rem; }
	.wchat-rail .wchat-price-over strong { font-size: 0.9rem; }
	.wchat-rail .wchat-price-over small:not(:first-child) { font-size: 0.62rem; white-space: nowrap; }
	.wchat-rail .wchat-item-facts { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.wchat-rail .wchat-item-facts span { display: inline; padding: 0; background: none; font-size: 0.69rem; color: var(--ink-2); }
	.wchat-rail .wchat-item-facts span + span::before { content: '\00a0\00b7\00a0'; }
	.wchat-rail .wchat-item-more { flex-basis: 6.5rem; }
	.wchat-skeleton { flex: 0 0 9.5rem; height: 11rem; border-radius: 1rem; }

	/* The frame of another site: no photo, no line of support, the ways to start with their titles only. */
	.wchat[data-mode='embed'] { --gx: 0.875rem; }
	.wchat[data-mode='embed'] .wchat-lead, .wchat[data-mode='embed'] .wchat-way-text, .wchat[data-mode='embed'] .wchat-examples { display: none; }
	.wchat[data-mode='embed'] .wchat-hero-title { max-width: none; margin-top: 0.75rem; font-size: 1.44rem; }
	.wchat[data-mode='embed'] .wchat-ways { gap: 0.5rem; }
	.wchat[data-mode='embed'] .wchat-way { grid-template-columns: 1.375rem minmax(0, 1fr); gap: 0.5rem; min-height: 3.1rem; padding: 0.5rem 0.625rem; }
	.wchat[data-mode='embed'] .wchat-way .wchat-ico { width: 1.375rem; height: 1.375rem; }
	.wchat[data-mode='embed'] .wchat-way strong { font-size: 0.8125rem; }
	.wchat[data-mode='embed'] .wchat-showcase-title { font-size: 1rem; }
	.wchat[data-mode='embed'] .wchat-rail .wchat-item { flex-basis: 8rem; }
	.wchat[data-mode='embed'] .wchat-rail .wchat-item-facts, .wchat[data-mode='embed'] .wchat-rail .wchat-price-over small:not(:first-child) { display: none; }

	/* The forms of the chat (a reservation, a visit, a contact): a card with a title, soft fields (dates side by side), ticks as small cards,
	   the summary of the request highlighted, and a button as wide as the card. Only the look: the fields are the ones the server describes. */
	[data-ico='edit'] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }
	.wchat-action:has(.wchat-ask) { padding: 1.1rem 1rem 1.15rem; border-color: color-mix(in srgb, var(--line) 70%, transparent); background: var(--surface); }
	.wchat-action > strong { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.2rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
	.wchat-action > strong::before { content: ''; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 0.7rem; background: var(--brand-soft); }
	.wchat-action > strong::after { content: ''; position: absolute; width: 1.1rem; height: 1.1rem; margin-left: 0.5rem; background: var(--brand); -webkit-mask: var(--i, none) center / contain no-repeat; mask: var(--i, none) center / contain no-repeat; }
	.wchat-action:has(.wchat-ask) { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2.5'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); position: relative; }
	/* A form that holds no day (a reservation of a product, a proposal, a quote) is a sheet, not a calendar; talking to a person is a chat. */
	.wchat-action[data-kind='contact']:has(.wchat-ask) { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
	.wchat-action[data-kind='handoff']:has(.wchat-ask) { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
	.wchat-ask { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 0.7rem; margin-top: 0.7rem; }
	.wchat-ask > * { grid-column: 1 / -1; }
	.wchat-ask > .field:has(input[type='date']), .wchat-ask > .field:has(select[data-field='day']), .wchat-ask > .field:has(select[data-field='time']) { grid-column: auto; }
	.wchat-ask .field { display: grid; gap: 0.35rem; align-content: start; }
	.wchat-ask .label { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); }
	.wchat-ask .hint { margin: 0; font-size: 0.76rem; color: var(--muted); }
	.wchat-ask .field-error { margin: 0; font-size: 0.8rem; font-weight: 500; }
	.wchat-ask .input { box-sizing: border-box; width: 100%; min-height: 2.9rem; padding: 0.65rem 0.95rem; border: 1.5px solid color-mix(in srgb, var(--line) 75%, transparent); border-radius: 0.95rem; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color 140ms, box-shadow 140ms, background 140ms; }
	.wchat-ask textarea.input { min-height: 5.2rem; resize: vertical; line-height: 1.45; }
	.wchat-ask select.input { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b665e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 1rem; }
	.wchat-ask .input::placeholder { color: var(--muted); }
	.wchat-ask .input:focus { border-color: var(--brand); outline: 0; background-color: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
	.wchat-ask .input[aria-invalid='true'] { border-color: var(--danger); background-color: var(--danger-soft); }
	.wchat-ask .check { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.7rem 0.85rem; border: 1px solid color-mix(in srgb, var(--line) 75%, transparent); border-radius: 0.95rem; background: color-mix(in srgb, var(--surface-2) 35%, var(--surface)); font-size: 0.86rem; line-height: 1.4; color: var(--ink-2); cursor: pointer; transition: border-color 140ms, background 140ms; }
	.wchat-ask .check:has(input:checked) { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--brand-soft); }
	.wchat-ask .check input[type='checkbox'] { appearance: none; -webkit-appearance: none; display: grid; flex: none; place-content: center; width: 1.3rem; height: 1.3rem; margin: 0.05rem 0 0; border: 1.5px solid color-mix(in srgb, var(--ink) 32%, transparent); border-radius: 0.45rem; background: var(--surface); cursor: pointer; transition: background 120ms, border-color 120ms; }
	.wchat-ask .check input[type='checkbox']:checked { border-color: var(--brand); background: var(--brand); }
	.wchat-ask .check input[type='checkbox']:checked::after { content: ''; width: 0.8rem; height: 0.8rem; background: var(--brand-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
	.wchat-ask .check input[type='checkbox']:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
	.wchat-ask .btn-primary, .wchat-sheet-foot .btn, .wchat-about-actions .btn, .wchat-action > .btn { min-height: 3rem; border-radius: 999px; font-size: 0.98rem; font-weight: 700; justify-content: center; }
	.wchat-ask .btn-primary, .wchat-sheet-foot .btn-primary, .wchat-about-actions .btn-primary, .wchat-action > .btn-primary { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 72%, #000)); box-shadow: 0 12px 22px -12px color-mix(in srgb, var(--brand) 90%, transparent); transition: transform 140ms, box-shadow 140ms, opacity 140ms; }
	.wchat-ask .btn-primary { width: 100%; justify-self: stretch; margin-top: 0.15rem; }
	.wchat-ask .btn-primary:hover, .wchat-sheet-foot .btn-primary:hover, .wchat-about-actions .btn-primary:hover { transform: translateY(-1px); color: var(--brand-ink); }
	.wchat-ask .btn-primary:disabled { opacity: 0.5; transform: none; box-shadow: none; }
	/* "Seu pedido": the summary that grows as the form is filled in is the heart of the card, so it stands out from the fields. */
	.wchat-board { padding: 0.95rem 1rem; border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: 1.1rem; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
	.wchat-board-title { color: var(--brand); }
	.wchat-board-total { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; padding-top: 0.5rem; border-top: 1px dashed color-mix(in srgb, var(--brand) 30%, var(--line)); }
	.wchat-board-total strong { font-size: 1.4rem; color: var(--ink); }
	/* The receipt after sending: a ticket. */
	.wchat-order { padding: 1rem; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 1.25rem; background: var(--surface); box-shadow: var(--w-card); }
	.wchat-order-code { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
	.wchat-order-facts { gap: 0.4rem; padding-top: 0.2rem; }
	.wchat-order-fact { padding-bottom: 0.4rem; border-bottom: 1px dashed color-mix(in srgb, var(--line) 80%, transparent); }
	.wchat-order-fact:last-child { padding-bottom: 0; border-bottom: 0; }
	@media (max-width: 22rem) {
		.wchat-ask > .field:has(input[type='date']), .wchat-ask > .field:has(select[data-field='day']), .wchat-ask > .field:has(select[data-field='time']) { grid-column: 1 / -1; }
	}

	/* The door of a private chat: the header of the company and the code, and on a wide screen all of it a card in the middle of the page. */
	.wchat-lock { box-sizing: border-box; }
	.wchat-lock .wchat-top { padding-bottom: 1.1rem; }
	@media (min-width: 46rem) {
		body.widget-page .wchat-lock { display: grid; place-items: center; max-width: none; padding: 2rem; box-shadow: none; background: radial-gradient(50rem 26rem at 50% -4rem, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%), var(--bg); }
		.wchat-lock .wchat-main { flex: none; width: 100%; max-width: 27rem; overflow: hidden; border-radius: 1.6rem; background: var(--surface); box-shadow: var(--w-lift), 0 0 0 1px var(--line); }
		.wchat-lock .wlock { padding: 1.5rem 1.75rem 2rem; }
	}

	@keyframes wchat-shimmer { to { background-position: -200% 0; } }
	@keyframes wchat-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
	@keyframes wchat-slide { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
	@keyframes wchat-typing {
		0%, 100% { background: var(--muted); box-shadow: 0.85rem 0 0 var(--dim), 1.7rem 0 0 var(--dim); }
		33% { background: var(--dim); box-shadow: 0.85rem 0 0 var(--muted), 1.7rem 0 0 var(--dim); }
		66% { background: var(--dim); box-shadow: 0.85rem 0 0 var(--dim), 1.7rem 0 0 var(--muted); }
	}
	@keyframes wchat-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(220 38 38 / 0.45); } 50% { box-shadow: 0 0 0 8px rgb(220 38 38 / 0); } }
	@media (prefers-reduced-motion: reduce) {
		.wchat-turn, .wchat-sheet, .wchat-mic, .wchat-welcome, .wchat-skeleton, .wchat-order, .wchat-turn[data-waiting] > span:first-child::after { animation: none !important; }
		.wchat-item, .wchat-item-photo img, .wchat-card, .wchat-way, .wchat-example, .wchat-resume-row, .wchat-act-ico, .wchat-strip-toggle .wchat-svg, .wchat-send { transition: none !important; }
		.wchat-log { scroll-behavior: auto; }
	}
}
