:root {
	--tf-color-primary: #6c2bd9;
	--tf-color-primary-light: #ede9fe;
	--tf-color-text: #111827;
	--tf-color-muted: #6b7280;
	--tf-color-border: #e5e7eb;
	--tf-color-bg: #f9fafb;
	--tf-color-card: #ffffff;
	--tf-color-success: #16a34a;
	--tf-radius: 14px;
	--tf-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
	--tf-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.transferencias-page,
.transferencias-page *,
.transferencias-page *::before,
.transferencias-page *::after {
	box-sizing: border-box;
}

.transferencias-page {
	min-height: 100%;
	margin: 0;
	padding: 0;
	background: var(--tf-color-bg);
	font-family: var(--tf-font);
	color: var(--tf-color-text);
	-webkit-text-size-adjust: 100%;
}

.tf-page {
	max-width: 480px;
	margin: 0 auto;
	padding: 2.3rem 1.2rem 4.6rem;
}

.tf-header {
	text-align: center;
	margin-bottom: 2.3rem;
}

.tf-logo {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 16px;
	margin-bottom: 0.9rem;
	box-shadow: var(--tf-shadow);
}

.tf-negocio {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--tf-color-text);
	margin-bottom: 0.3rem;
}

.tf-subtitle {
	font-size: 1rem;
	color: var(--tf-color-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.tf-amount-hero {
	background: var(--tf-color-primary-light);
	border: 1.5px solid var(--tf-color-primary);
	border-radius: var(--tf-radius);
	padding: 1.4rem;
	text-align: center;
	margin-bottom: 1.7rem;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.4;
}

.tf-amount-hero strong {
	display: block;
	font-size: 1.6rem;
	margin-top: 0.4rem;
	color: var(--tf-color-primary);
}

.tf-card {
	background: var(--tf-color-card);
	border-radius: var(--tf-radius);
	box-shadow: var(--tf-shadow);
	overflow: hidden;
	margin-bottom: 1.4rem;
}

.tf-card-header {
	background: var(--tf-color-primary);
	color: #fff;
	padding: 1.2rem 1.4rem;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-weight: 600;
	font-size: 1.1rem;
}

.tf-campos {
	padding: 0.3rem 0;
}

.tf-campo {
	padding: 1.2rem 1.4rem;
	border-bottom: 1px solid var(--tf-color-border);
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.tf-campo:last-child {
	border-bottom: none;
}

.tf-campo-label {
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--tf-color-muted);
}

.tf-campo-valor-row {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	justify-content: space-between;
	flex-wrap: wrap;
}

.tf-campo-valor {
	font-size: 1.2rem;
	font-weight: 600;
	word-break: break-all;
	flex: 1;
	line-height: 1.4;
}

.tf-copy-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.5rem 1rem;
	border: 1.5px solid var(--tf-color-primary);
	border-radius: 8px;
	background: var(--tf-color-primary-light);
	color: var(--tf-color-primary);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

.tf-copy-btn.copied {
	background: var(--tf-color-success);
	border-color: var(--tf-color-success);
	color: #fff;
}

.tf-form-card {
	padding: 1.4rem;
}

.tf-form-card label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.6rem;
	font-size: 1rem;
}

.tf-form-card input[type="text"] {
	width: 100%;
	padding: 0.9rem 1.2rem;
	border: 1.5px solid var(--tf-color-border);
	border-radius: 10px;
	font-size: 1.2rem;
	margin-bottom: 1.2rem;
	font-family: inherit;
}

.tf-submit-btn {
	width: 100%;
	padding: 1rem 1.2rem;
	background: var(--tf-color-primary);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 1.2rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}

.tf-submit-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.tf-form-error {
	color: #dc2626;
	font-size: 1rem;
	margin-bottom: 0.9rem;
	display: none;
}

.tf-waiting,
.tf-success,
.tf-expired {
	text-align: center;
	padding: 2.3rem 1.4rem;
}

.tf-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--tf-color-border);
	border-top-color: var(--tf-color-primary);
	border-radius: 50%;
	animation: tf-spin 0.8s linear infinite;
	margin: 0 auto 1.2rem;
}

@keyframes tf-spin {
	to {
		transform: rotate(360deg);
	}
}

.tf-success-icon {
	font-size: 2.9rem;
	margin-bottom: 0.9rem;
}

.tf-success-message {
	margin-bottom: 1.4rem;
	line-height: 1.5;
}

.tf-success-btn {
	margin-top: 0.6rem;
	width: 100%;
}

