/* Vigotsky Placetopay – estilos del botón de pagos */
.vgt-ptp {
	--vgt-blue: #1b4f8f;
	--vgt-blue-dark: #143b6b;
	--vgt-orange: #e8582a;
	--vgt-light: #eef4fb;
	--vgt-border: #c9d7ea;
	--vgt-text: #1f2a37;
	--vgt-muted: #5b6878;
	--vgt-ok: #1e7b3c;
	--vgt-warn: #a86400;
	--vgt-bad: #b42318;
	max-width: 760px;
	margin: 24px auto;
	color: var(--vgt-text);
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
}
.vgt-ptp *, .vgt-ptp *::before, .vgt-ptp *::after { box-sizing: border-box; }
.vgt-ptp .vgt-title { color: var(--vgt-blue); font-size: 22px; margin: 0 0 4px; }
.vgt-ptp .vgt-sub { color: var(--vgt-muted); margin: 0 0 16px; }
.vgt-ptp fieldset {
	border: 1px solid var(--vgt-border);
	border-radius: 10px;
	padding: 16px;
	margin: 0 0 16px;
	background: #fff;
}
.vgt-ptp legend { font-weight: 700; color: var(--vgt-blue); padding: 0 6px; }
.vgt-ptp .vgt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 16px; margin-bottom: 4px; }
.vgt-ptp .vgt-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.vgt-ptp .vgt-field input, .vgt-ptp .vgt-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--vgt-border);
	border-radius: 8px;
	font-size: 15px;
	font-weight: 400;
	background: #fff;
	color: var(--vgt-text);
	min-height: 44px;
}
.vgt-ptp .vgt-field input:focus, .vgt-ptp .vgt-field select:focus { outline: 2px solid var(--vgt-blue); outline-offset: 1px; border-color: var(--vgt-blue); }
.vgt-ptp .vgt-field.vgt-invalid input, .vgt-ptp .vgt-field.vgt-invalid select, .vgt-ptp input[aria-invalid="true"] { border-color: var(--vgt-bad); }
.vgt-ptp .vgt-error { color: var(--vgt-bad); font-size: 13px; font-weight: 500; min-height: 0; }
.vgt-ptp .vgt-error:empty { display: none; }
.vgt-ptp .vgt-radio-group { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.vgt-ptp .vgt-radio-group span { width: 100%; }
.vgt-ptp .vgt-radio-group label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }
.vgt-ptp .vgt-total-live {
	margin-top: 8px;
	padding: 12px 14px;
	background: var(--vgt-light);
	border-radius: 8px;
	font-size: 17px;
	color: var(--vgt-blue-dark);
}
.vgt-ptp .vgt-btn, .vgt-ptp a.vgt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--vgt-orange);
	color: #fff !important;
	border: 0;
	border-radius: 8px;
	padding: 12px 22px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none !important;
	min-height: 46px;
	transition: background .15s ease;
}
.vgt-ptp .vgt-btn:hover { background: #cf4519; }
.vgt-ptp .vgt-btn:focus-visible { outline: 3px solid var(--vgt-blue); outline-offset: 2px; }
.vgt-ptp .vgt-btn[disabled] { opacity: .65; cursor: wait; }
.vgt-ptp .vgt-btn-secondary, .vgt-ptp a.vgt-btn-secondary { background: var(--vgt-blue); }
.vgt-ptp .vgt-btn-secondary:hover { background: var(--vgt-blue-dark); }
.vgt-ptp .vgt-btn-pay { width: 100%; font-size: 17px; }
.vgt-ptp .vgt-link-btn { background: none; border: 0; color: var(--vgt-blue); text-decoration: underline; cursor: pointer; padding: 8px 0; font-size: 14px; }
.vgt-ptp .vgt-inline { margin: 4px 0 0; }
.vgt-ptp .vgt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.vgt-ptp .vgt-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; background: #fff; }
.vgt-ptp .vgt-table th, .vgt-ptp .vgt-table td { border: 1px solid var(--vgt-border); padding: 9px 12px; text-align: left; vertical-align: top; }
.vgt-ptp .vgt-summary th, .vgt-ptp .vgt-amounts th { width: 42%; background: var(--vgt-light); color: var(--vgt-blue-dark); font-weight: 600; }
.vgt-ptp .vgt-amounts td { text-align: right; font-variant-numeric: tabular-nums; }
.vgt-ptp .vgt-total-row th, .vgt-ptp .vgt-total-row td { font-size: 18px; font-weight: 800; color: var(--vgt-blue-dark); background: #dfeaf7; }
.vgt-ptp .vgt-checks { margin: 8px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.vgt-ptp .vgt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.vgt-ptp .vgt-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.vgt-ptp .vgt-note { color: var(--vgt-muted); font-size: 14px; }
.vgt-ptp .vgt-alert { padding: 12px 14px; border-radius: 8px; margin: 0 0 14px; }
.vgt-ptp .vgt-alert-error { background: #fdecea; color: var(--vgt-bad); border: 1px solid #f5c2bc; }
.vgt-ptp .vgt-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--vgt-border); }
.vgt-ptp .vgt-logos-label { font-size: 13px; color: var(--vgt-muted); width: 100%; }
.vgt-ptp .vgt-ptp-logo img { height: 36px; width: auto; display: block; }
.vgt-ptp .vgt-franchises { max-width: 100%; height: auto; max-height: 38px; }
.vgt-ptp .vgt-status-badge { display: inline-block; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 17px; margin: 6px 0 12px; }
.vgt-ptp .vgt-status-approved { background: #e3f4e8; color: var(--vgt-ok); }
.vgt-ptp .vgt-status-pending { background: #fff3dc; color: var(--vgt-warn); }
.vgt-ptp .vgt-status-rejected { background: #fdecea; color: var(--vgt-bad); }
.vgt-ptp .vgt-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.vgt-ptp.vgt-history details, .vgt-ptp .vgt-faq-item { border: 1px solid var(--vgt-border); border-radius: 10px; padding: 12px 16px; background: #fff; }
.vgt-ptp.vgt-history summary { font-weight: 700; color: var(--vgt-blue); cursor: pointer; }
.vgt-ptp .vgt-history-form { margin-top: 12px; }
.vgt-ptp .vgt-table-wrap { overflow-x: auto; margin-top: 14px; }
.vgt-ptp .vgt-history-table th { background: var(--vgt-blue); color: #fff; font-size: 13px; }
.vgt-ptp .vgt-history-table td { font-size: 14px; }
.vgt-ptp.vgt-faq .vgt-faq-item { margin-bottom: 8px; }
.vgt-ptp.vgt-faq summary { font-weight: 700; cursor: pointer; color: var(--vgt-blue-dark); }
.vgt-ptp [hidden] { display: none !important; }

@media (max-width: 600px) {
	.vgt-ptp { margin: 16px 0; font-size: 14px; }
	.vgt-ptp fieldset { padding: 12px; }
	.vgt-ptp .vgt-summary th, .vgt-ptp .vgt-amounts th { width: 48%; }
	.vgt-ptp .vgt-history-table thead { display: none; }
	.vgt-ptp .vgt-history-table tr { display: block; border: 1px solid var(--vgt-border); border-radius: 8px; margin-bottom: 10px; }
	.vgt-ptp .vgt-history-table td { display: flex; justify-content: space-between; gap: 10px; border: 0; border-bottom: 1px solid var(--vgt-light); }
	.vgt-ptp .vgt-history-table td::before { content: attr(data-label); font-weight: 600; color: var(--vgt-muted); }
	.vgt-ptp .vgt-btn { width: 100%; }
}
