/* M-Pesa Manual — checkout card styling (classic checkout + Checkout Block + order-received page) */

.mm-description {
	margin: 0 0 12px;
	color: #4a4a4a;
	font-size: 14px;
	line-height: 1.5;
}

.mm-card {
	background: linear-gradient( 135deg, #f4fff7 0%, #eafaf0 100% );
	border: 1px solid #c9ecd6;
	border-radius: 12px;
	padding: 18px 20px;
	margin: 10px 0 4px;
	box-shadow: 0 2px 10px rgba( 0, 166, 81, 0.08 );
	max-width: 420px;
}

.mm-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	border-bottom: 1px dashed #cdeedb;
}

.mm-card__row:last-of-type {
	border-bottom: none;
}

.mm-card__label {
	font-size: 12px;
	color: #4f7a5c;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.mm-card__value {
	font-size: 15px;
	font-weight: 700;
	color: #1f3d28;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	letter-spacing: 0.02em;
	text-align: right;
}

.mm-card__row--amount .mm-card__value,
.mm-amount {
	font-size: 19px;
	color: #00802b;
}

.mm-amount__display {
	display: inline-block;
	transition: opacity 0.15s ease;
}

.mm-convert-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	margin-top: 14px;
	padding: 11px 16px;
	background: #00a651;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.mm-convert-btn:hover {
	background: #028a43;
}

.mm-convert-btn:active {
	transform: scale( 0.98 );
}

.mm-convert-btn:focus-visible {
	outline: 2px solid #00802b;
	outline-offset: 2px;
}

.mm-blocks-content .mm-card {
	margin-top: 6px;
}

.mm-phone-field {
	max-width: 420px;
	margin: 14px 0 4px;
}

.mm-phone-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1f3d28;
	margin-bottom: 4px;
}

.mm-phone-field .required {
	color: #c0392b;
}

.mm-phone-field input,
.mm-phone-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #c9ecd6;
	border-radius: 8px;
	font-size: 15px;
}

.mm-phone-help {
	font-size: 12px;
	color: #6a8a74;
	margin: 4px 0 0;
}

.mm-phone-error {
	font-size: 12px;
	color: #c0392b;
	margin: 6px 0 0;
}

.mm-code-section {
	max-width: 420px;
	margin: 20px 0 4px;
	padding: 16px 18px;
	background: #fbfdfc;
	border: 1px solid #e2eee6;
	border-radius: 12px;
}

.mm-code-heading {
	margin: 0 0 6px;
	font-size: 16px;
}

.mm-code-form {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.mm-code-input {
	flex: 1 1 180px;
	padding: 10px 12px;
	border: 1px solid #c9ecd6;
	border-radius: 8px;
	font-size: 15px;
	text-transform: uppercase;
}

.mm-code-submit {
	flex: 0 0 auto;
}

.mm-code-result {
	margin: 10px 0 0;
	font-size: 13px;
	min-height: 1em;
}

.mm-code-result--verified,
.mm-code-status--verified {
	color: #00802b;
	font-weight: 600;
}

.mm-code-result--pending {
	color: #4f7a5c;
}

.mm-code-result--error {
	color: #c0392b;
}

.mm-email-details {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.mm-email-details li {
	padding: 4px 0;
}

@media ( max-width: 480px ) {
	.mm-card {
		max-width: 100%;
		padding: 14px 16px;
	}

	.mm-card__row {
		flex-wrap: wrap;
	}
}
