.r4pm-checkout {
	max-width: 720px;
	margin: 16px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2933;
	line-height: 1.5;
}

.r4pm-error {
	background: #fdecea;
	color: #c0392b;
	border: 1px solid #f5b7b1;
	border-radius: 6px;
	padding: 12px 16px;
}

/* ---- Bloque 1: Datos para pago móvil (solo lectura) ---- */
.r4pm-block,
.r4pm-summary {
	background: #fff;
	border: 1px solid #e4e7eb;
	border-radius: 8px;
	padding: 18px 20px;
	margin-bottom: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.r4pm-paydata {
	background: #f6f7f9;
	border: 1px solid #dfe3e8;
}

.r4pm-title {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
	color: #c62828;
}

.r4pm-paydata-title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #c62828;
	text-align: center;
}

.r4pm-table {
	width: 100%;
	border-collapse: collapse;
}

.r4pm-table td {
	padding: 7px 0;
	border-bottom: 1px solid #eef0f3;
	font-size: 14px;
}

.r4pm-table td:first-child {
	font-weight: 600;
	color: #52606d;
	width: 42%;
}

.r4pm-paydata .r4pm-table td:last-child {
	font-weight: 600;
	color: #1f2933;
}

.r4pm-table .r4pm-total td {
	border-bottom: none;
	font-size: 16px;
	font-weight: 700;
	color: #1f2933;
}

/* ---- Bloque 2: Verificar pago ---- */
.r4pm-verify .r4pm-title {
	text-align: center;
}

.r4pm-field {
	margin-bottom: 14px;
}

.r4pm-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 600;
	color: #3e4c59;
}

.r4pm-field select,
.r4pm-field input[type="text"],
.r4pm-field input[type="tel"] {
	width: 100%;
	padding: 10px 11px;
	border: 1px solid #cbd2d9;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.r4pm-field select:focus,
.r4pm-field input:focus {
	border-color: #c62828;
	outline: none;
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

.r4pm-phone-row {
	display: flex;
	gap: 8px;
}

.r4pm-phone-row .r4pm-phone-prefix {
	width: 32%;
	flex-shrink: 0;
}

.r4pm-phone-row .r4pm-phone-num {
	width: 68%;
}

/* ---- Botón VERIFICAR PAGO (verde, ancho completo) ---- */
.r4pm-btn {
	display: block;
	width: 100%;
	background: #1e9e4a;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 13px 22px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.r4pm-btn:hover:not(:disabled) {
	background: #187a3a;
}

.r4pm-btn:disabled {
	background: #9aa5ad;
	cursor: not-allowed;
	opacity: 0.75;
}

/* ---- Éxito ---- */
.r4pm-status-success {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 6px;
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #1b5e20;
	font-size: 14px;
	font-weight: 700;
}

.r4pm-status-success .r4pm-ok-icon {
	font-size: 16px;
}

/* ---- Toast de error (parte inferior) ---- */
.r4pm-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 440px;
	width: calc(100% - 32px);
	padding: 14px 16px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #f2b8b5;
	border-left: 5px solid #c62828;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	font-size: 14px;
}

.r4pm-toast .r4pm-toast-icon {
	font-size: 22px;
	line-height: 1;
}

.r4pm-toast .r4pm-toast-msg {
	font-weight: 600;
	color: #7f1d1d;
	flex: 1;
}

.r4pm-retry {
	background: #c62828;
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 7px 16px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.r4pm-retry:hover {
	background: #a02020;
}

/* Verificación en curso */
.r4pm-btn.r4pm-loading {
	background: #187a3a;
	cursor: wait;
	opacity: 0.85;
}

@media (max-width: 480px) {
	.r4pm-phone-row {
		flex-direction: column;
		gap: 6px;
	}
	.r4pm-phone-row .r4pm-phone-prefix,
	.r4pm-phone-row .r4pm-phone-num {
		width: 100%;
	}
}
