/* Pakkeskjemaet (Product Bundles) i temaets stil. Oppgave E, 28.10.2026.
   Ingen avrunding, ingen skygger. Farger og fonter som resten av temaet. */

.nsnf-pakkevalg,
.nsnf-pakkevalg * {
	border-radius: 0 !important;
	box-shadow: none !important;
}

.nsnf-pakkevalg {
	margin: 1.5rem 0;
	font-family: "Open Sans", sans-serif;
	color: #333;
}

/* nsnf-produktside.css setter form.cart til flex-rad for antall og knapp. Her staar alt under
   hverandre, og rekkefoelgen styres med order: valg, kjoepsknapp, tillegg. */
.summary.entry-summary .nsnf-pakkevalg form.bundle_form {
	display: flex;
	flex-direction: column;
}

.nsnf-pakkevalg form.bundle_form > .nsnf-gruppe--valg {
	order: 1;
}

.nsnf-pakkevalg form.bundle_form > .bundle_data {
	order: 2;
}

.nsnf-pakkevalg form.bundle_form > .nsnf-gruppe--tillegg {
	order: 3;
}

/* Varene som alltid foelger med, staar i lista under bildet. I skjemaet ligger de skjult,
   saa Product Bundles fortsatt sender dem med naar pakken legges i kurven. */
.nsnf-pakkevalg form.bundle_form > .nsnf-gruppe--inkludert {
	display: none !important;
}

.nsnf-pakkevalg .bundled_product {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem 0;
	border-bottom: 1px solid #d5d5d5;
	margin: 0;
}

.nsnf-pakkevalg .bundled_product .bundled_product_images {
	flex: 0 0 80px;
	width: 80px;
	margin: 0;
}

.nsnf-pakkevalg .bundled_product .bundled_product_images img {
	width: 80px;
	height: auto;
}

.nsnf-pakkevalg .bundled_product .details {
	flex: 1 1 auto;
	width: auto;
	padding: 0;
}

.nsnf-pakkevalg .bundled_product_title {
	font-family: "Montserrat", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: #212934;
	margin: 0 0 0.3rem;
	text-transform: none;
}

/* Kort tekst her. Hele beskrivelsen står lenger ned på siden. */
.nsnf-pakkevalg .bundled_product_excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.45;
	margin: 0 0 0.5rem;
}

.nsnf-pakkevalg .bundled_product_excerpt * {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	text-transform: none;
}

/* Alt i pakken er på lager som regel. Bare mangel på lager vises. */
.nsnf-pakkevalg .stock.in-stock {
	display: none;
}

.nsnf-pakkevalg label.bundled_product_optional_checkbox {
	display: block;
	padding: 0.6rem 0.8rem !important;
	background: #f6f6f6;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	color: #333;
	cursor: pointer;
	margin: 0.5rem 0;
}

.nsnf-pakkevalg .bundled_product_optional_checkbox .price,
.nsnf-pakkevalg .bundled_product_optional_checkbox .amount {
	font-size: inherit;
	font-weight: inherit;
}

.nsnf-pakkevalg .bundled_product_optional_checkbox input {
	position: static !important;
	accent-color: #138039;
	margin: 0 0.5rem 0 0 !important;
	vertical-align: -1px;
}

.nsnf-pakkevalg .stock {
	font-size: 0.85rem;
	color: #333;
	margin: 0.2rem 0;
}

.nsnf-pakkevalg .stock.out-of-stock {
	color: #ef7e1d;
}

.nsnf-pakkevalg table.variations select {
	border: 1px solid #212934;
	padding: 0.3rem 0.5rem;
	font-family: "Open Sans", sans-serif;
	min-width: 12rem;
}

.nsnf-pakkevalg .bundle_price .price,
.nsnf-pakkevalg .bundle_price {
	font-family: "Montserrat", sans-serif;
	font-size: 1.3rem;
	font-weight: 600;
	color: #212934;
}

.nsnf-pakkevalg .bundle_price del {
	color: #333;
	opacity: 0.6;
	font-weight: 400;
}

.nsnf-pakkevalg .bundle_price ins {
	text-decoration: none;
	color: #333;
}

/* Product Bundles setter margin-top: 0 med !important. */
.nsnf-pakkevalg .bundle_price {
	margin-top: 1.25rem !important;
}

.nsnf-pakkevalg .bundle_price .price {
	margin: 0;
}

