/*
 * Nomiss Producttemplates
 * 1. Aantal naast de bestelknop (alle productpagina's).
 * 2. Naamveld en uploadvak (Naamlamp / Eigen ontwerp).
 * Kleuren aanpassen: body { --nmpt-accent: ...; } in Oxygen > Manage > Stylesheets.
 */
body.single-product {
	--nmpt-accent: #0A6CFF;
	--nmpt-vlak: #0D1322;
	--nmpt-rand: rgba(139, 149, 168, .35);
	--nmpt-grijs: #8B95A8;
	--nmpt-radius: 14px;
}

/* 1. Aantal + knop op één rij ---------------------------------------- */
body.single-product form.cart .woocommerce-variation-add-to-cart,
body.single-product form.cart:not(.variations_form) {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
	gap: 12px !important;
}
body.single-product form.cart .quantity {
	display: flex !important;
	flex: 0 0 auto !important;
	float: none !important;
	margin: 0 !important;
}
body.single-product form.cart .quantity input.qty { height: auto !important; align-self: stretch; box-sizing: border-box !important; margin: 0 !important; }
body.single-product form.cart .single_add_to_cart_button {
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0 !important;
	float: none !important;
	margin: 0 !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	white-space: normal !important;
	overflow-wrap: break-word;
	line-height: 1.15 !important;
	text-align: center;
}
body.single-product form.cart:not(.variations_form) > .nmpt-veld { flex: 0 0 100% !important; }
body.single-product form.cart .single_add_to_cart_button.nmpt-wacht { opacity: .5; pointer-events: none; }

/* 2. Velden ------------------------------------------------------------ */
body.single-product .nmpt-veld { display: grid; gap: 8px; width: 100%; margin: 0 0 20px; }
body.single-product .nmpt-hulp { color: var(--nmpt-grijs); }

/* Uploadvak */
body.single-product .nmpt-drop {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 28px 20px;
	text-align: center;
	background: var(--nmpt-vlak);
	border: 2px dashed var(--nmpt-rand);
	border-radius: var(--nmpt-radius);
	color: #fff;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
body.single-product .nmpt-drop[hidden] { display: none; }
body.single-product .nmpt-drop:hover,
body.single-product .nmpt-drop.is-sleep { border-color: var(--nmpt-accent); background-color: rgba(10, 108, 255, .08); }
body.single-product .nmpt-drop:has(input:focus-visible) { outline: 2px solid var(--nmpt-accent); outline-offset: 3px; }
/* Het echte bestandsveld ligt onzichtbaar over het hele vak: klikken en slepen werken vanzelf. */
body.single-product .nmpt-drop input[type="file"] {
	position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; padding: 0;
}
body.single-product .nmpt-drop-icoon {
	display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px;
	border-radius: 50%; background: var(--nmpt-accent); color: #fff;
}
body.single-product .nmpt-drop-tekst { font-size: 1em; }
body.single-product .nmpt-drop-tekst strong { color: var(--nmpt-accent); font-weight: 800; }
body.single-product .nmpt-drop .nmpt-hulp { font-size: .85em; }

/* Gekozen bestand */
body.single-product .nmpt-lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.single-product .nmpt-lijst:empty { display: none; }
body.single-product .nmpt-lijst li {
	display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; margin: 0;
	background: var(--nmpt-vlak); border: 2px solid var(--nmpt-accent); border-radius: var(--nmpt-radius); color: #fff;
}
body.single-product .nmpt-lijst img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
body.single-product .nmpt-bestandsnaam { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
body.single-product .nmpt-weg {
	background: none; border: 0; padding: 0; color: var(--nmpt-grijs); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9em;
}
body.single-product .nmpt-weg:hover { color: #fff; }
body.single-product .nmpt-bezig { color: var(--nmpt-grijs); border-color: var(--nmpt-rand) !important; }
body.single-product .nmpt-melding { margin: 0; font-weight: 700; }
body.single-product .nmpt-melding:empty { display: none; }
