/* Monaco Tribute Plaques: order form. Matches the Monaco site: Poppins headings,
   Roboto body, charcoal #232323, greys, gold accent #c9a84c, square corners.
   Litho and Bootstrap load after this file, so rules that meet theme defaults
   head-on are scoped under .mtp-form to out-weigh them without !important. */
.mtp-form {
	--mtp-ink: #232323;
	--mtp-text: #6b6b6b;
	/* Help text, counters and the size notes are read, not decoration:
	   grey on white has to clear 4.5:1, and #8f8f8f only reaches 3.2. */
	--mtp-muted: #727272;
	--mtp-line: #e4e4e4;
	--mtp-soft: #f7f7f7;
	--mtp-gold: #c9a84c;
	--mtp-gold-glow: rgba(201, 168, 76, .2);
	--mtp-head: "Poppins", sans-serif;
	margin: 0 0 1.5em;
	color: var(--mtp-text);
	font-size: 15px;
	line-height: 1.7;
}
.mtp-form [hidden],
[data-mtp-button] [hidden] { display: none !important; }

.mtp-lead { margin: 0 0 2.5em; }

/* What happens after you pay */
.mtp-after-pay {
	margin: 0 0 2em;
	padding: 18px 22px;
	border-left: 3px solid var(--mtp-gold);
	background: var(--mtp-soft);
}
.mtp-form .mtp-after-pay__title {
	margin: 0 0 .5em;
	font-family: var(--mtp-head);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mtp-ink);
}
.mtp-after-pay p { margin: 0; font-size: 14px; }

.mtp-blank-note {
	margin: 0 0 2em;
	padding: 18px 22px;
	border-left: 3px solid var(--mtp-gold);
	background: var(--mtp-soft);
	font-size: 14px;
}

/* Steps. float:none undoes the Bootstrap legend float. */
.mtp-fieldset { border: 0; margin: 0 0 2.75em; padding: 0; min-width: 0; }
.mtp-form .mtp-fieldset legend {
	display: block;
	float: none;
	width: 100%;
	margin: 0 0 1.25em;
	padding: 0 0 .9em;
	border-bottom: 1px solid var(--mtp-line);
	font-family: var(--mtp-head);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--mtp-ink);
}

/* Shared control reset: the theme sizes and offsets radios and checkboxes,
   so width, margin and position are all restated here. */