/* Kronesymbolet kommer rett etter tallet i skjemaets pris. 0 MVA sier ikke kunden noe. */
.nsnf-pakkevalg .bundle_price .woocommerce-Price-currencySymbol {
	margin-left: 0.2em;
}

.nsnf-pakkevalg .bundle_price .woocommerce-price-suffix {
	display: none;
}

.nsnf-pakkevalg .bundle_error {
	color: #ef7e1d;
}

.nsnf-pakkevalg .quantity {
	display: none;
}

.summary.entry-summary .nsnf-pakkevalg form.cart button.single_add_to_cart_button {
	display: block;
	width: 100%;
}

/* Kort beskrivelse under prisen */
.nsnf-pakke-kort {
	margin: 1.25rem 0 0;
	font-size: 1rem;
	line-height: 1.55;
}

.nsnf-pakke-kort p:last-child {
	margin-bottom: 0;
}

/* Overskriftene i lista: Inkludert i pakken, Velg en av bøkene, Legg til i pakken */
.summary.entry-summary .nsnf-pakkevalg .nsnf-pakke-tittel {
	margin: 1.75rem 0 0;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #212934;
	font-family: "Montserrat", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	color: #212934;
}

/* Prisen nederst er totalen for det kunden har valgt. */
.nsnf-pakkevalg .bundle_price .price::before {
	content: "Totalt: ";
}

/* Temaets clearfix ble en ekstra rute i flex-raden og flyttet bildene mot høyre. */
.nsnf-pakkevalg .bundled_product::before,
.nsnf-pakkevalg .bundled_product::after {
	display: none;
}

/* Pakker uten valg: Kjøp-knappen står rett under lista. */
.nsnf-pakkevalg--liste {
	margin-bottom: 1.5rem;
}

.nsnf-pakkevalg--liste .bundled_product_images img {
	display: block;
}

/* «Les mer» under navnet på varen */
.nsnf-pakkevalg .bundled_product_title_link {
	display: block;
	margin: 0.3rem 0 0 !important; /* Product Bundles setter margin-left med sterkere regel. */
	padding: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 0.85rem;
	font-weight: 400;
}

.nsnf-pakkevalg a.nsnf-lesmer {
	color: #333;
	border-bottom: 2px solid #138039;
}

.nsnf-pakkevalg a.nsnf-lesmer:hover,
.nsnf-pakkevalg a.nsnf-lesmer:focus-visible {
	background-color: #138039;
	color: #fff;
}

/* Temaet gir lenker grønn bakgrunn ved hover. Bildene skal ikke ha det. */
.nsnf-pakkevalg .bundled_product_images a:hover,
.nsnf-pakkevalg .bundled_product_images a:focus {
	background-color: transparent;
}

/* Popup for bildene i pakkeskjemaet */
.nsnf-pakkevalg .bundled_product_images a {
	cursor: zoom-in;
}

.nsnf-bildepopup {
	max-width: min(90vw, 60rem);
	max-height: 90vh;
	padding: 0;
	border: 0;
	background: #fff;
	overflow: visible;
}

.nsnf-bildepopup::backdrop {
	background: rgba(0, 0, 0, 0.75);
}

.nsnf-bildepopup img {
	display: block;
	max-width: min(90vw, 60rem);
	max-height: 90vh;
	width: auto;
	height: auto;
}

