/* Manum — product options modal. Scoped to .manum-pom and .manum-pom-edit. */

.manum-pom__header {
	display: grid;
	grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid currentColor;
}

.manum-pom__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.manum-pom__category {
	margin: 0 0 0.25rem;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.manum-pom__category a {
	color: var(--global-palette1, #c8102e);
	text-decoration: none;
}

.manum-pom .manum-pom__title {
	margin: 0 0 0.75rem;
	font-size: 1.75rem;
	line-height: 1.2;
}

.manum-pom .manum-pom__price {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.manum-pom__excerpt {
	font-size: 0.9rem;
}

.manum-pom__excerpt p {
	margin: 0;
}

.manum-pom__permalink {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: inherit;
	opacity: 0.7;
}

.manum-pom__permalink:hover,
.manum-pom__permalink:focus {
	opacity: 1;
}

.manum-pom__notices:empty {
	display: none;
}

.manum-pom__notices .woocommerce-error {
	margin: 0 0 1rem;
}

/* Form layout: fields, then quantity + button, then APF totals (as in the design). */
.manum-pom form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
}

.manum-pom form.cart .wapf {
	display: contents;
}

.manum-pom form.cart .wapf-wrapper {
	flex: 1 1 100%;
}

.manum-pom form.cart .wapf-product-totals {
	order: 10;
	flex: 1 1 100%;
	margin-top: 0.5rem;
}

.manum-pom form.cart .quantity {
	margin: 0;
}

.manum-pom form.cart .single_add_to_cart_button.loading {
	opacity: 0.6;
	cursor: progress;
}

/* "Modifier" link, in the mini-cart widget and the block cart. */
.manum-pom-edit {
	display: inline-block;
	margin: 0.25rem 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--global-palette1, #c8102e);
	font-size: 0.85em;
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none;
}

.manum-pom-edit:hover,
.manum-pom-edit:focus {
	background: none;
	color: var(--manum-pom-link-hover, var(--global-palette2, #9a0c23)); /* Kadence: palette2 = accent hover. */
}

.widget_shopping_cart .manum-pom-edit {
	display: block;
}

.wc-block-cart-item__product .manum-pom-edit {
	display: block;
	margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
	.manum-pom__header {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 1rem;
	}

	.manum-pom .manum-pom__title {
		font-size: 1.35rem;
	}
}
