/* eNumis Coin Request — front-end form.
 * Palette follows the Coin Alert e-mail: gold #9c7631 / #b48a3c, dark #26323c,
 * parchment #f3f1ec, Georgia for headings.
 */

.en-cr {
	--en-cr-gold: #9c7631;
	--en-cr-gold-btn: #b48a3c;
	--en-cr-dark: #26323c;
	--en-cr-line: #e6e1d6;
	--en-cr-paper: #faf8f3;
	max-width: 860px;
	margin: 0 auto;
}

.en-cr-intro {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--en-cr-dark);
}

.en-cr-note {
	margin: 0;
	padding: 14px 16px;
	background: var(--en-cr-paper);
	border: 1px solid var(--en-cr-line);
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.6;
}

/* ------------------------------------------------------------------- rows */

.en-cr-row {
	border: 1px solid var(--en-cr-line);
	border-radius: 10px;
	background: #fff;
	padding: 16px 18px 18px;
	margin: 0 0 14px;
}

.en-cr-row-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 12px;
}

.en-cr-row-n {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-weight: bold;
	letter-spacing: .02em;
	color: var(--en-cr-gold);
	text-transform: uppercase;
}

.en-cr-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--en-cr-line);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	color: #6b737a;
}

.en-cr-remove:hover {
	color: #b3261e;
	border-color: #b3261e;
}

.en-cr-remove svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.en-cr-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 14px;
}

.en-cr-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0;
}

/* Year to sits directly under Year from, in the same column. */
.en-cr-field-year-to {
	grid-column: 2;
}

.en-cr-field-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #6b737a;
}

.en-cr-select,
.en-cr-input {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 11px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--en-cr-dark);
	background: #fff;
	border: 1px solid var(--en-cr-line);
	border-radius: 6px;
	min-height: 42px;
}

.en-cr-select:focus,
.en-cr-input:focus {
	outline: 2px solid var(--en-cr-gold);
	outline-offset: 1px;
	border-color: var(--en-cr-gold);
}

.en-cr-select:disabled {
	background: #f5f5f3;
	color: #9aa1a7;
}

/* ------------------------------------------------------- in-stock matches */

.en-cr-matches {
	margin: 16px 0 0;
	padding: 14px 2px;
	background: var(--en-cr-paper);
	border: 1px solid var(--en-cr-line);
	border-radius: 8px;
}

.en-cr-matches-title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: #2e7d32;
}

.en-cr-matches-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.en-cr-match {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--en-cr-line);
	border-radius: 6px;
	text-decoration: none;
	color: var(--en-cr-dark);
}

.en-cr-match:hover {
	border-color: var(--en-cr-gold);
}

.en-cr-match-img {
	width: 120px;
	height: 60px;
	object-fit: contain;
	flex: 0 0 auto;
}

.en-cr-match-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.en-cr-match-name {
	font-size: 13px;
	line-height: 1.35;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.en-cr-match-price {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-weight: bold;
	color: var(--en-cr-gold);
}

/* ------------------------------------------------------------- add button */

.en-cr-add {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	margin: 2px 0 26px;
	font-size: 15px;
	font-weight: 600;
	color: var(--en-cr-gold);
	background: #fff;
	border: 1px dashed var(--en-cr-gold);
	border-radius: 6px;
	cursor: pointer;
}

.en-cr-add:hover {
	background: var(--en-cr-paper);
}

.en-cr-add svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

/* -------------------------------------------------------------- form foot */

.en-cr-foot {
	padding: 20px 18px 22px;
	background: var(--en-cr-paper);
	border: 1px solid var(--en-cr-line);
	border-radius: 10px;
}

.en-cr-label {
	display: block;
	margin: 0 0 5px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #6b737a;
}

.en-cr-captcha {
	margin: 14px 0 0;
	font-size: 14px;
}

.en-cr-captcha.is-error {
	color: #b3261e;
}

.en-cr-captcha-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.en-cr-captcha-img {
	height: 34px;
	width: auto;
}

.en-cr-captcha-input {
	width: 72px;
	box-sizing: border-box;
	padding: 8px 10px;
	font-size: 15px;
	border: 1px solid var(--en-cr-line);
	border-radius: 6px;
	min-height: 38px;
}

.en-cr-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--en-cr-dark);
}

.en-cr-consent input {
	margin: 3px 0 0;
	flex: 0 0 auto;
}

.en-cr-message {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.5;
	min-height: 0;
}

.en-cr-message.is-error {
	color: #b3261e;
}

.en-cr-submit {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 18px 0 0;
	padding: 12px 26px;
	font-size: 15px;
	font-weight: bold;
	color: #fff;
	background: var(--en-cr-gold-btn);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.en-cr-submit:hover {
	background: var(--en-cr-gold);
}

.en-cr-submit[disabled] {
	opacity: .6;
	cursor: default;
}

.en-cr-submit svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* -------------------------------------------------------------- thank you */

.en-cr-done {
	padding: 34px 24px;
	text-align: center;
	background: var(--en-cr-paper);
	border: 1px solid var(--en-cr-line);
	border-radius: 10px;
}

.en-cr-done-title {
	margin: 0 0 10px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	color: var(--en-cr-dark);
}

/* ------------------------------------------------------------------ phone */

@media (max-width: 640px) {
	.en-cr-fields,
	.en-cr-matches-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.en-cr-field-year-to {
		grid-column: 1;
	}

	.en-cr-row {
		padding: 14px 14px 16px;
	}

	.en-cr-foot {
		padding: 18px 14px 20px;
	}
}
