/*!
 * TIO – Calculadora de Salário Intermitente
 * Todos os seletores são escopados em .tio-scope para não vazar para o tema
 * e para resistir a estilos globais de button/input/h2/ul do WordPress.
 */

.tio-scope {
	--tio-azul-institucional: #1F4999;
	--tio-azul-fluxo: #4D83F7;
	--tio-azul-nevoa: #E8EFFF;
	--tio-azul-conexao: #1D25AD;
	--tio-azul-noturno: #0E022F;
	--tio-branco: #FFFFFF;
	--tio-texto: #172033;
	--tio-muted: #5C667A;
	--tio-border-light: #D6E0FF;
	--tio-alert-bg: #FFF7E6;
	--tio-alert-border: #F2B84B;
	--tio-alert-text: #7A4B00;
	--tio-success-bg: #ECFDF3;
	--tio-success-border: #ABEFC6;
	--tio-success-text: #067647;
	--tio-font: "Outfit", Arial, Helvetica, sans-serif;
	--tio-font-serif: "Fraunces", Georgia, serif;

	font-family: var(--tio-font);
	color: var(--tio-texto);
	-webkit-text-size-adjust: 100%;
}

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

.tio-recibo-widget {
	margin: 26px 0;
	max-width: 100%;
}

/* ---------- Botões ----------
 * Variantes com especificidade maior que a base (antes a borda do botão
 * secundário era anulada pelo shorthand `border` da regra base).
 * flex-basis só é usado em linha (row-wrap); nunca em coluna — era isso
 * que transformava o CTA em um oval de ~190px de altura no celular.
 */

.tio-scope .tio-actions,
.tio-scope .tio-receipt-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.tio-scope .tio-btn {
	position: relative;
	display: inline-flex !important;
	justify-content: center !important;
	align-items: center !important;
	flex: 1 1 160px;
	width: auto;
	height: auto !important;
	min-height: 48px !important;
	margin: 0 !important;
	border-radius: 999px !important;
	padding: 12px 18px !important;
	border-width: 2px !important;
	border-style: solid !important;
	font-family: var(--tio-font) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-align: center !important;
	text-decoration: none !important;
	white-space: normal;
	cursor: pointer !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	-webkit-tap-highlight-color: transparent;
}

.tio-scope .tio-btn:focus-visible {
	outline: 3px solid rgba(77, 131, 247, 0.45) !important;
	outline-offset: 2px !important;
}

.tio-scope .tio-btn.tio-btn-primary {
	flex-grow: 1.4;
	background: var(--tio-azul-fluxo) !important;
	color: var(--tio-branco) !important;
	border-color: var(--tio-azul-fluxo) !important;
	box-shadow: 0 10px 22px rgba(77, 131, 247, 0.24) !important;
}

.tio-scope .tio-btn.tio-btn-secondary {
	background: var(--tio-branco) !important;
	color: var(--tio-azul-institucional) !important;
	border-color: var(--tio-azul-institucional) !important;
	box-shadow: none !important;
}

/* Pulso do CTA: anel em pseudo-elemento (box-shadow com !important não anima). */
.tio-scope .tio-btn.tio-btn-primary::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: inherit;
	box-shadow: 0 0 0 0 rgba(77, 131, 247, 0.45);
	opacity: 0;
	pointer-events: none;
}

.tio-scope .tio-recibo-card.is-ready .tio-btn.tio-btn-primary::after {
	animation: tioPulse 1.8s ease-out infinite;
}

.tio-scope .tio-btn.tio-btn-primary:active {
	background: var(--tio-azul-conexao) !important;
	border-color: var(--tio-azul-conexao) !important;
}

@media (hover: hover) {
	.tio-scope .tio-btn.tio-btn-primary:hover {
		background: var(--tio-azul-conexao) !important;
		border-color: var(--tio-azul-conexao) !important;
		color: var(--tio-branco) !important;
		transform: translateY(-1px);
	}

	.tio-scope .tio-btn.tio-btn-secondary:hover {
		background: var(--tio-azul-nevoa) !important;
		color: var(--tio-azul-institucional) !important;
		transform: translateY(-1px);
	}
}

.tio-scope .tio-safe-copy {
	margin: 10px 0 0;
	color: var(--tio-muted);
	font-size: 12px;
	font-weight: 300;
	line-height: 1.35;
	text-align: center;
}

/* ---------- Modal ---------- */

