/**
 * Autograph form styles for single product pages.
 *
 * The .mpwn-autograph container is rendered hidden by default;
 * JS shows it when a physical variation is selected.
 *
 * @package MpwnBlocks
 */

/* ── Container ── */
.mpwn-autograph {
	margin: 1em 0 0.5em;
	padding: 1em;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
}

/* ── Field row ── */
.mpwn-autograph__field {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.mpwn-autograph__field label {
	font-weight: 600;
	font-size: 0.9rem;
	min-width: 80px;
}

.mpwn-autograph__field select {
	flex: 1 1 auto;
	min-width: 180px;
	max-width: 300px;
	padding: 6px 10px;
	font-size: 0.9rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

/* ── Custom message section ── */
.mpwn-autograph__custom {
	margin-top: 10px;
}

.mpwn-autograph__custom label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 4px;
}

.mpwn-autograph__limit {
	font-weight: 400;
	color: #777;
}

.mpwn-autograph__custom input[type="text"] {
	width: 100%;
	padding: 8px 10px;
	font-size: 0.9rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.mpwn-autograph__custom input[type="text"]:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

/* ── Word count ── */
.mpwn-autograph__count {
	display: block;
	margin-top: 4px;
	font-size: 0.8rem;
	color: #777;
	text-align: right;
}

.mpwn-autograph__count--over {
	color: #d63638;
	font-weight: 600;
}