.tf-empty {
	text-align: center;
	padding: 3.5rem 1.2rem;
	color: var(--tf-color-muted);
}

.tf-state-hidden {
	display: none !important;
}

.tf-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	background: rgba(17, 24, 39, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.2rem;
	overflow-y: auto;
	font-family: var(--tf-font);
	color: var(--tf-color-text);
}

.tf-overlay *,
.tf-overlay *::before,
.tf-overlay *::after {
	box-sizing: border-box;
}

.tf-modal-wrap {
	position: relative;
	width: 100%;
	max-width: 440px;
}

.tf-modal {
	background: var(--tf-color-card);
	border-radius: 16px;
	max-width: 440px;
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
	padding: 1.4rem 1.4rem 1.7rem;
	position: relative;
}

.tf-modal-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
	color: var(--tf-color-text);
}

.tf-modal-subtitle {
	font-size: 1rem;
	color: var(--tf-color-muted);
	margin: 0 0 1.2rem;
}

.tf-close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	border: none;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: var(--tf-color-muted);
	padding: 0.3rem;
	z-index: 1;
}

.tf-overlay .tf-amount-hero {
	margin-bottom: 1.2rem;
}

.tf-overlay .tf-card {
	margin-bottom: 1.2rem;
	box-shadow: none;
	border: 1px solid var(--tf-color-border);
}

.tf-overlay .tf-card-header {
	background: var(--tf-color-bg);
	color: var(--tf-color-text);
	border-bottom: 1px solid var(--tf-color-border);
}

.tf-overlay .tf-form-card {
	padding: 0;
}

.tf-overlay .tf-form-card input[type="text"] {
	margin-bottom: 0.9rem;
}

#wimpli-frontend-transfer-overlay .tf-modal-wrap {
	max-width: 520px;
}

#wimpli-frontend-transfer-overlay .tf-modal {
	max-width: 520px;
	padding: 2rem 2rem 2.3rem;
	border-radius: 1.4rem;
}

#wimpli-frontend-transfer-overlay .tf-modal-title-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 0.4rem;
	padding-right: 2.3rem;
}

#wimpli-frontend-transfer-overlay .tf-modal-title-icon {
	width: 3.7rem;
	height: 3.7rem;
	flex-shrink: 0;
	margin: 0;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
}

#wimpli-frontend-transfer-overlay .tf-modal-title {
	font-size: 1.7rem;
	margin: 0;
	flex: 1;
	line-height: 1.25;
}

#wimpli-frontend-transfer-overlay .tf-modal-subtitle {
	font-size: 1.2rem;
	line-height: 1.45;
	margin: 0 0 1.4rem;
}

#wimpli-frontend-transfer-overlay .tf-amount-hero {
	font-size: 1.3rem;
	padding: 1.6rem 1.4rem;
	margin-bottom: 1.4rem;
}

#wimpli-frontend-transfer-overlay .tf-amount-hero strong {
	font-size: 2.1rem;
	margin-top: 0.5rem;
}

#wimpli-frontend-transfer-overlay .tf-card-header {
	font-size: 1.2rem;
	padding: 1.2rem 1.4rem;
}

#wimpli-frontend-transfer-overlay .tf-campo {
	padding: 1.3rem 1.4rem;
}

#wimpli-frontend-transfer-overlay .tf-campo-label {
	font-size: 0.9rem;
}

#wimpli-frontend-transfer-overlay .tf-campo-valor {
	font-size: 1.3rem;
}

#wimpli-frontend-transfer-overlay .tf-copy-btn {
	font-size: 1rem;
	padding: 0.6rem 1rem;
}

#wimpli-frontend-transfer-overlay .tf-form-card {
	padding: 1.6rem 0 0;
}

#wimpli-frontend-transfer-overlay .tf-form-card label {
	font-size: 1.2rem;
	margin-bottom: 0.7rem;
}

#wimpli-frontend-transfer-overlay .tf-form-card input[type="text"] {
	font-size: 1.3rem;
	padding: 1rem 1.2rem;
	border-radius: 0.9rem;
	margin-bottom: 1.2rem;
}

