/* =========================================================
   Provador de Tamanho — frontend v1.9.0
   Tokens: o modal herda --pt-accent da cor do botão (Estilos).
   ========================================================= */
.pt-provador { margin: 1em 0; }
.pt-open-modal {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	border: 0; padding: 12px 20px; background: #222; color: #fff;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
	text-transform: none; letter-spacing: 0; border-radius: 6px;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.pt-open-modal:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.pt-open-modal .pt-btn-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* ---------- Modal shell ---------- */
.pt-modal {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	--pt-accent: #16181d;
	--pt-accent-ink: #ffffff;
	--pt-ink: #171a20;
	--pt-muted: #6b7280;
	--pt-line: #e4e8ee;
	--pt-soft: #f4f6f9;
	font-size: 15px; line-height: 1.45; color: var(--pt-ink);
}
.pt-modal[hidden] { display: none; }
.pt-modal__backdrop {
	position: absolute; inset: 0; background: rgba(13,17,24,.55);
	backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
	animation: ptFade .25s ease both;
}
.pt-modal__box {
	position: relative; background: #fff; color: var(--pt-ink);
	width: 92%; max-width: 420px; max-height: 90vh; overflow-y: auto;
	padding: 26px 24px 24px; border-radius: 20px;
	box-shadow: 0 24px 80px rgba(13,20,33,.30);
	animation: ptPop .3s cubic-bezier(.2,.8,.25,1) both;
}
.pt-modal__close {
	position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
	display: flex; align-items: center; justify-content: center;
	border: 0; background: var(--pt-soft); border-radius: 50%;
	font-size: 20px; line-height: 1; cursor: pointer; color: var(--pt-muted);
	transition: background .15s ease, color .15s ease;
}
.pt-modal__close:hover { background: var(--pt-line); color: var(--pt-ink); }

.pt-modal__head { margin-bottom: 18px; padding-right: 36px; }
.pt-modal__title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pt-modal__sub { margin: 3px 0 0; font-size: 13px; color: var(--pt-muted); }

/* ---------- Progress (2 etapas com rótulo) ---------- */
.pt-steps { display: flex; gap: 10px; margin: 14px 0 0; }
.pt-steps__dot {
	flex: 1; font-size: 12px; font-weight: 600; color: var(--pt-muted);
	display: flex; flex-direction: column; gap: 6px;
}
.pt-steps__dot i {
	display: block; height: 4px; border-radius: 99px; background: var(--pt-line);
	transition: background .25s ease;
}
.pt-steps__dot.is-active { color: var(--pt-ink); }
.pt-steps__dot.is-active i { background: var(--pt-accent); }

/* ---------- Campos ---------- */
.pt-step { animation: ptIn .3s ease both; }
.pt-step[hidden] { display: none; }
.pt-step__hint { font-size: 13px; color: var(--pt-muted); margin: 0 0 14px; }

.pt-field { margin-bottom: 16px; }
.pt-field > label, .pt-field__lab {
	display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--pt-ink);
}
.pt-input {
	display: block; width: 100%; box-sizing: border-box;
	height: 48px; padding: 0 14px;
	border: 1.5px solid var(--pt-line); border-radius: 12px;
	font: inherit; font-size: 15px; color: var(--pt-ink); background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.pt-input:focus {
	outline: none; border-color: var(--pt-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pt-accent) 16%, transparent);
}
input.pt-input[type="hidden"] { display: none; }

/* Slider + número lado a lado */
.pt-duo { display: flex; align-items: center; gap: 14px; }
.pt-duo .pt-unitfield { flex: 0 0 108px; }
.pt-range {
	flex: 1; -webkit-appearance: none; appearance: none;
	height: 6px; border-radius: 99px; background: var(--pt-line); cursor: pointer;
}
.pt-range::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; width: 22px; height: 22px;
	border-radius: 50%; background: var(--pt-accent);
	border: 3px solid #fff; box-shadow: 0 1px 6px rgba(13,20,33,.3);
	transition: transform .12s ease;
}
.pt-range::-webkit-slider-thumb:active { transform: scale(1.15); }
.pt-range::-moz-range-thumb {
	width: 16px; height: 16px; border-radius: 50%; background: var(--pt-accent);
	border: 3px solid #fff; box-shadow: 0 1px 6px rgba(13,20,33,.3);
}
.pt-range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--pt-line); }

.pt-unitfield { position: relative; }
.pt-unitfield .pt-input { padding-right: 42px; }
.pt-unit {
	position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	font-size: 13px; color: var(--pt-muted); pointer-events: none;
}

