.mtm-wrap {
	margin: 2rem 0;
	padding: 1.25rem;
	border: 1px solid #e6e2d8;
	border-radius: 16px;
	background: #fffdf7;
	box-shadow: 0 6px 20px rgba(54, 41, 20, 0.06);
}

.mtm-header h3 {
	margin: 0 0 .35rem;
	font-size: 1.25rem;
	line-height: 1.25;
}

.mtm-header p {
	margin: 0 0 1rem;
	color: #655f55;
	font-size: .95rem;
}

.mtm-notice {
	margin: 0 0 1rem;
	padding: .75rem .9rem;
	border-radius: 10px;
	font-size: .95rem;
	background: #f1f1f1;
}

.mtm-notice[hidden] {
	display: none;
}

.mtm-ok {
	background: #eef8ee;
	border: 1px solid #b8ddb8;
	color: #1f6b32;
}

.mtm-error {
	background: #fff1ef;
	border: 1px solid #efb8ad;
	color: #9f2d1f;
}

.mtm-messages {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: .65rem;
}

.mtm-message {
	padding: .85rem;
	border: 1px solid #eee6d8;
	border-radius: 12px;
	background: #ffffff;
}

.mtm-message-text {
	display: block;
	font-size: 1rem;
	line-height: 1.45;
	color: #2e2a24;
	word-break: break-word;
}

.mtm-message time {
	display: block;
	margin-top: .4rem;
	font-size: .8rem;
	color: #83786a;
}

.mtm-empty {
	margin: 0 0 1rem;
	color: #756d61;
	font-style: italic;
}

.mtm-form {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: .65rem;
	align-items: center;
}

.mtm-form input[type="text"] {
	width: 100%;
	min-height: 44px;
	padding: .7rem .85rem;
	border: 1px solid #d8cdbb;
	border-radius: 999px;
	background: #fff;
	font-size: 1rem;
}

.mtm-form button {
	min-height: 44px;
	padding: .7rem 1rem;
	border: 0;
	border-radius: 999px;
	background: #0f766e;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.mtm-form button:hover,
.mtm-form button:focus {
	background: #115e59;
}

.mtm-counter {
	font-size: .82rem;
	color: #756d61;
	white-space: nowrap;
}

.mtm-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 640px) {
	.mtm-wrap {
		padding: 1rem;
	}

	.mtm-form {
		grid-template-columns: 1fr;
	}

	.mtm-counter {
		justify-self: end;
	}
}
