/* Printmasters Print Configurator */
.pmc {
	--pmc-ink: #15161A;
	--pmc-muted: #55575F;
	--pmc-line: #C9C6BE;
	--pmc-soft: #F6F5F1;
	--pmc-accent: #C2185B;
	--pmc-ok: #1B6E3A;
	--pmc-warn: #8A4500;
	display: flex;
	flex-direction: column;
	gap: 26px;
	margin: 8px 0 24px;
	color: var(--pmc-ink);
	width: 100%;
}

/* Preview */
.pmc-preview {
	background: #E4E2DC;
	border-radius: 8px;
	padding: 36px 24px 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.pmc-preview__card {
	width: min(70%, 320px);
	max-height: 220px;
	background: #FDFDFB;
	border-radius: 2px;
	box-shadow: 0 16px 36px rgba(21, 22, 26, 0.22);
	transition: border-radius .2s ease, aspect-ratio .2s ease;
}
.pmc-preview__card.is-rounded { border-radius: 16px; }
.pmc-preview__card.is-gloss { background: linear-gradient(135deg, #FFFFFF 40%, #F0F0F0 60%, #FFFFFF 75%); }
.pmc-preview__size { font-size: 13px; color: var(--pmc-muted); }

/* Option groups */
.pmc-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.pmc-group__title { font-weight: 600; font-size: 15px; padding: 0; margin: 0 0 10px; }
.pmc-options { display: flex; flex-wrap: wrap; gap: 10px; }

.pmc-opt { position: relative; cursor: pointer; margin: 0; }
.pmc-opt input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.pmc-opt__box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 56px;
	min-width: 116px;
	padding: 9px 16px;
	box-sizing: border-box;
	border: 2px solid var(--pmc-line);
	border-radius: 6px;
	background: #FFFFFF;
	color: var(--pmc-ink);
	transition: border-color .12s ease, background-color .12s ease;
}
.pmc-opt:hover .pmc-opt__box { border-color: var(--pmc-ink); }
.pmc-opt input:checked + .pmc-opt__box {
	background: var(--pmc-ink);
	border-color: var(--pmc-ink);
	color: #FFFFFF;
}
.pmc-opt input:focus-visible + .pmc-opt__box {
	outline: 3px solid var(--pmc-accent);
	outline-offset: 2px;
}
.pmc-opt__label { font-weight: 600; font-size: 15px; line-height: 1.25; }
.pmc-opt__note { font-size: 13px; opacity: .8; padding-top: 2px; line-height: 1.3; }
.pmc-opt__note .woocommerce-Price-amount { font-weight: 400; }

/* Upload */
.pmc-upload, .pmc-design { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.pmc-upload[hidden], .pmc-design[hidden] { display: none; }
.pmc-upload input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}
.pmc-upload__drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
	padding: 26px 18px;
	border: 2px dashed #A9A69E;
	border-radius: 8px;
	background: #FBFAF7;
	cursor: pointer;
}
.pmc-upload__drop:hover { border-color: var(--pmc-ink); }
.pmc-upload:focus-within .pmc-upload__drop { outline: 3px solid var(--pmc-accent); outline-offset: 2px; }
.pmc-upload__title { font-weight: 600; font-size: 15px; text-decoration: underline; }
.pmc-upload__hint { font-size: 13px; color: var(--pmc-muted); }
.pmc-upload__name { font-weight: 600; font-size: 14px; word-break: break-all; }
.pmc-upload__name:empty { display: none; }

.pmc-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pmc-checks li { font-size: 14px; line-height: 1.45; padding-left: 26px; position: relative; }
.pmc-checks li::before {
	position: absolute; left: 0; top: 1px;
	width: 18px; height: 18px; border-radius: 50%;
	color: #FFFFFF; font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.pmc-checks li.is-ok::before { content: "\2713"; background: var(--pmc-ok); }
.pmc-checks li.is-warn { color: var(--pmc-warn); }
.pmc-checks li.is-warn::before { content: "!"; background: var(--pmc-warn); }

.pmc-design__label { font-weight: 600; font-size: 14px; }
.pmc-design textarea { width: 100%; box-sizing: border-box; border: 1px solid #A9A69E; border-radius: 4px; padding: 10px 12px; font: inherit; }

/* Summary */
.pmc-summary {
	background: #FFFFFF;
	border: 1px solid #E2E0DA;
	border-radius: 8px;
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.pmc-summary__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.pmc-summary__row[hidden] { display: none; }
.pmc-summary__row span { color: var(--pmc-muted); }
.pmc-summary__total {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	border-top: 1px solid #E2E0DA; padding-top: 12px; margin-top: 2px;
	font-weight: 600; font-size: 16px;
}
.pmc-summary__total strong { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.pmc-summary__hint { font-size: 13px; color: var(--pmc-muted); }

/* Add to cart button on configured products */
.single-product form.cart .pmc ~ .single_add_to_cart_button,
.single-product form.cart .single_add_to_cart_button {
	min-height: 52px;
}

.pmc-from { font-weight: 600; }

@media (max-width: 480px) {
	.pmc-opt { flex: 1 1 calc(50% - 5px); }
	.pmc-opt__box { min-width: 0; width: 100%; }
	.pmc-summary__total strong { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.pmc-preview__card, .pmc-opt__box { transition: none; }
}