/* Chips (sexo) */
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-chip {
	-webkit-appearance: none; appearance: none; cursor: pointer;
	border: 1.5px solid var(--pt-line); background: #fff; color: var(--pt-ink);
	font: inherit; font-size: 13.5px; font-weight: 600;
	padding: 10px 16px; border-radius: 99px;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.pt-chip:hover { border-color: var(--pt-accent); }
.pt-chip:active { transform: scale(.97); }
.pt-chip.is-on {
	background: var(--pt-accent); border-color: var(--pt-accent); color: var(--pt-accent-ink);
}

/* Segmentado (caimento) */
.pt-seg { display: flex; background: var(--pt-soft); border-radius: 12px; padding: 4px; }
.pt-seg__opt {
	-webkit-appearance: none; appearance: none; cursor: pointer;
	flex: 1; border: 0; background: transparent; color: var(--pt-muted);
	font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 6px;
	border-radius: 9px; transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.pt-seg__opt.is-on {
	background: #fff; color: var(--pt-ink);
	box-shadow: 0 1px 5px rgba(13,20,33,.14);
}

/* Steppers (etapa 2) */
.pt-stepper { display: flex; align-items: center; gap: 8px; }
.pt-stepper__btn {
	-webkit-appearance: none; appearance: none; cursor: pointer;
	flex: 0 0 46px; height: 46px; border: 0; border-radius: 12px;
	background: var(--pt-soft); color: var(--pt-ink);
	font-size: 20px; font-weight: 600; line-height: 1;
	transition: background .15s ease, transform .1s ease;
}
.pt-stepper__btn:hover { background: var(--pt-line); }
.pt-stepper__btn:active { transform: scale(.94); }
.pt-stepper__input { text-align: center; -moz-appearance: textfield; }
.pt-stepper__input::-webkit-inner-spin-button,
.pt-stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Consentimento */
.pt-consent { font-size: 12.5px; color: var(--pt-muted); margin: 16px 0; }
.pt-consent label { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.pt-consent input { margin-top: 2px; accent-color: var(--pt-accent); }

/* ---------- Botões de ação ---------- */
.pt-btn {
	-webkit-appearance: none; appearance: none; cursor: pointer;
	display: block; width: 100%; box-sizing: border-box;
	height: 50px; border: 0; border-radius: 12px;
	font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .01em;
	transition: filter .15s ease, transform .1s ease, background .15s ease;
}
.pt-btn:active { transform: scale(.985); }
.pt-btn--primary { background: var(--pt-accent); color: var(--pt-accent-ink); }
.pt-btn--primary:hover { filter: brightness(1.08); }
.pt-btn--primary:disabled { opacity: .6; cursor: default; }
.pt-btn--ghost { background: #fff; color: var(--pt-ink); border: 1.5px solid var(--pt-line); }
.pt-btn--ghost:hover { border-color: var(--pt-accent); }
.pt-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Palco da silhueta ---------- */
.pt-sil-stage {
	position: relative; display: flex; align-items: center; justify-content: center;
	background: var(--pt-soft); border-radius: 16px; padding: 22px 16px; min-height: 230px;
}
.pt-silhouette { width: 104px; height: auto; color: #c8cfd8; transition: color .3s ease; }
.pt-silhouette path, .pt-silhouette polygon { fill: currentColor; }
.pt-silhouette > circle { fill: currentColor; }
.pt-sil-line line { stroke: #b9c2cd; stroke-width: 1.4; stroke-dasharray: 4 4; transition: stroke .2s ease; }
.pt-sil-line circle { fill: #b9c2cd; transition: fill .2s ease; }
.pt-hl-chest .pt-sil-line--chest line, .pt-hl-waist .pt-sil-line--waist line, .pt-hl-hip .pt-sil-line--hip line, .pt-hl-foot .pt-sil-line--foot line {
	stroke: var(--pt-accent); stroke-dasharray: none; stroke-width: 2;
}
.pt-hl-chest .pt-sil-line--chest circle, .pt-hl-waist .pt-sil-line--waist circle, .pt-hl-hip .pt-sil-line--hip circle, .pt-hl-foot .pt-sil-line--foot circle {
	fill: var(--pt-accent);
}
.pt-conf--alta .pt-silhouette { color: #57b576; }
.pt-conf--media .pt-silhouette { color: #9aa6b4; }
.pt-conf--baixa .pt-silhouette { color: #d9a948; }
.pt-sil-badge {
	position: absolute; right: 14px; bottom: 14px;
	min-width: 46px; height: 46px; padding: 0 10px; box-sizing: border-box;
	display: flex; align-items: center; justify-content: center;
	background: var(--pt-accent); color: var(--pt-accent-ink);
	font-size: 18px; font-weight: 800; border-radius: 50%;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--pt-accent) 45%, transparent);
	animation: ptBadge .45s cubic-bezier(.2,1.4,.4,1) both;
}

/* ---------- Resultado ---------- */
.pt-result { margin-top: 14px; animation: ptIn .35s ease both; }
.pt-result__msg { margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.pt-result__chip {
	display: inline-block; font-size: 12px; font-weight: 700;
	padding: 4px 10px; border-radius: 99px; background: var(--pt-soft); color: var(--pt-muted);
}
.pt-result__chip--alta { background: #e3f3e8; color: #1f7a40; }
.pt-result__chip--media { background: var(--pt-soft); color: var(--pt-muted); }
.pt-result__chip--baixa { background: #faf0db; color: #8a6516; }

.pt-fitmap { margin-top: 14px; }
.pt-fit { margin-bottom: 12px; }
.pt-fit__label { font-size: 12px; font-weight: 600; color: var(--pt-ink); margin-bottom: 4px; }
.pt-fit__track { position: relative; display: flex; height: 10px; border-radius: 99px; overflow: visible; }
.pt-fit__zone { flex: 1; }
.pt-fit__zone--loose { background: #dde8f5; border-radius: 99px 0 0 99px; }
.pt-fit__zone--ideal { background: #d9efdf; }
.pt-fit__zone--tight { background: #f6e3d8; border-radius: 0 99px 99px 0; }
.pt-fit__marker {
	position: absolute; top: -4px; width: 18px; height: 18px; margin-left: -9px;
	background: var(--pt-accent); border: 3px solid #fff; border-radius: 50%;
	box-shadow: 0 1px 6px rgba(13,20,33,.3);
	transition: left .6s cubic-bezier(.2,.8,.25,1);
}
.pt-fit__ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--pt-muted); margin-top: 3px; }

.pt-error {
	margin-top: 14px; padding: 11px 14px; background: #fdecec;
	border: 1px solid #f3c2c2; border-radius: 12px; font-size: 13.5px; color: #8a1f1f;
	animation: ptIn .25s ease both;
}

.pt-result-empty { display: none; }
.pt-result-empty p {
	margin: 12px 0 0; color: var(--pt-muted); font-size: 13px; text-align: center;
	padding: 16px 14px; border: 1.5px dashed var(--pt-line); border-radius: 12px;
}

/* ---------- Desktop: duas colunas ---------- */
@media (min-width: 768px) {
	.pt-modal__box { max-width: 780px; padding: 30px 28px 28px; }
	.pt-modal__cols { display: flex; gap: 26px; align-items: flex-start; }
	.pt-modal__main { flex: 1 1 52%; min-width: 0; }
	.pt-modal__aside { flex: 1 1 48%; min-width: 0; position: sticky; top: 0; }
	.pt-result-empty { display: block; }
	.pt-has-result .pt-result-empty { display: none; }
}

/* ---------- Mobile: bottom sheet ---------- */
@media (max-width: 767px) {
	.pt-modal { align-items: flex-end; }
	.pt-modal__box {
		width: 100%; max-width: none; max-height: 92vh;
		border-radius: 22px 22px 0 0;
		animation: ptSheet .35s cubic-bezier(.2,.8,.25,1) both;
	}
	.pt-modal__aside .pt-sil-stage { display: none; }
	.pt-has-result .pt-modal__aside .pt-sil-stage { display: flex; min-height: 190px; margin-top: 6px; }
	.pt-silhouette { width: 88px; }
	.pt-result-empty { display: none; }
}

/* ---------- Animações ---------- */
@keyframes ptFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ptPop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ptSheet { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes ptIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ptBadge { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

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

/* ---------- Linha de botões (provador + tabela) ---------- */
.pt-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pt-open-chart {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	cursor: pointer; border: 0; padding: 12px 20px; background: #222; color: #fff;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
	text-transform: none; letter-spacing: 0; border-radius: 6px;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.pt-open-chart:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.pt-open-chart .pt-btn-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* ---------- Modal da tabela de medidas ---------- */
.pt-modal--chart .pt-modal__box { max-width: 540px; }
.pt-chart-img { display: block; width: 100%; height: auto; border-radius: 12px; }
.pt-chart-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pt-chart-table {
	width: 100%; border-collapse: separate; border-spacing: 0;
	border: 1.5px solid var(--pt-line); border-radius: 14px; overflow: hidden;
	font-size: 14px;
}
.pt-chart-table th, .pt-chart-table td {
	padding: 11px 14px; text-align: center; border: 0;
}
.pt-chart-table thead th {
	background: var(--pt-soft); color: var(--pt-muted);
	font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.pt-chart-table thead th span { font-weight: 500; text-transform: none; letter-spacing: 0; }
.pt-chart-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--pt-soft) 55%, #fff); }
.pt-chart-table tbody td { border-top: 1px solid var(--pt-line); color: var(--pt-ink); }
.pt-chart-table__size {
	font-weight: 800; color: var(--pt-accent);
}
.pt-chart-note { margin: 10px 0 0; font-size: 12px; color: var(--pt-muted); text-align: center; }

@media (max-width: 767px) {
	.pt-btns .pt-open-modal, .pt-btns .pt-open-chart { flex: 1 1 auto; }
}
