.mpotp {
	max-width: 420px;
	margin: 0 auto;
	padding: 24px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
	direction: rtl;
	text-align: right;
	box-sizing: border-box;
}
.mpotp *,
.mpotp *::before,
.mpotp *::after { box-sizing: border-box; }
.mpotp [hidden] { display: none !important; }

.mpotp-field { margin-bottom: 14px; position: relative; }
.mpotp-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #374151; }
.mpotp .req { color: #dc2626; }

.mpotp input[type=text],
.mpotp input[type=tel],
.mpotp select {
	width: 100%;
	padding: 11px 12px;
	font-size: 15px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	font-family: inherit;
}
.mpotp input[type=tel],
.mpotp input[name=code] { text-align: left; letter-spacing: 1px; }
.mpotp input:focus,
.mpotp select:focus { outline: 2px solid #2563eb33; border-color: #2563eb; }
.mpotp input[readonly] { background: #f3f4f6; color: #6b7280; }

.mpotp-btn {
	display: block;
	width: 100%;
	padding: 12px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
	background: #2563eb;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s;
}
.mpotp-btn:hover { background: #1d4ed8; }
.mpotp-btn:disabled { opacity: .6; cursor: not-allowed; }

.mpotp-link {
	display: inline-block;
	margin-top: 10px;
	padding: 0;
	font-size: 13px;
	font-family: inherit;
	color: #2563eb;
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
}
.mpotp-link:disabled { color: #9ca3af; text-decoration: none; cursor: default; }
.mpotp-field .mpotp-edit { position: absolute; left: 0; top: 0; margin: 0; }

.mpotp-terms {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 6px 0 16px;
	font-size: 13px;
	line-height: 1.7;
	color: #374151;
	cursor: pointer;
}
.mpotp-terms input { margin-top: 5px; flex: none; }
.mpotp-terms a { color: #2563eb; }

.mpotp-note { margin: 0 0 14px; font-size: 13px; color: #6b7280; }

.mpotp-msg { margin-bottom: 14px; font-size: 14px; }
.mpotp-msg.is-error,
.mpotp-msg.is-ok { padding: 10px 12px; border-radius: 8px; }
.mpotp-msg.is-error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.mpotp-msg.is-ok { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }

.mpotp.is-busy { opacity: .85; }
.mpotp-logged { text-align: center; }