.tio-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(14, 2, 47, 0.78);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
}

.tio-modal-overlay.is-open {
	display: flex;
}

.tio-scope .tio-modal {
	width: 100%;
	max-width: 760px;
	max-height: 92vh;
	max-height: 92dvh;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: var(--tio-branco);
	color: var(--tio-texto);
	border-radius: 10px;
	padding: 24px;
	position: relative;
	border: 1px solid var(--tio-border-light);
	box-shadow: 0 24px 64px rgba(14, 2, 47, 0.30);
	animation: tioFadeIn 0.22s ease;
}

.tio-scope .tio-modal.is-receipt-mode {
	max-width: 980px;
}

.tio-scope .tio-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 36px !important;
	height: 36px !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	display: grid !important;
	place-items: center;
	border-radius: 999px !important;
	border: 1px solid var(--tio-border-light) !important;
	background: var(--tio-azul-nevoa) !important;
	color: var(--tio-azul-institucional) !important;
	font-family: var(--tio-font) !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	box-shadow: none !important;
	cursor: pointer;
}

.tio-scope .tio-modal h3 {
	margin: 0 42px 6px !important;
	padding: 0 !important;
	color: var(--tio-azul-institucional) !important;
	font-family: var(--tio-font) !important;
	font-size: 25px;
	font-weight: 500;
	line-height: 1.15;
	text-align: center;
	text-transform: none;
}

.tio-scope .tio-modal h3 span {
	font-family: var(--tio-font-serif);
	font-style: italic;
	font-weight: 600;
	color: var(--tio-azul-fluxo);
}