.mtp-form .mtp-radio input,
.mtp-form .mtp-check input {
	appearance: none;
	-webkit-appearance: none;
	position: static;
	top: auto;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 1.5px solid #bdbdbd;
	background-color: #fff;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}
.mtp-form .mtp-radio input:focus-visible,
.mtp-form .mtp-check input:focus-visible { outline: 2px solid var(--mtp-gold); outline-offset: 3px; }

/* Design choice: each option is a selectable card */
.mtp-radio {
	display: flex;
	gap: 14px;
	align-items: center;
	margin: 0 0 10px;
	padding: 16px 20px;
	border: 1px solid var(--mtp-line);
	background: #fff;
	color: var(--mtp-ink);
	cursor: pointer;
	line-height: 1.45;
	transition: border-color .2s, box-shadow .2s;
}
.mtp-radio:hover { border-color: var(--mtp-gold); }
.mtp-radio:has(input:checked) { border-color: var(--mtp-ink); box-shadow: inset 0 0 0 1px var(--mtp-ink); }
.mtp-form .mtp-radio input { margin: 0; border-radius: 50%; }

/* Plaque size: name and price on one line, design area underneath */
.mtp-size__text { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
.mtp-size__price { font-weight: 600; }
.mtp-size__area { flex-basis: 100%; font-size: 13px; color: var(--mtp-muted); order: 3; }
/* Urn: its three measurements on their own line, under the name and price */
.mtp-size__price, .mtp-size__soon { order: 1; }
.mtp-size__dims { flex-basis: 100%; font-size: 14px; order: 2; }
.mtp-size-group { margin: 14px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mtp-muted); }
.mtp-size-group:first-of-type { margin-top: 0; }
.mtp-radio.mtp-size--soon { cursor: not-allowed; background: #f6f5f2; color: var(--mtp-muted); }
.mtp-radio.mtp-size--soon:hover { border-color: var(--mtp-line); }
.mtp-size--soon .mtp-size__name { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.mtp-size__soon { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.mtp-form .mtp-radio input:checked { border-color: var(--mtp-ink); background-image: radial-gradient(circle, var(--mtp-ink) 0 4px, transparent 5px); }

/* Checkboxes */
.mtp-check { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 .5em; cursor: pointer; line-height: 1.55; }
.mtp-check span { font-size: 14px; }
.mtp-form .mtp-check input {
	margin: 2px 0 0;
	border-radius: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 12px;
}
.mtp-form .mtp-check input:checked {
	border-color: var(--mtp-ink);
	background-color: var(--mtp-ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E");
}

/* Text fields */
.mtp-field { margin: 0 0 1.5em; }
.mtp-field label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--mtp-head);
	font-size: 13px;
	font-weight: 500;
	color: var(--mtp-ink);
}
.mtp-field abbr.required { color: var(--mtp-gold); border: 0; text-decoration: none; }
.mtp-field .mtp-label {
	margin: 0 0 12px;
	font-family: var(--mtp-head);
	font-size: 13px;
	font-weight: 500;
	color: var(--mtp-ink);
}

/* Verse list above the inscription */
.mtp-verses { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.mtp-form .mtp-verses select {
	flex: 1 1 220px;
	min-width: 0;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid #dcdcdc;
	border-radius: 0;
	background-color: #fff;
	color: var(--mtp-ink);
	font-family: inherit;
	font-size: 14px;
}
.mtp-form .mtp-verses select.mtp-verse-bible { flex: 0 1 auto; }
.mtp-form .mtp-verses select:focus { border-color: var(--mtp-gold); box-shadow: 0 0 0 3px var(--mtp-gold-glow); outline: none; }
.mtp-verse-notice { margin-top: 8px; font-size: 11px; }
.mtp-form .mtp-field input[type="text"],
.mtp-form .mtp-field input[type="date"],
.mtp-form .mtp-field textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #dcdcdc;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: var(--mtp-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	transition: border-color .2s, box-shadow .2s;
}
.mtp-form .mtp-field textarea { min-height: 120px; resize: vertical; }
.mtp-form .mtp-field input::placeholder,
.mtp-form .mtp-field textarea::placeholder { color: #ababab; }
.mtp-form .mtp-field input:focus,
.mtp-form .mtp-field textarea:focus { border-color: var(--mtp-gold); box-shadow: 0 0 0 3px var(--mtp-gold-glow); outline: none; }

.mtp-help { display: block; margin: .3em 0 .9em; font-size: 13px; color: var(--mtp-muted); }
.mtp-counter { display: block; margin-top: 6px; font-size: 12px; color: var(--mtp-muted); text-align: right; }
.mtp-counter--low { color: #b32d2e; }

.mtp-terms { margin: 0 0 1.25em; padding: 18px 20px; background: var(--mtp-soft); border-left: 2px solid var(--mtp-gold); }
.mtp-shipping-note { margin: 0 0 1.75em; font-size: 13px; color: var(--mtp-muted); text-align: center; }

/* [tribute_plaque_form] on a regular page: a white card on the grey section.
   These sit outside .mtp-form, so the palette is written out in full. */
.mtp-page-form {
	max-width: 820px;
	margin: 0 auto;
	padding: 60px 64px 56px;
	box-sizing: border-box;
	background: #fff;
	border-top: 3px solid #c9a84c;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .07);
}
.mtp-price {
	margin: 0 0 .6em;
	font-family: "Poppins", sans-serif;
	font-size: 34px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: #232323;
	text-align: center;
}
.mtp-page-form .mtp-lead {
	max-width: 560px;
	margin: 0 auto 3em;
	padding-bottom: 2.25em;
	border-bottom: 1px solid #e4e4e4;
	text-align: center;
}
.woocommerce.mtp-page-form form.cart { margin: 0; }
.woocommerce.mtp-page-form form.cart button.single_add_to_cart_button.button.alt {
	display: block;
	float: none;
	width: 100%;
	margin: 0;
	padding: 20px 24px;
	border: 0;
	border-radius: 0;
	background: #232323;
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .16em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .25s, color .25s;
}
.woocommerce.mtp-page-form form.cart button.single_add_to_cart_button.button.alt:hover,
.woocommerce.mtp-page-form form.cart button.single_add_to_cart_button.button.alt:focus-visible {
	background: #c9a84c;
	color: #232323;
}
.mtp-admin-note { padding: .6em .9em; border-left: 4px solid #9a6700; background: #fff8e5; color: #3c2a00; font-size: .92em; margin: 0 0 1.5em; }
.mtp-page-form .mtp-in-cart { margin: 0 0 1.75em; }
.mtp-page-form .mtp-in-cart p { margin: 0 0 .5em; }
.mtp-page-form .mtp-in-cart p:last-child { margin: 0; }
.woocommerce.mtp-page-form .mtp-in-cart .button,
.mtp-admin-note .button { display: inline-block; margin: .35em .4em; padding: .5em 1.1em; background: #1f2937; color: #fff; border-radius: 4px; text-decoration: none; font-weight: 600; }
.woocommerce.mtp-page-form .mtp-in-cart .button:hover,
.mtp-admin-note .button:hover { background: #111827; color: #fff; }
.woocommerce.mtp-page-form .mtp-in-cart .button { float: none; margin: .15em 0; }

.mtp-resumed { padding: .8em 1.1em; border-left: 4px solid #1f7a3a; background: #eef7f0; margin: 0 0 1.25em; }
.mtp-resumed--old { border-color: #9a6700; background: #fff8e5; }
.mtp-find { margin: 0 0 1.5em; font-size: .95em; }
.mtp-find summary { cursor: pointer; font-weight: 600; }
.mtp-find[open] summary { margin-bottom: .5em; }
.mtp-later { margin: 1.75em 0 0; padding: 1em 1.2em; border: 1px dashed #9ca3af; }
.mtp-later p,
.mtp-find p { margin: 0 0 .6em; }
.mtp-later__row { display: flex; flex-wrap: wrap; gap: .5em; }
.mtp-later__email { flex: 1 1 14em; min-width: 0; padding: .55em .7em; border: 1px solid #9ca3af; border-radius: 4px; font: inherit; }
.mtp-later__button { padding: .55em 1.1em; border-radius: 4px; font-weight: 600; cursor: pointer; border: 1px solid #1f2937; background: #fff; color: #1f2937; }
.mtp-later__button:disabled { opacity: .6; cursor: wait; }
.mtp-later__msg { color: #1f7a3a; }
.mtp-later__msg--bad { color: #b42318; }

@media (max-width: 640px) {
	.mtp-page-form { padding: 36px 22px 32px; }
	.mtp-price { font-size: 28px; }
	.mtp-radio { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.mtp-form *,
	.mtp-page-form * { transition: none !important; }
}

/* Windows high-contrast mode paints over custom controls, so hand the radios
   and checkboxes back to the browser there. */
@media (forced-colors: active) {
	.mtp-form .mtp-radio input,
	.mtp-form .mtp-check input {
		appearance: auto;
		-webkit-appearance: auto;
		width: auto;
		height: auto;
	}
}