#wimpli-frontend-transfer-overlay .tf-submit-btn {
	width: 100%;
	display: block;
	font-size: 1.4rem;
	line-height: 1.4rem;
	border-radius: 6.5rem;
	padding: 1.3rem 1.7rem;
	font-weight: 600;
	text-shadow: 1px 1px 1px var(--button-shadow-color-oscuro, rgba(0, 0, 0, 0.25));
	background: color-mix(in srgb, color-mix(in srgb, var(--color-primary, #646464), white 10%), #393939 15%);
	color: var(--button-text-color-oscuro, #fff);
	border: 0;
}

#wimpli-frontend-transfer-overlay .tf-submit-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

#wimpli-frontend-transfer-overlay .tf-close {
	top: 1.2rem;
	right: 1.2rem;
	font-size: 1.8rem;
}

#wimpli-frontend-transfer-overlay .tf-waiting,
#wimpli-frontend-transfer-overlay .tf-success {
	padding: 2.9rem 1.7rem;
}

#wimpli-frontend-transfer-overlay .tf-success-icon {
	font-size: 3.5rem;
}

/* Transfer comprobante upload (standalone page + checkout modal) */
.transferencias-page .tf-comprobante-upload,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload {
	margin-top: 0;
}

.transferencias-page .tf-comprobante-upload .options_label,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .options_label {
	display: block;
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 0.9rem;
	line-height: 1.4;
}

.transferencias-page .tf-comprobante-upload .attachment_upload_methods,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_upload_methods {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin-bottom: 0;
}

.transferencias-page .tf-comprobante-upload .attachment_method_btn,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_method_btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.5rem;
	padding: 1.7rem 0.6rem;
	border: 1px solid var(--tf-color-border, rgba(0, 0, 0, 0.1));
	border-bottom: none;
	border-radius: 12px 12px 0 0;
	background: #ececf0;
	color: var(--tf-color-muted, #6b7280);
	cursor: pointer;
	appearance: none;
	font: inherit;
	font-size: 1.7rem;
	font-weight: 600;
	filter: saturate(0.85);
	opacity: 0.9;
}

.transferencias-page .tf-comprobante-upload .attachment_method_btn.is-active,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_method_btn.is-active {
	background: #fff;
	color: var(--tf-color-primary, var(--color-primary, #6c2bd9));
	border-color: var(--tf-color-primary, var(--color-primary, #6c2bd9));
	filter: none;
	opacity: 1;
}

.transferencias-page .tf-comprobante-upload .attachment_upload_tab_panels,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_upload_tab_panels {
	text-align: center;
	padding: 1.4rem 1.2rem;
	border: 1.5px solid var(--tf-color-primary, var(--color-primary, #6c2bd9));
	border-radius: 0 0 12px 12px;
	background: #fff;
}

.transferencias-page .tf-comprobante-upload .attachment_tab_panel,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_tab_panel {
	display: none;
}

.transferencias-page .tf-comprobante-upload .attachment_tab_panel.is-active,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_tab_panel.is-active {
	display: block;
}

.transferencias-page .tf-comprobante-upload .attachment_file_hint,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_file_hint {
	margin: 0 0 1.2rem;
	font-size: 1.6rem;
	color: var(--tf-color-muted, #6b7280);
	line-height: 1.4;
}

.transferencias-page .tf-comprobante-upload .attachment_file_pick,
.transferencias-page .tf-comprobante-upload .attachment_preview_delete,
.transferencias-page .tf-comprobante-upload .attachment_preview_view,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_file_pick,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_preview_delete,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_preview_view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: auto;
	padding: 1.2rem 2.6rem;
	border: 0;
	border-radius: 999px;
	background: var(--tf-color-primary, var(--color-primary, #6c2bd9));
	color: #fff;
	font-size: 1.6rem;
	font-weight: 600;
	cursor: pointer;
	line-height: 1;
}

.transferencias-page .tf-comprobante-upload .attachment_preview,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_preview {
	margin-top: 1.2rem;
	text-align: center;
}

.transferencias-page .tf-comprobante-upload .attachment_preview_img,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_preview_img {
	display: block;
	max-width: 100%;
	max-height: 220px;
	margin: 0 auto 0.9rem;
	border-radius: 10px;
	object-fit: contain;
}

.transferencias-page .tf-comprobante-upload .attachment_session_loading,
.transferencias-page .tf-comprobante-upload .attachment_session_error,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_session_loading,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_session_error {
	font-size: 1rem;
	color: var(--tf-color-muted, #6b7280);
	margin: 0.6rem 0;
}

.transferencias-page .tf-comprobante-upload .attachment_qr_image,
#wimpli-frontend-transfer-overlay .tf-comprobante-upload .attachment_qr_image {
	display: block;
	max-width: 220px;
	width: 100%;
	height: auto;
	margin: 0.6rem auto;
}

.transferencias-page .tf-comprobante-form-card,
#wimpli-frontend-transfer-overlay .tf-comprobante-form-card {
	margin-top: 0;
}

.attachment_upload_panel{
	margin-bottom: 0;
}