/* 4x7 motorcycle plate frame builder. The main product photo is the preview. */
.whc-mf {
	--mf-gold: var(--whc-gold, #c9a227);
	--mf-ink: var(--whc-ink, #16181d);
	--mf-line: #e3e5e9;
	--mf-mute: #6b6f78;
	margin: 0 0 18px;
	display: grid;
	gap: 14px;
	font-size: 15px;
}
form.cart > .whc-mf {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
}
.whc-mf [hidden] {
	display: none !important;
}
.whc-mf__row,
.whc-mf__line {
	display: grid;
	gap: 8px;
	min-width: 0;
}
.whc-mf__lbl {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	font-weight: 700;
	font-size: 14px;
	color: var(--mf-ink);
}
.whc-mf__lbl b,
.whc-mf__lbl em {
	font-weight: 500;
	font-style: normal;
	font-size: 13px;
	color: var(--mf-mute);
}

/* Looks */
.whc-mf__looks {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}
.whc-mf__look {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 5px 5px 7px;
	border: 2px solid var(--mf-line);
	border-radius: 10px;
	background: #fff !important;
	color: var(--mf-ink) !important;
	font-weight: 700;
	font-size: 12px;
	line-height: 1.2;
	cursor: pointer;
	min-width: 0;
	box-shadow: none;
}
.whc-mf__look:hover {
	border-color: #b9bdc5;
}
.whc-mf__look.is-on {
	border-color: var(--mf-ink);
}
.whc-mf__look canvas {
	display: block;
	width: 100%;
	border-radius: 6px;
	background: #ececec;
}
.whc-mf__look--custom {
	justify-content: center;
	color: var(--mf-mute) !important;
	text-align: center;
}
.whc-mf__look--custom i {
	font-style: normal;
	font-size: 20px;
	line-height: 1;
}
.whc-mf__look--custom small {
	font-weight: 500;
	font-size: 11px;
}

/* Swatches */
.whc-mf__swatches,
.whc-mf__inkrow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.whc-mf__sw {
	position: relative;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, .18);
	background: var(--sw) !important;
	box-shadow: inset 0 0 0 2px #fff;
	cursor: pointer;
	transition: transform .12s ease;
}
.whc-mf__swatches .whc-mf__sw {
	width: 38px;
	height: 38px;
}
.whc-mf__sw:hover {
	transform: scale(1.08);
}
.whc-mf__sw.is-on {
	outline: 2px solid var(--mf-ink);
	outline-offset: 2px;
}
.whc-mf__sw.is-tone::after {
	content: "";
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .45), inset -1px -1px 0 rgba(0, 0, 0, .35);
}
.whc-mf__sw[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: .45;
}
.whc-mf__sw[aria-disabled="true"]::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -2px;
	bottom: -2px;
	width: 2px;
	background: #6b6f78;
	transform: translateX(-50%) rotate(45deg);
}