.tio-scope .tio-modal-intro {
	margin: 0 auto 16px;
	color: var(--tio-muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	text-align: center;
	max-width: 560px;
}

.tio-scope .tio-hubspot-shell {
	width: 100%;
	min-height: 200px;
	padding: 18px;
	border-radius: 10px;
	background: #F7F9FF;
	border: 1px solid var(--tio-border-light);
}

.tio-scope .tio-hubspot-shell.is-hidden {
	display: none;
}

.tio-scope .tio-hubspot-shell .hs-form-frame {
	width: 100%;
}

.tio-scope .tio-hs-loading {
	margin: 0;
	padding: 24px 0;
	color: var(--tio-muted);
	font-size: 14px;
	text-align: center;
}

.tio-scope .tio-hubspot-shell:has(iframe) .tio-hs-loading {
	display: none;
}

.tio-scope .tio-hubspot-shell iframe {
	width: 100% !important;
	max-width: 100% !important;
}

.tio-scope .tio-hubspot-note {
	margin: 0 0 12px;
	padding: 11px 12px;
	border-radius: 8px;
	background: var(--tio-azul-nevoa);
	color: var(--tio-azul-institucional);
	border: 1px solid var(--tio-border-light);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.35;
}

.tio-scope .tio-form-loading {
	display: none;
	margin-top: 12px;
	padding: 12px;
	border-radius: 8px;
	background: var(--tio-success-bg);
	border: 1px solid var(--tio-success-border);
	color: var(--tio-success-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.tio-scope .tio-form-loading.is-visible {
	display: block;
}

/* ---------- Recibo ---------- */

.tio-scope .tio-final-receipt {
	display: none;
	animation: tioFadeIn 0.26s ease;
}

.tio-scope .tio-final-receipt.is-visible {
	display: block;
}

.tio-scope .tio-receipt-head {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 16px;
	align-items: stretch;
	margin-top: 12px;
}

.tio-scope .tio-receipt-title-card,
.tio-scope .tio-receipt-total-card {
	border-radius: 10px;
	padding: 18px;
	border: 1px solid var(--tio-border-light);
}

.tio-scope .tio-receipt-title-card {
	background: linear-gradient(135deg, var(--tio-azul-noturno) 0%, #071A33 100%);
	color: var(--tio-branco);
}

.tio-scope .tio-receipt-title-card small,
.tio-scope .tio-receipt-total-card small {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	opacity: 0.82;
	margin-bottom: 7px;
}

.tio-scope .tio-receipt-title-card strong {
	display: block;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.16;
}

.tio-scope .tio-receipt-title-card p {
	margin: 8px 0 0;
	color: #D8E1F7;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.4;
}

.tio-scope .tio-receipt-total-card {
	background: var(--tio-azul-nevoa);
	color: var(--tio-azul-institucional);
}

.tio-scope .tio-receipt-total-card strong {
	display: block;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	line-height: 1.05;
}

.tio-scope .tio-receipt-total-card p {
	margin: 8px 0 0;
	color: var(--tio-muted);
	font-size: 12.5px;
	font-weight: 300;
	line-height: 1.35;
}

.tio-scope .tio-receipt-meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 12px 0;
}

.tio-scope .tio-receipt-meta div {
	padding: 10px;
	border-radius: 8px;
	background: #F7F9FF;
	border: 1px solid var(--tio-border-light);
}

.tio-scope .tio-receipt-meta small {
	display: block;
	color: var(--tio-muted);
	font-size: 11.5px;
	font-weight: 300;
	line-height: 1.2;
}

.tio-scope .tio-receipt-meta strong {
	display: block;
	margin-top: 2px;
	color: var(--tio-azul-institucional);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.tio-scope .tio-receipt-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.tio-scope .tio-receipt-section {
	border: 1px solid var(--tio-border-light);
	border-radius: 10px;
	overflow: hidden;
	background: var(--tio-branco);
}

.tio-scope .tio-receipt-section h4 {
	margin: 0 !important;
	padding: 12px 14px !important;
	background: var(--tio-azul-institucional);
	color: var(--tio-branco) !important;
	font-family: var(--tio-font) !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
}

.tio-scope .tio-receipt-line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
	padding: 10px 14px;
	border-top: 1px solid var(--tio-border-light);
	color: var(--tio-texto);
	font-size: 13.2px;
	line-height: 1.28;
}

.tio-scope .tio-receipt-section h4 + .tio-receipt-line {
	border-top: none;
}

.tio-scope .tio-receipt-line span:first-child {
	color: var(--tio-muted);
	font-weight: 300;
	min-width: 0;
}

.tio-scope .tio-receipt-line strong {
	color: var(--tio-azul-institucional);
	font-weight: 700;
	white-space: nowrap;
}

.tio-scope .tio-receipt-line.is-total {
	background: var(--tio-azul-nevoa);
	font-weight: 700;
}

.tio-scope .tio-receipt-line.is-negative strong {
	color: #B42318;
}

.tio-scope .tio-receipt-line.is-positive strong {
	color: var(--tio-success-text);
}

.tio-scope .tio-receipt-note {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 8px;
	background: var(--tio-alert-bg);
	color: var(--tio-alert-text);
	border: 1px solid var(--tio-alert-border);
	font-size: 12.2px;
	font-weight: 300;
	line-height: 1.4;
}

.tio-scope .tio-receipt-signatures {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 18px;
}

.tio-scope .tio-signature-box {
	padding-top: 34px;
	border-top: 1px solid #AEBBDA;
	color: var(--tio-muted);
	text-align: center;
	font-size: 12.5px;
	font-weight: 300;
}

@keyframes tioFadeIn {
	/* Só movimento, sem opacidade: em alguns navegadores (economia de energia,
	   aba em segundo plano) a animação congelava no meio e o recibo ficava "lavado". */
	from { transform: translateY(-4px); }
	to   { transform: translateY(0); }
}


@keyframes tioPulse {
	0%   { opacity: 1; box-shadow: 0 0 0 0 rgba(77, 131, 247, 0.45); }
	100% { opacity: 0; box-shadow: 0 0 0 12px rgba(77, 131, 247, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.tio-scope *,
	.tio-scope *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* O PDF é gerado num iframe isolado; aqui só escondemos o modal se alguém imprimir o post. */
@media print {
	.tio-modal-overlay {
		display: none !important;
	}
}

@media (max-width: 900px) {
	.tio-scope .tio-receipt-head,
	.tio-scope .tio-receipt-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tio-scope .tio-receipt-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tio-recibo-widget {
		margin: 20px 0;
	}

	/* 16px evita o zoom automático do iOS ao focar o campo. */
	.tio-scope .tio-input-wrap input {
		font-size: 16px !important;
	}

	.tio-scope .tio-input-wrap {
		grid-template-columns: 46px minmax(0, 1fr);
	}

	.tio-scope .tio-receipt-actions .tio-btn {
		flex: 1 1 100%;
		width: 100% !important;
	}

	.tio-scope .tio-receipt-signatures {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Modal ocupa a tela toda no celular. */
	.tio-modal-overlay {
		padding: 0;
		align-items: stretch;
	}

	.tio-scope .tio-modal {
		max-width: none;
		max-height: none;
		height: 100%;
		border-radius: 0;
		border: 0;
		padding: 56px 16px 24px;
	}

	.tio-scope .tio-modal-close {
		position: fixed;
		top: 10px;
		right: 10px;
		box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.92), 0 6px 16px rgba(14, 2, 47, 0.18) !important;
	}

	.tio-scope .tio-modal h3 {
		font-size: 22px;
		margin: 0 0 6px !important;
		text-align: left;
	}

	.tio-scope .tio-modal-intro {
		text-align: left;
	}

	.tio-scope .tio-hubspot-shell {
		padding: 12px;
	}

	.tio-scope .tio-receipt-title-card,
	.tio-scope .tio-receipt-total-card {
		padding: 14px;
	}

	.tio-scope .tio-receipt-line {
		padding: 10px 12px;
	}
}

@media (max-width: 380px) {
	.tio-scope .tio-receipt-meta {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- v1.2: estados, perfil, próximos passos ---------- */

.tio-scope [hidden] {
	display: none !important;
}

.tio-scope .tio-link-btn {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--tio-azul-institucional) !important;
	font-family: var(--tio-font) !important;
	font-size: inherit !important;
	font-weight: 700 !important;
	line-height: inherit !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	cursor: pointer;
}

.tio-scope .tio-next {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin-top: 18px;
	padding: 18px;
	border-radius: 10px;
	align-items: center;
}

.tio-scope .tio-next-demo {
	background:
		radial-gradient(circle at 92% 0%, rgba(77, 131, 247, 0.35), transparent 40%),
		linear-gradient(135deg, var(--tio-azul-noturno) 0%, #071A33 100%);
	color: var(--tio-branco);
}

.tio-scope .tio-next-demo:has(.tio-next-figure) {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.tio-scope .tio-next-worker {
	background: var(--tio-azul-nevoa);
	border: 1px solid var(--tio-border-light);
}

.tio-scope .tio-next small {
	display: block;
	margin-bottom: 6px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.85;
}

.tio-scope .tio-next-demo small {
	color: #A9C2FB;
}

.tio-scope .tio-next-worker small {
	color: var(--tio-azul-institucional);
}

.tio-scope .tio-next strong {
	display: block;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
}

.tio-scope .tio-next-worker strong {
	color: var(--tio-azul-institucional);
}

.tio-scope .tio-next p {
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.5;
}

.tio-scope .tio-next-demo p {
	color: #D8E1F7;
}

.tio-scope .tio-next-worker p {
	color: var(--tio-texto);
}

.tio-scope .tio-next-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.tio-scope .tio-next-actions .tio-btn {
	flex: 0 1 auto;
	padding-left: 26px !important;
	padding-right: 26px !important;
}

.tio-scope .tio-next p.tio-next-micro {
	margin-top: 8px;
	font-size: 12px;
	opacity: 0.8;
}

.tio-scope .tio-next-figure {
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(232, 239, 255, 0.25);
	background: var(--tio-branco);
}

.tio-scope .tio-next-figure img {
	display: block;
	width: 100%;
	height: auto;
}

/* Agenda embutida */
.tio-scope .tio-demo-embed {
	margin-top: 8px;
}

.tio-scope .tio-demo-frame iframe {
	display: block;
	width: 100%;
	min-height: 680px;
	margin-top: 10px;
	border: 1px solid var(--tio-border-light);
	border-radius: 10px;
	background: var(--tio-branco);
}

.tio-scope .tio-demo-done {
	margin-top: 12px;
	padding: 14px;
	border-radius: 8px;
	background: var(--tio-success-bg);
	border: 1px solid var(--tio-success-border);
	color: var(--tio-success-text);
	font-size: 14px;
	line-height: 1.4;
}

.tio-scope .tio-demo-done strong {
	display: block;
}

/* Trava de rolagem que preserva a posição (evita o "pulo" para o topo). */
body.tio-scroll-locked {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	overflow: hidden !important;
}

@media (max-width: 640px) {
	.tio-scope .tio-profile-option {
		padding: 9px 10px 9px 30px !important;
	}

	.tio-scope .tio-profile-option::before {
		left: 10px;
		top: 12px;
	}

	.tio-scope .tio-profile-option strong {
		font-size: 13.5px;
	}

	.tio-scope .tio-next {
		padding: 16px;
	}

	.tio-scope .tio-next-demo:has(.tio-next-figure) {
		grid-template-columns: minmax(0, 1fr);
	}

	.tio-scope .tio-next-actions .tio-btn {
		flex: 1 1 100%;
		width: 100% !important;
	}

	.tio-scope .tio-demo-frame iframe {
		min-height: 760px;
	}
}

.tio-scope .tio-receipt-head + .tio-receipt-actions {
	margin-top: 12px;
}

.tio-scope .tio-receipt-actions + .tio-next,
.tio-scope .tio-next + .tio-next {
	margin-top: 12px;
}

/* Legibilidade do recibo: Outfit 300 em cinza ficava fraco demais. */
.tio-scope .tio-receipt-line span:first-child,
.tio-scope .tio-receipt-meta small,
.tio-scope .tio-receipt-total-card p,
.tio-scope .tio-modal-intro,
.tio-scope .tio-receipt-note {
	font-weight: 400;
}

.tio-scope .tio-receipt-line span:first-child,
.tio-scope .tio-receipt-meta small,
.tio-scope .tio-receipt-total-card p,
.tio-scope .tio-modal-intro {
	color: #465063;
}

.tio-scope .tio-receipt-meta small {
	font-size: 12px;
}

/* ---------- v1.5: caminhos personalizados ---------- */

.tio-scope .tio-result-nudge strong {
	font-weight: 700;
}

/* Gestor: custo para a empresa */
.tio-scope .tio-next-cost {
	background: var(--tio-branco);
	border: 1px solid var(--tio-border-light);
	box-shadow: 0 8px 22px rgba(31, 73, 153, 0.08);
}

.tio-scope .tio-next-cost small {
	color: var(--tio-azul-institucional);
}

.tio-scope .tio-next-cost > .tio-next-body > strong {
	color: var(--tio-azul-institucional);
}

.tio-scope .tio-cost-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.tio-scope .tio-cost-item {
	padding: 12px 14px;
	border-radius: 8px;
	background: var(--tio-azul-nevoa);
	border: 1px solid var(--tio-border-light);
}

.tio-scope .tio-cost-item span {
	display: block;
	color: #465063;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
}

.tio-scope .tio-cost-item b {
	display: block;
	margin-top: 4px;
	color: var(--tio-azul-institucional);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.1;
}

.tio-scope .tio-cost-item em {
	display: block;
	margin-top: 4px;
	color: var(--tio-muted);
	font-size: 11.5px;
	font-style: normal;
	line-height: 1.3;
}

.tio-scope .tio-scale {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed var(--tio-border-light);
}

.tio-scope .tio-scale label {
	display: block;
	margin: 0 0 8px;
	color: var(--tio-azul-institucional);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.tio-scope .tio-scale-row {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
}

.tio-scope .tio-scale-row input {
	width: 100% !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 10px 14px !important;
	border: 1.5px solid var(--tio-border-light) !important;
	border-radius: 999px !important;
	background: var(--tio-branco) !important;
	box-shadow: none !important;
	color: var(--tio-texto) !important;
	font-family: var(--tio-font) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-align: center;
}

.tio-scope .tio-scale-row input:focus {
	border-color: var(--tio-azul-fluxo) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(77, 131, 247, 0.18) !important;
}

.tio-scope .tio-next-cost .tio-scale-row p {
	margin: 0;
	color: var(--tio-texto);
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.45;
}

.tio-scope .tio-next-cost .tio-scale-row p b {
	color: var(--tio-azul-institucional);
	font-weight: 700;
}

.tio-scope .tio-next-actions {
	align-items: center;
}

.tio-scope .tio-next-link {
	color: #CFE0FF !important;
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

/* Trabalhador: checklist e indicação */
.tio-scope .tio-checklist {
	margin: 12px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: grid;
	gap: 8px;
}

.tio-scope .tio-checklist li {
	position: relative;
	margin: 0 !important;
	padding: 0 0 0 28px !important;
	list-style: none !important;
	color: var(--tio-texto);
	font-size: 14px;
	line-height: 1.45;
}

.tio-scope .tio-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 1px;
	width: 18px;
	height: 18px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: var(--tio-azul-institucional);
	color: var(--tio-branco);
	font-size: 11px;
	font-weight: 800;
}

.tio-scope .tio-checklist b {
	color: var(--tio-azul-institucional);
	font-weight: 700;
}

.tio-scope .tio-share {
	margin-top: 16px;
	padding: 16px;
	border-radius: 10px;
	background: var(--tio-branco);
	border: 1px solid var(--tio-border-light);
}

.tio-scope .tio-next .tio-share .tio-share-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--tio-azul-institucional);
}

.tio-scope .tio-share p {
	margin-top: 6px;
	font-size: 13.5px;
}

.tio-scope .tio-next-more {
	margin-top: 12px !important;
	font-size: 13.5px !important;
}

.tio-scope .tio-next-more a {
	color: var(--tio-azul-institucional);
	font-weight: 600;
}

@media (max-width: 640px) {
	.tio-scope .tio-cost-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tio-scope .tio-cost-item {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 10px;
		align-items: baseline;
	}

	.tio-scope .tio-cost-item b {
		grid-row: span 2;
		margin: 0;
		font-size: 19px;
	}

	.tio-scope .tio-scale-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.tio-scope .tio-next-actions .tio-link-btn {
		width: 100%;
		text-align: center !important;
	}
}


/* ==========================================================================
   v1.7 — Banner compacto (mobile-first). A prévia só aparece após "Calcular".
   O layout responde à largura do PRÓPRIO bloco (container query).
   ========================================================================== */

.tio-recibo-widget {
	container: tiocalc / inline-size;
}

/* Hello Elementor aplica white-space: nowrap, cor rosa e hover rosa em todo <button>. */
.tio-scope button,
.tio-scope button *,
.tio-scope a.tio-btn {
	white-space: normal !important;
	word-break: normal;
	overflow-wrap: anywhere;
}

.tio-scope .tio-recibo-card {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	padding: 18px 16px 14px;
	color: var(--tio-branco);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(77, 131, 247, 0.28) 0%, transparent 46%),
		radial-gradient(90% 120% at 0% 0%, rgba(31, 73, 153, 0.36) 0%, transparent 52%),
		linear-gradient(160deg, var(--tio-azul-noturno) 0%, #0A1844 58%, var(--tio-azul-noturno) 100%);
	border: 1px solid rgba(232, 239, 255, 0.14);
	box-shadow: 0 22px 48px -22px rgba(14, 2, 47, 0.6);
}

.tio-scope .tio-recibo-card::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, transparent, rgba(232, 239, 255, 0.35), transparent) top / 100% 1px no-repeat,
		linear-gradient(90deg, rgba(232, 239, 255, 0.045) 0 1px, transparent 1px 100%);
	background-size: 100% 1px, 44px 100%;
}

.tio-scope .tio-banner-head,
.tio-scope .tio-banner-form {
	position: relative;
	z-index: 1;
}

/* ----- Cabeçalho ----- */

.tio-scope .tio-recibo-tag {
	display: none;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	padding: 5px 10px 5px 6px;
	border-radius: 999px;
	background: rgba(232, 239, 255, 0.08);
	border: 1px solid rgba(232, 239, 255, 0.16);
	color: #DCE6FF;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
}

.tio-scope .tio-recibo-tag::before {
	content: "✓";
	width: 15px;
	height: 15px;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
	background: var(--tio-azul-fluxo);
	color: var(--tio-branco);
	font-size: 9.5px;
	font-weight: 800;
}

.tio-scope .tio-recibo-title {
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	color: var(--tio-branco) !important;
	font-family: var(--tio-font) !important;
	font-size: 20px !important;
	font-weight: 300 !important;
	line-height: 1.22 !important;
	letter-spacing: -0.012em;
	text-transform: none;
}

.tio-scope .tio-recibo-title::before,
.tio-scope .tio-recibo-title::after {
	content: none !important;
	display: none !important;
}

.tio-scope .tio-recibo-title span {
	font-family: var(--tio-font-serif);
	font-style: italic;
	font-weight: 600;
	color: #7DA3FF;
}

.tio-scope .tio-banner-sub {
	display: none;
	margin: 6px 0 0 !important;
	max-width: 62ch;
	color: #B9C8EC;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

/* ----- Formulário ----- */

.tio-scope .tio-banner-form {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

.tio-scope .tio-profile {
	display: grid;
	gap: 6px;
	margin: 0;
}

.tio-scope .tio-profile-label,
.tio-scope .tio-field-group label {
	display: block;
	margin: 0;
	color: #A9BCE8;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 15px;
	text-transform: uppercase;
}

.tio-scope .tio-seg {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	padding: 4px;
	border-radius: 12px;
	background: rgba(232, 239, 255, 0.06);
	border: 1px solid rgba(232, 239, 255, 0.14);
}

.tio-scope .tio-seg .tio-seg-opt {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 38px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 8px !important;
	border: 0 !important;
	border-radius: 9px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #DCE6FF !important;
	font-family: var(--tio-font) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.1 !important;
	letter-spacing: 0 !important;
	text-align: center !important;
	text-transform: none !important;
	white-space: nowrap !important;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
	.tio-scope .tio-seg .tio-seg-opt:hover {
		background: rgba(232, 239, 255, 0.08) !important;
		color: var(--tio-branco) !important;
	}
}

.tio-scope .tio-seg .tio-seg-opt[aria-checked="true"] {
	background: var(--tio-branco) !important;
	color: var(--tio-azul-institucional) !important;
	box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45) !important;
}

.tio-scope .tio-seg .tio-seg-opt:focus-visible {
	outline: 2px solid #7DA3FF !important;
	outline-offset: 1px;
}

.tio-scope .tio-profile.is-invalid .tio-seg {
	border-color: #F97066;
	box-shadow: 0 0 0 3px rgba(249, 112, 102, 0.18);
}

/* Campos */
.tio-scope .tio-fields-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	align-items: start;
}

.tio-scope .tio-field-group {
	display: grid;
	gap: 6px;
	min-width: 0;
	margin: 0;
}

.tio-scope .tio-field {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 46px;
	padding: 0 14px;
	border-radius: 12px;
	background: var(--tio-branco);
	border: 1px solid rgba(232, 239, 255, 0.6);
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tio-scope .tio-field:focus-within {
	border-color: var(--tio-azul-fluxo);
	box-shadow: 0 0 0 3px rgba(125, 163, 255, 0.45);
}

.tio-scope .tio-affix {
	flex: none;
	color: var(--tio-azul-institucional);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	opacity: 0.75;
}

.tio-scope .tio-field input {
	flex: 1 1 auto;
	width: 100% !important;
	min-width: 0 !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: none !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--tio-azul-noturno) !important;
	font-family: var(--tio-font) !important;
	font-size: 16px !important; /* 16px evita zoom automático no iOS */
	font-weight: 500 !important;
	line-height: 1 !important;
	-webkit-appearance: none;
	appearance: none;
}

.tio-scope .tio-field input::placeholder {
	color: #A3AEC6;
	font-weight: 400;
	opacity: 1;
}

.tio-scope .tio-field-group.is-invalid .tio-field {
	border-color: #F97066;
	box-shadow: 0 0 0 3px rgba(249, 112, 102, 0.25);
}

.tio-scope .tio-field-error {
	display: none;
	margin: 0 !important;
	color: #FDA29B;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

.tio-scope .is-invalid .tio-field-error {
	display: block;
}

/* Botão Calcular */
.tio-scope .tio-btn.tio-btn-calc {
	grid-column: 1 / -1;
	width: 100% !important;
	height: 46px !important;
	min-height: 0 !important;
	padding: 0 22px !important;
	border-radius: 12px !important;
	border: 1px solid transparent !important;
	background: linear-gradient(180deg, #5B8EFF 0%, #3F6FE8 100%) !important;
	color: var(--tio-branco) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	box-shadow: 0 10px 22px -10px rgba(77, 131, 247, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

@media (hover: hover) {
	.tio-scope .tio-btn.tio-btn-calc:hover {
		background: linear-gradient(180deg, #4D83F7 0%, var(--tio-azul-conexao) 100%) !important;
		transform: translateY(-1px);
	}
}

/* Depois de calcular, no celular o botão sai de cena (volta se um valor mudar). */
.tio-scope .tio-recibo-card.is-calculated .tio-btn.tio-btn-calc {
	display: none !important;
}

/* Aviso de salário mínimo */
.tio-scope .tio-wage-warning {
	display: none;
	margin: 0;
	padding: 8px 12px;
	border-radius: 10px;
	background: rgba(242, 184, 75, 0.12);
	border: 1px solid rgba(242, 184, 75, 0.45);
	color: #FBD9A1;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.4;
}

.tio-scope .tio-wage-warning.is-visible {
	display: block;
}

.tio-scope .tio-wage-warning strong {
	color: #FDE7C2;
	font-weight: 700;
}

/* Resultado (só após Calcular) */
.tio-scope .tio-result {
	display: grid;
	gap: 12px;
	padding: 12px;
	border-radius: 14px;
	background: rgba(232, 239, 255, 0.07);
	border: 1px solid rgba(232, 239, 255, 0.16);
	animation: tioFadeIn 0.22s ease;
}

.tio-scope .tio-result.is-flash {
	animation: tioFlashDark 0.9s ease;
}

@keyframes tioFlashDark {
	0%   { box-shadow: 0 0 0 0 rgba(125, 163, 255, 0.55); }
	100% { box-shadow: 0 0 0 10px rgba(125, 163, 255, 0); }
}

.tio-scope .tio-result-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 12px;
	row-gap: 2px;
}

.tio-scope .tio-result-main small {
	grid-column: 1;
	color: #A9BCE8;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.tio-scope .tio-result-main span {
	grid-column: 1;
	color: #B9C8EC;
	font-size: 12.5px;
	line-height: 1.3;
}

.tio-scope .tio-result-main strong {
	grid-column: 2;
	grid-row: 1 / span 2;
	color: var(--tio-branco);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1;
	white-space: nowrap;
}

.tio-scope .tio-result .tio-btn.tio-btn-primary {
	width: 100% !important;
	height: 48px !important;
	min-height: 0 !important;
	padding: 0 20px !important;
	border-radius: 12px !important;
	border: 0 !important;
	background: var(--tio-branco) !important;
	color: var(--tio-azul-institucional) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6) !important;
}

.tio-scope .tio-result .tio-btn.tio-btn-primary::after {
	content: "→";
	position: static;
	inset: auto;
	margin-left: 8px;
	box-shadow: none;
	opacity: 1;
	animation: none !important;
}

@media (hover: hover) {
	.tio-scope .tio-result .tio-btn.tio-btn-primary:hover {
		background: var(--tio-azul-nevoa) !important;
		color: var(--tio-azul-conexao) !important;
		transform: translateY(-1px);
	}
}

/* Rodapé */
.tio-scope .tio-banner-foot {
	margin: 0 !important;
	color: #93A7D6;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

.tio-scope .tio-banner-foot .tio-link-btn {
	color: #CFE0FF !important;
	font-weight: 600 !important;
}

/* ----- Coluna de artigo e telas largas ----- */

@container tiocalc (min-width: 600px) {
	.tio-scope .tio-recibo-card {
		padding: 24px 26px 18px;
		border-radius: 18px;
	}

	.tio-scope .tio-recibo-tag {
		display: inline-flex;
	}

	.tio-scope .tio-recibo-title {
		font-size: clamp(24px, 3.6cqi, 30px) !important;
	}

	.tio-scope .tio-banner-sub {
		display: block;
	}

	.tio-scope.is-compact .tio-banner-sub {
		display: none;
	}

	.tio-scope .tio-banner-form {
		gap: 14px;
		margin-top: 18px;
	}

	.tio-scope .tio-profile {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 14px;
		row-gap: 6px;
	}

	.tio-scope .tio-seg {
		width: 340px;
	}

	.tio-scope .tio-profile .tio-field-error {
		flex-basis: 100%;
	}

	.tio-scope .tio-fields-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
		gap: 12px;
	}

	.tio-scope .tio-field {
		height: 48px;
	}

	/* alinha o botão à base dos campos: altura do rótulo (15px) + gap (6px) */
	.tio-scope .tio-btn.tio-btn-calc {
		grid-column: auto;
		width: auto !important;
		min-width: 148px;
		height: 48px !important;
		margin-top: 21px !important;
	}

	/* No desktop o botão continua visível como "Recalcular", discreto. */
	.tio-scope .tio-recibo-card.is-calculated .tio-btn.tio-btn-calc {
		display: inline-flex !important;
		background: transparent !important;
		border: 1px solid rgba(232, 239, 255, 0.35) !important;
		box-shadow: none !important;
		color: #DCE6FF !important;
	}

	.tio-scope .tio-result {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 16px;
		padding: 14px 14px 14px 18px;
	}

	.tio-scope .tio-result-main {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		column-gap: 12px;
		row-gap: 4px;
	}

	.tio-scope .tio-result-main small {
		flex-basis: 100%;
	}

	.tio-scope .tio-result-main strong {
		font-size: 28px;
	}

	.tio-scope .tio-result .tio-btn.tio-btn-primary {
		width: auto !important;
		padding: 0 24px !important;
	}
}
