/* Voz do Leitor – estilos do site. A cor principal vem de --vdl-cor (Voz do Leitor › Configurações). */
.vdl, .vdl * { box-sizing: border-box; }
.vdl {
	--vdl-borda: #e3e5e8;
	--vdl-texto: #1d2327;
	--vdl-suave: #646970;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	color: var(--vdl-texto);
	background: #fff;
	border-radius: 12px;
	text-align: left;
}
.vdl button { font-family: inherit; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; }
.vdl button:focus-visible, .vdl textarea:focus-visible, .vdl input:focus-visible, .vdl-aba:focus-visible { outline: 2px solid var(--vdl-cor, #c8102e); outline-offset: 2px; }

/* Flutuante no canto */
.vdl--canto {
	position: fixed; right: 20px; bottom: 20px; z-index: 99990;
	width: 360px; max-width: calc(100vw - 24px);
	padding: 18px 18px 14px;
	box-shadow: 0 12px 40px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08);
	opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease;
}
.vdl--canto.vdl--esq { right: auto; left: 20px; }
.vdl--canto.vdl--on { opacity: 1; transform: none; }

/* Popup central */
.vdl-fundo { position: fixed; inset: 0; z-index: 99995; background: rgba(15,18,22,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.vdl--popup { width: 460px; max-width: 100%; padding: 24px 24px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); opacity: 0; transform: scale(.97); transition: opacity .2s ease, transform .2s ease; }
.vdl--popup.vdl--on { opacity: 1; transform: none; }

/* No conteúdo */
.vdl--inline { border: 1px solid var(--vdl-borda); padding: 18px 20px 14px; margin: 32px 0; clear: both; }
.vdl--inline .vdl__prog { display: none; }

.vdl__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.vdl__titulo { margin: 0 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--vdl-cor, #c8102e); }
.vdl__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vdl__x { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--vdl-suave); padding: 0 4px; margin: -6px -6px 0 auto !important; border-radius: 6px; }
.vdl__x:hover { color: var(--vdl-texto); background: #f0f0f1; }
.vdl__preview { margin: 0 0 8px; font-size: 12px; background: #fff8e5; border: 1px solid #f0c33c; border-radius: 6px; padding: 4px 8px; }
.vdl__prog { height: 3px; background: #f0f0f1; border-radius: 3px; margin: 2px 0 12px; overflow: hidden; }
.vdl__prog span { display: block; height: 100%; width: 0; background: var(--vdl-cor, #c8102e); transition: width .3s ease; }
.vdl__intro { margin: 0 0 10px; color: var(--vdl-suave); font-size: 14px; }
.vdl__pergunta { margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.vdl__ajuda { margin: -6px 0 12px; font-size: 13px; color: var(--vdl-suave); }

/* Botões de nota */
.vdl__ops { display: flex; gap: 6px; flex-wrap: nowrap; }
.vdl__op {
	flex: 1 1 0; min-width: 0; min-height: 40px; padding: 6px 2px;
	border: 1px solid var(--vdl-borda); background: #fff; color: var(--vdl-texto);
	border-radius: 8px; font-size: 15px; font-weight: 600; transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.vdl__op:hover { border-color: var(--vdl-cor, #c8102e); }
.vdl__op:active { transform: scale(.96); }
.vdl__op.is-sel { background: var(--vdl-cor, #c8102e); border-color: var(--vdl-cor, #c8102e); color: var(--vdl-cor-texto, #fff); }
.vdl__ops--nps { gap: 4px; }
.vdl__ops--nps .vdl__op { font-size: 14px; min-height: 38px; }
.vdl__ops--estrelas { gap: 4px; justify-content: flex-start; }
.vdl__ops--estrelas .vdl__op { flex: 0 0 auto; width: 44px; height: 44px; border: 0; background: none; font-size: 32px; line-height: 1; color: #c3c4c7; padding: 0; }
.vdl__ops--estrelas .vdl__op.is-ate, .vdl__ops--estrelas .vdl__op.is-sel { background: none; color: #f0b400; }
.vdl__ops--estrelas:hover .vdl__op { color: #f0b400; }
.vdl__ops--estrelas .vdl__op:hover ~ .vdl__op { color: #c3c4c7; }
.vdl__ops--emoji .vdl__op { min-height: 64px; padding: 6px 0; }
.vdl__emo { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vdl__emo-i { font-size: 26px; line-height: 1.1; }
.vdl__emo-t { font-size: 11px; font-weight: 500; }
.vdl__ops--emoji .vdl__op.is-sel .vdl__emo-t { color: inherit; }
.vdl__ops--sim_nao { gap: 10px; }
.vdl__ops--sim_nao .vdl__op { min-height: 44px; }
.vdl__legenda { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--vdl-suave); }

/* Escolhas */
.vdl__lista { display: flex; flex-direction: column; gap: 6px; }
.vdl__item {
	display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
	padding: 9px 12px; border: 1px solid var(--vdl-borda); background: #fff; color: var(--vdl-texto);
	border-radius: 8px; font-size: 14px; font-weight: 400; line-height: 1.3;
}
.vdl__item:hover { border-color: var(--vdl-cor, #c8102e); }
.vdl__marca { flex: 0 0 auto; width: 16px; height: 16px; border: 2px solid #a7aaad; border-radius: 50%; position: relative; }
.vdl__item--multi .vdl__marca { border-radius: 4px; }
.vdl__item.is-sel { border-color: var(--vdl-cor, #c8102e); background: #fafafa; font-weight: 600; }
.vdl__item.is-sel .vdl__marca { border-color: var(--vdl-cor, #c8102e); background: var(--vdl-cor, #c8102e); box-shadow: inset 0 0 0 2px #fff; }
.vdl__outro, .vdl__texto {
	width: 100%; margin-top: 8px; padding: 9px 11px; font: inherit; font-size: 14px; color: var(--vdl-texto);
	border: 1px solid #c3c4c7; border-radius: 8px; background: #fff; resize: vertical;
}
.vdl__texto { margin-top: 0; min-height: 76px; }

.vdl__pe { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; min-height: 8px; }
.vdl__btn {
	border: 0; border-radius: 8px; padding: 9px 18px; font-size: 14px; font-weight: 700;
	background: var(--vdl-cor, #c8102e); color: var(--vdl-cor-texto, #fff);
}
.vdl__btn:disabled { opacity: .4; cursor: not-allowed; }
.vdl__pular { background: none; border: 0; padding: 6px 2px; color: var(--vdl-suave); font-size: 13px; text-decoration: underline; }
.vdl__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.vdl__obrigado { display: flex; align-items: center; gap: 12px; padding: 4px 0 6px; }
.vdl__obrigado p { margin: 0; font-size: 15px; font-weight: 600; }
.vdl__ok { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--vdl-cor, #c8102e); color: var(--vdl-cor-texto, #fff); font-weight: 700; }

/* Aba lateral */
.vdl-aba {
	position: fixed; right: 0; top: 50%; z-index: 99989; transform: translateY(-50%) rotate(180deg);
	writing-mode: vertical-rl; padding: 14px 9px; border: 0; border-radius: 0 8px 8px 0;
	background: var(--vdl-cor, #c8102e); color: var(--vdl-cor-texto, #fff);
	font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: .03em; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.vdl-aba--esq { right: auto; left: 0; transform: translateY(-50%); border-radius: 0 8px 8px 0; }
.vdl-aba.is-aberta { opacity: .85; }

/* Celular: cartão vira uma folha na base da tela */
@media (max-width: 600px) {
	.vdl--canto, .vdl--canto.vdl--esq { left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; border-radius: 14px 14px 0 0; padding: 16px 16px calc(12px + env(safe-area-inset-bottom)); }
	.vdl__ops--nps { flex-wrap: wrap; }
	.vdl__ops--nps .vdl__op { flex: 0 0 calc((100% - 20px) / 6); }
	.vdl__pergunta { font-size: 16px; }
	.vdl-aba { padding: 12px 7px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.vdl--canto, .vdl--popup, .vdl__prog span { transition: none; }
}