/* Lines */
.whc-mf__line {
	padding: 12px;
	border: 1px solid var(--mf-line);
	border-radius: 12px;
	background: #fff;
}
.whc-mf__in {
	display: flex;
	gap: 8px;
	min-width: 0;
}
.whc-mf__in input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #cfd3da;
	border-radius: 10px;
	font-size: 16px;
	text-transform: none;
}
.whc-mf__fontbtn {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 172px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #cfd3da !important;
	border-radius: 10px;
	background: #fff !important;
	color: var(--mf-ink) !important;
	cursor: pointer;
	box-shadow: none;
}
.whc-mf__fontbtn b {
	font-size: 17px;
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.whc-mf__fontbtn span {
	font-size: 12px;
	color: var(--mf-mute);
}
.whc-mf__fontbtn[aria-expanded="true"] {
	border-color: var(--mf-ink) !important;
}
.whc-mf__fonts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 6px;
	max-height: 300px;
	overflow: auto;
	padding: 2px;
}
.whc-mf__font {
	display: block;
	min-width: 0;
	padding: 8px 6px 5px;
	border: 1px solid var(--mf-line);
	border-radius: 8px;
	background: #fbfbfc !important;
	color: var(--mf-ink) !important;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
}
.whc-mf__font:hover {
	border-color: #b9bdc5;
}
.whc-mf__font.is-on {
	border: 2px solid var(--mf-ink);
	background: #fff !important;
}
.whc-mf__font b {
	display: block;
	font-size: 14px;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.whc-mf__font small {
	display: block;
	margin-top: 3px;
	font: 500 10px/1.2 Inter, Arial, sans-serif;
	color: var(--mf-mute);
}
.whc-mf__inks {
	display: flex;
	align-items: center;
	gap: 10px;
}
.whc-mf__inks > span {
	font-size: 12px;
	font-weight: 600;
	color: var(--mf-mute);
}
.whc-mf__x {
	padding: 0;
	border: 0;
	background: none !important;
	color: var(--mf-mute) !important;
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none;
}
.whc-mf__add2 {
	padding: 11px 12px;
	border: 1px dashed #c6cad1;
	border-radius: 12px;
	background: #fff !important;
	color: var(--mf-mute) !important;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
}

/* Price, notes, custom, saving */
.whc-mf__price {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fbf7ea;
	border: 1px solid #efe3bd;
	font-size: 14px;
}
.whc-mf__price span:last-child,
.whc-mf__price em {
	color: var(--mf-mute);
	font-size: 13px;
	font-style: normal;
}
.whc-mf__price em {
	flex-basis: 100%;
}
.whc-mf__tone {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #f2f3f5;
	font-size: 13px;
	color: #3a3d44;
}
.whc-mf__custom {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px;
	border: 1px dashed #cdbb7c;
	border-radius: 12px;
	cursor: pointer;
}
.whc-mf__custom input {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	accent-color: var(--mf-gold);
}
.whc-mf__custom em {
	font-style: normal;
	font-weight: 700;
	color: #8a6d12;
	margin-left: 4px;
}
.whc-mf__custom small {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	color: var(--mf-mute);
}
.whc-mf__notes {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cfd3da;
	border-radius: 10px;
	font-size: 15px;
}
.whc-mf__saving {
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
}
.whc-mf__saving i {
	display: block;
	height: 6px;
	border-radius: 6px;
	background: #eceef1;
	overflow: hidden;
}
.whc-mf__saving b {
	display: block;
	height: 100%;
	width: 0;
	background: var(--mf-gold);
	transition: width .25s ease;
}
.whc-mf__err {
	margin: 0;
	color: #b3261e;
	font-weight: 600;
	font-size: 14px;
}

/* Phones: the preview strip pinned to the top while typing. */
.whc-mf__peek {
	display: none;
}
@media (max-width: 767px) {
	.whc-mf__peek.is-on {
		display: flex;
		justify-content: center;
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		z-index: 99990;
		background: #ececec;
		box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	}
	.whc-mf__peek canvas {
		display: block;
	}
	.whc-mf__looks {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.whc-mf__fontbtn {
		width: 132px;
	}
	.whc-mf__fonts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-height: 260px;
	}
	.whc-mf__sw {
		width: 30px;
		height: 30px;
	}
}

/* "Live preview" on the main photo */
.whc-mf__live {
	position: absolute;
	left: 16px;
	top: 16px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border-radius: 20px;
	background: rgba(22, 24, 29, .88);
	color: #fff;
	font: 700 13px/1 Inter, Arial, sans-serif;
	letter-spacing: .01em;
	pointer-events: none;
}
.whc-mf__live[hidden] {
	display: none;
}
.whc-mf__live i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3ad66b;
	box-shadow: 0 0 0 0 rgba(58, 214, 107, .6);
	animation: whcMfPulse 1.8s ease-out infinite;
}
@keyframes whcMfPulse {
	70% { box-shadow: 0 0 0 7px rgba(58, 214, 107, 0); }
	100% { box-shadow: 0 0 0 0 rgba(58, 214, 107, 0); }
}
@media (max-width: 767px) {
	.whc-mf__live {
		left: 10px;
		top: 10px;
		padding: 6px 10px;
		font-size: 12px;
	}
}