.nsnf-bildepopup .nsnf-bildepopup__lukk {
	position: absolute;
	top: 0;
	right: 0;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #212934;
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.nsnf-bildepopup .nsnf-bildepopup__lukk:hover,
.nsnf-bildepopup .nsnf-bildepopup__lukk:focus-visible {
	background: #ef7e1d;
}


/* ---------- Oppsett paa pakkesiden (18.11.2026) ---------- */

.nsnf-pakkeside__rutenett {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"bilde kjop"
		"innhold kjop";
	column-gap: 2.5rem;
	align-items: start;
}

.nsnf-pakkeside__bilde {
	grid-area: bilde;
}

.nsnf-pakkeside__bilde img {
	display: block;
	width: 100%;
	height: auto;
}

.nsnf-pakkeside__kjop {
	grid-area: kjop;
}

.nsnf-pakkeside__innhold {
	grid-area: innhold;
}

.nsnf-pakkeside__kjop .nsnf-pakkevalg {
	margin-top: 0.5rem;
}

/* Kjoepsknappen for pakker uten valg: full bredde, som i skjemaet */
.nsnf-pakkeside__kjopslenke {
	display: inline-block; /* Like bred som knappen, som paa vanlige produktsider. */
	margin-top: 1.5rem;
}

/* Temaet gir lenker paa undersider groenn bakgrunn ved hover. Lenken rundt knappen skal ikke ha det. */
.sub-page-container a.nsnf-pakkeside__kjopslenke,
.sub-page-container a.nsnf-pakkeside__kjopslenke:hover,
.sub-page-container a.nsnf-pakkeside__kjopslenke:focus {
	background: none;
	border: 0;
	box-shadow: none;
}

.nsnf-pakkeside__kjopslenke button.orange-button-shadow {
	display: block;
}

/* Tittel, pris og beskrivelse: jevn luft. Temaet gir h1 3.5rem marg under. */
.nsnf-pakkeside .nsnf-pakkeside__kjop h1 {
	margin: 0 0 1rem;
}

.nsnf-pakke-kort p {
	font-size: 1rem;
	line-height: 1.6;
	margin: 0 0 0.75rem;
}

/* Valg og tillegg: kortere tekst, saa kjoepsknappen kommer hoeyere opp */
.nsnf-pakkevalg .nsnf-gruppe--valg .bundled_product_excerpt,
.nsnf-pakkevalg .nsnf-gruppe--tillegg .bundled_product_excerpt {
	-webkit-line-clamp: 2;
}

.nsnf-pakkevalg .bundled_product.nsnf-gruppe--valg,
.nsnf-pakkevalg .bundled_product.nsnf-gruppe--tillegg {
	padding: 0.75rem 0;
}

.nsnf-pakkevalg .nsnf-gruppe--valg .bundled_product_images,
.nsnf-pakkevalg .nsnf-gruppe--tillegg .bundled_product_images {
	flex-basis: 64px;
	width: 64px;
}

.nsnf-pakkevalg .nsnf-gruppe--valg .bundled_product_images img,
.nsnf-pakkevalg .nsnf-gruppe--tillegg .bundled_product_images img {
	width: 64px;
}

.nsnf-pakkevalg label.bundled_product_optional_checkbox {
	margin: 0.35rem 0 0;
}

/* «Velg en av bøkene»: navn til venstre og «Velg» til høyre på samme linje */
.nsnf-pakkevalg .bundled_item_optional.nsnf-gruppe--valg {
	align-items: center;
}

.nsnf-pakkevalg .bundled_item_optional.nsnf-gruppe--valg .details {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.nsnf-pakkevalg .bundled_item_optional.nsnf-gruppe--valg .details > .bundled_product_title {
	flex: 1 1 auto;
	margin: 0;
}

.nsnf-pakkevalg .bundled_item_optional.nsnf-gruppe--valg .details > .bundled_product_excerpt {
	display: none;
}

.nsnf-pakkevalg .bundled_item_optional.nsnf-gruppe--valg .details > .cart {
	flex: 0 0 auto;
}

.nsnf-pakkevalg .bundled_item_optional.nsnf-gruppe--valg label.bundled_product_optional_checkbox {
	margin: 0;
	white-space: nowrap;
}

/* Lista «Inkludert i pakken» under bildet */
.nsnf-pakkeinnhold {
	margin-top: 1.5rem;
	font-family: "Open Sans", sans-serif;
	color: #333;
}

.single-product-nb .nsnf-pakkeinnhold__tittel {
	margin: 0 0 0.25rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid #212934;
	font-family: "Montserrat", sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	color: #212934;
}

.nsnf-pakkeinnhold__liste {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nsnf-pakkeinnhold__vare {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	padding: 0.6rem 0;
	border-bottom: 1px solid #d5d5d5;
}

.nsnf-pakkeinnhold a.nsnf-pakkeinnhold__bilde,
.nsnf-pakkeinnhold a.nsnf-pakkeinnhold__bilde:hover,
.nsnf-pakkeinnhold a.nsnf-pakkeinnhold__bilde:focus {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border: 0;
	background: #f6f6f6;
	cursor: zoom-in;
}

.nsnf-pakkeinnhold__bilde img {
	display: block;
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.nsnf-pakkeinnhold__tekst {
	min-width: 0;
	font-size: 0.85rem;
	line-height: 1.35;
}

.nsnf-pakkeinnhold__navn {
	display: block;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	color: #212934;
}

.nsnf-pakkeinnhold .bundled_product_title_link {
	display: inline-block;
	margin-top: 0.15rem;
	font-size: 0.8rem;
}

.nsnf-pakkeinnhold a.nsnf-lesmer {
	color: #333;
	border-bottom: 2px solid #138039;
}

.nsnf-pakkeinnhold a.nsnf-lesmer:hover,
.nsnf-pakkeinnhold a.nsnf-lesmer:focus-visible {
	background-color: #138039;
	color: #fff;
}

/* Mobil: bilde, kjoep, og til slutt hva som er inkludert. Bare bilde, navn og valg. */
@media (max-width: 767px) {
	/* Mobil: lavere hovedbilde og kort beskrivelse paa tre linjer, saa valgene kommer tidligere. */
	.nsnf-pakkeside__bilde img {
		max-height: 220px;
		width: 100%;
		object-fit: contain;
	}

	.nsnf-pakke-kort {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.nsnf-pakkeside__rutenett {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		grid-template-areas:
			"bilde"
			"kjop"
			"innhold";
	}

	.nsnf-pakkeside__bilde img {
		max-width: 22rem;
		margin: 0 auto;
	}

	.nsnf-pakkevalg .bundled_product_excerpt,
	.nsnf-pakkevalg .bundled_product_title_link {
		display: none;
	}

	.nsnf-pakkevalg .bundled_product.nsnf-gruppe--valg,
	.nsnf-pakkevalg .bundled_product.nsnf-gruppe--tillegg {
		align-items: center;
		gap: 0.75rem;
		padding: 0.5rem 0;
	}

	.nsnf-pakkevalg .nsnf-gruppe--valg .bundled_product_images,
	.nsnf-pakkevalg .nsnf-gruppe--tillegg .bundled_product_images,
	.nsnf-pakkevalg .nsnf-gruppe--valg .bundled_product_images img,
	.nsnf-pakkevalg .nsnf-gruppe--tillegg .bundled_product_images img {
		flex-basis: 48px;
		width: 48px;
	}

	.nsnf-pakkevalg .nsnf-gruppe--valg .bundled_product_images,
	.nsnf-pakkevalg .nsnf-gruppe--tillegg .bundled_product_images {
		flex-basis: 40px;
		width: 40px;
	}

	.nsnf-pakkevalg .nsnf-gruppe--valg .bundled_product_images img,
	.nsnf-pakkevalg .nsnf-gruppe--tillegg .bundled_product_images img {
		width: 40px;
		height: 40px;
		margin: 0 !important; /* Product Bundles gir .small_width-bilder 1em marg under. */
		object-fit: contain;
	}

	/* Mobil: bilde, tittel og «Velg» paa en linje. */
	.nsnf-pakkevalg .bundled_product.nsnf-gruppe--valg,
	.nsnf-pakkevalg .bundled_product.nsnf-gruppe--tillegg {
		align-items: center;
		padding: 6px 0;
	}

	.nsnf-pakkevalg .bundled_item_optional.nsnf-gruppe--tillegg .details {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 0.5rem;
		min-width: 0;
	}

	/* Storrelse og farge paa T-skjorta faar en egen linje under tittelen. */
	.nsnf-pakkevalg .nsnf-gruppe--tillegg .details > .cart {
		flex: 1 1 100%;
		min-width: 0;
	}

	.nsnf-pakkevalg .nsnf-gruppe--tillegg table.variations {
		width: 100%;
	}

	.nsnf-pakkevalg .nsnf-gruppe--tillegg table.variations select {
		width: 100%;
		min-height: 44px;
	}

	.nsnf-pakkevalg .nsnf-gruppe--tillegg label.bundled_product_optional_checkbox {
		margin: 0;
	}

	.nsnf-pakkevalg .bundled_product_title {
		font-size: 0.9rem;
		margin: 0;
	}

	.summary.entry-summary .nsnf-pakkevalg .nsnf-pakke-tittel {
		margin-top: 1.25rem;
		font-size: 0.9rem;
	}

	.nsnf-pakkevalg label.bundled_product_optional_checkbox {
		padding: 0.5rem 0.7rem !important;
		font-size: 0.9rem;
	}

	.nsnf-pakkeinnhold__liste {
		grid-template-columns: minmax(0, 1fr);
	}

	.nsnf-pakkeinnhold__vare {
		padding: 0.45rem 0;
	}

	.nsnf-pakkeinnhold a.nsnf-pakkeinnhold__bilde,
	.nsnf-pakkeinnhold__bilde img {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	.single-product-nb .nsnf-pakke-beskrivelse {
		margin-top: 2rem;
	}
}