/* Custom color: a rainbow swatch, and the "which color?" box */
.whc-mf__sw--custom {
	background: conic-gradient(from 0deg, #e53935, #fb8c00, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935) !important;
}
.whc-mf__sw--custom::after {
	content: "";
	position: absolute;
	inset: 9px;
	border-radius: 50%;
	background: var(--swc, #8e44ad);
	box-shadow: 0 0 0 2px #fff;
}
.whc-mf__swatches .whc-mf__sw--custom::after {
	inset: 11px;
}
.whc-mf__cc {
	display: grid;
	gap: 8px;
	padding: 12px;
	border: 1px solid #e0cfa0;
	border-radius: 12px;
	background: #fffcf3;
}
.whc-mf__q {
	width: 20px;
	height: 20px;
	padding: 0;
	margin-left: 6px;
	border-radius: 50%;
	border: 1px solid #b9bdc5 !important;
	background: #fff !important;
	color: var(--mf-mute) !important;
	font: 700 12px/18px Inter, Arial, sans-serif;
	cursor: pointer;
	box-shadow: none;
}
.whc-mf__lbl .whc-mf__q {
	vertical-align: middle;
}
.whc-mf__cc .whc-mf__lbl {
	justify-content: flex-start;
}
.whc-mf__ccinfo {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #3a3d44;
}
.whc-mf__ccrow {
	display: flex;
	gap: 8px;
}
.whc-mf__ccrow input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #cfd3da;
	border-radius: 10px;
	font-size: 16px;
}
.whc-mf__ccpick {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 10px;
	border: 1px solid #cfd3da;
	border-radius: 10px;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	color: var(--mf-mute);
	cursor: pointer;
}
.whc-mf__ccpick input {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.whc-mf__ccfee {
	font-size: 12px;
	color: #8a6d12;
	font-weight: 600;
}
.whc-mf__cc[hidden] {
	display: none !important;
}
.whc-mf__cdesign {
	display: grid;
	gap: 10px;
}
.whc-mf__cdesign[hidden] {
	display: none !important;
}
.whc-mf__cc input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #cfd3da;
	border-radius: 10px;
	font-size: 16px;
}

/* Logo */
.whc-mf__logorow {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.whc-mf__upl {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	border-radius: 10px;
	background: var(--mf-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.whc-mf__logoname {
	font-size: 13px;
	color: var(--mf-mute);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 260px;
}
.whc-mf__seg {
	display: inline-flex;
	border: 1px solid #cfd3da;
	border-radius: 10px;
	overflow: hidden;
	width: max-content;
}
.whc-mf__seg button {
	padding: 8px 18px;
	border: 0;
	background: #fff !important;
	color: var(--mf-ink) !important;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
}
.whc-mf__seg button + button {
	border-left: 1px solid #cfd3da;
}
.whc-mf__seg button.is-on {
	background: var(--mf-ink) !important;
	color: #fff !important;
}
.whc-mf__inv {
	font-size: 13px;
	color: #3a3d44;
}
.whc-mf__hint {
	font-size: 12px;
	color: var(--mf-mute);
}
.whc-mf__logo[hidden],
.whc-mf__add2[hidden] {
	display: none !important;
}

/* Example custom design thumbnail next to the Custom design option. */
.whc-mf__customrow {
	display: flex;
	gap: 10px;
	align-items: stretch;
}
.whc-mf__customrow .whc-mf__custom {
	flex: 1;
	min-width: 0;
}
.whc-mf__csample {
	position: relative;
	flex: none;
	width: 92px;
	padding: 0;
	border: 1px solid #e3e5ea;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	cursor: zoom-in;
}
.whc-mf__csample img {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: calc(100% - 20px);
	padding: 4px;
	object-fit: contain;
}
.whc-mf__csample span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 3px 0;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: rgba(17, 18, 20, .72);
}
.whc-mf__csample:hover,
.whc-mf__csample:focus-visible {
	border-color: var(--mf-gold);
	outline: none;
}
.whc-mf__lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(10, 11, 13, .82);
	cursor: zoom-out;
}
.whc-mf__lightbox figure {
	margin: 0;
	max-width: min(900px, 100%);
	text-align: center;
}
.whc-mf__lightbox img {
	display: block;
	width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 14px;
	background: #fff;
}
.whc-mf__lightbox figcaption {
	margin-top: 10px;
	font-size: 14px;
	color: #e9e9ec;
}
.whc-mf__lightbox button {
	position: absolute;
	top: 14px;
	right: 18px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, .14);
	cursor: pointer;
}
@media (max-width: 420px) {
	.whc-mf__csample { width: 76px; }
}
