.hn-order-form {
	--hn-order-accent: #176c5b;
	--hn-order-accent-dark: #0f5548;
	--hn-order-soft: #f1f7f5;
	--hn-order-border: #d7dfdc;
	--hn-order-shadow: rgba(17, 50, 43, 0.11);
	max-width: 760px;
	margin: 2.5rem auto;
	padding: clamp(1.25rem, 4vw, 2.25rem);
	border: 3px solid var(--hn-order-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 14px 44px var(--hn-order-shadow);
	color: #18312b;
}

.hn-order-form__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
}

.hn-order-form__header h2,
.hn-order-summary h3,
.hn-order-form__section-heading h3 {
	margin: 0;
	color: #173e35;
}

.hn-order-form__eyebrow {
	margin: 0 0 0.3rem;
	color: var(--hn-order-accent);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hn-order-form__price {
	min-width: 7.5rem;
	padding: 0.7rem 0.9rem;
	border-radius: 12px;
	background: var(--hn-order-soft);
	text-align: center;
}

.hn-order-form__price strong,
.hn-order-form__price span {
	display: block;
}

.hn-order-form__price strong {
	color: var(--hn-order-accent-dark);
	font-size: 1.45rem;
	line-height: 1.1;
}

.hn-order-form__price span {
	margin-top: 0.2rem;
	font-size: 0.75rem;
}

.hn-order-form__description {
	margin: 1rem 0 0;
	color: #48615b;
}

.hn-order-form .hn-order-form__benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1.25rem;
	margin: 1.1rem 0 0;
	padding: 0;
	list-style: none !important;
	font-size: 0.92rem;
	font-weight: 700;
}

.hn-order-form .hn-order-form__benefits li {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.hn-order-form .hn-order-form__benefits li::marker {
	content: "";
}

.hn-order-form__benefits li::before {
	content: "✓";
	margin-right: 0.4rem;
	color: var(--hn-order-accent);
}

.hn-order-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.hn-order-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-size: 0.94rem;
	font-weight: 700;
}

.hn-order-field input {
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--hn-order-border);
	border-radius: 9px;
	background: #fff;
	font: inherit;
}

.hn-order-field input:hover {
	border-color: #aebdb8;
}

.hn-order-field input:focus {
	outline: 3px solid rgba(23, 108, 91, 0.18);
	border-color: var(--hn-order-accent);
}

.hn-order-summary {
	margin: 1.5rem 0;
	padding: 1.15rem 1.25rem;
	border: 1px solid #dce9e5;
	border-radius: 12px;
	background: var(--hn-order-soft);
}

.hn-order-summary h3 {
	margin-bottom: 0.65rem;
	font-size: 1.05rem;
}

.hn-order-summary > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.3rem 0;
	font-size: 0.94rem;
}

.hn-order-summary > div span {
	color: #4b625c;
}

.hn-order-summary > div strong {
	text-align: right;
}

.hn-order-summary__total-row {
	margin-top: 0.4rem;
	padding-top: 0.7rem !important;
	border-top: 1px solid var(--hn-order-border);
}

.hn-order-summary__total {
	color: var(--hn-order-accent-dark);
	font-size: 1.15rem;
}

.hn-order-form__section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 1.75rem 0 0.85rem;
}

.hn-order-form__section-heading h3,
.hn-order-consents legend {
	font-size: 1.05rem;
	font-weight: 800;
}

.hn-order-form__section-heading p {
	margin: 0;
	color: #657771;
	font-size: 0.82rem;
}

.hn-order-field--wide {
	grid-column: 1 / -1;
}

.hn-order-field--postal {
	grid-column: span 1;
}

.hn-order-consents {
	margin: 1.5rem 0;
	padding: 0;
	border: 0;
}

.hn-order-consents legend {
	margin-bottom: 0.75rem;
	color: #173e35;
}

.hn-order-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0 0 0.75rem;
	padding: 0.9rem;
	border: 1px solid var(--hn-order-border);
	border-radius: 10px;
	background: #fbfcfc;
	font-size: 0.88rem;
	line-height: 1.45;
	cursor: pointer;
}

.hn-order-consent input {
	width: 20px;
	height: 20px;
	margin: 0.05rem 0 0;
	accent-color: var(--hn-order-accent);
	flex: 0 0 auto;
}

.hn-order-consent:has(input:checked) {
	border-color: var(--hn-order-accent);
	background: var(--hn-order-soft);
}

.hn-order-consent a {
	color: var(--hn-order-accent-dark);
	font-weight: 800;
}

.hn-order-button {
	display: block;
	width: 100%;
	min-height: 54px;
	padding: 0.95rem 1.35rem;
	border: 0;
	border-radius: 10px;
	background: var(--hn-order-accent);
	color: #fff;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 7px 18px rgba(23, 108, 91, 0.2);
	transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.hn-order-button:hover {
	background: var(--hn-order-accent-dark);
	box-shadow: 0 9px 22px rgba(23, 108, 91, 0.26);
	transform: translateY(-1px);
}

.hn-order-button:focus-visible {
	outline: 3px solid rgba(23, 108, 91, 0.28);
	outline-offset: 3px;
}

.hn-order-form__secure-note {
	margin: 0.65rem 0 0;
	color: #657771;
	font-size: 0.78rem;
	text-align: center;
}

.hn-order-notice {
	margin: 1rem 0;
	padding: 0.8rem 1rem;
	border-radius: 6px;
}

.hn-order-notice--success {
	background: #e6f5ed;
	color: #155b3b;
}

.hn-order-notice--error {
	background: #fff0ef;
	color: #8f271e;
}

.hn-order-form__trap {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 640px) {
	.hn-order-form {
		margin: 1.5rem auto;
		border-radius: 14px;
	}

	.hn-order-form__header {
		align-items: stretch;
		flex-direction: column;
		gap: 0.9rem;
	}

	.hn-order-form__price {
		align-self: flex-start;
		min-width: 0;
		text-align: left;
	}

	.hn-order-form__grid {
		grid-template-columns: 1fr;
	}

	.hn-order-field--wide,
	.hn-order-field--postal {
		grid-column: auto;
	}

	.hn-order-form__section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.25rem;
	}

	.hn-order-summary > div {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.1rem;
	}

	.hn-order-summary > div strong {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hn-order-button {
		transition: none;
	}
}

.hn-order-confirmation {
	max-width: 720px;
	margin: 2.5rem auto;
	padding: clamp(1.5rem, 5vw, 3rem);
	border: 1px solid #d7dfdc;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 14px 44px rgba(17, 50, 43, 0.11);
	color: #18312b;
	text-align: center;
}

.hn-order-confirmation__icon {
	display: grid;
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: #176c5b;
	color: #fff;
	font-size: 2rem;
	font-weight: 800;
	place-items: center;
}

.hn-order-confirmation__eyebrow {
	margin: 0 0 0.35rem;
	color: #176c5b;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hn-order-confirmation h2 {
	margin: 0;
	color: #173e35;
}

.hn-order-confirmation__lead {
	max-width: 560px;
	margin: 0.9rem auto 1.25rem;
	color: #48615b;
	font-size: 1.08rem;
}

.hn-order-confirmation__details {
	margin: 0 auto 1.5rem;
	padding: 1.2rem 1.4rem;
	border-radius: 12px;
	background: #f5f8f7;
	text-align: left;
}

.hn-order-confirmation__details h3 {
	margin: 0 0 0.65rem;
	color: #173e35;
	font-size: 1.05rem;
}

.hn-order-confirmation__details ul {
	margin: 0;
	padding-left: 1.2rem;
}

.hn-order-confirmation__details li + li {
	margin-top: 0.45rem;
}

.hn-order-confirmation__contact {
	margin: 0 auto 1.5rem;
}

.hn-order-confirmation__contact a {
	color: #0f5548;
	font-weight: 700;
}

.hn-order-confirmation__back {
	display: inline-block;
	padding: 0.75rem 1.1rem;
	border: 1px solid #176c5b;
	border-radius: 9px;
	color: #176c5b;
	font-weight: 800;
	text-decoration: none;
}

.hn-order-confirmation__back:hover,
.hn-order-confirmation__back:focus-visible {
	background: #f1f7f5;
}


/* Produktstyrt skjema. Farger og layout hentes fra produktinnstillingene. */
.hn-order-form--product {
	padding: 0;
	border-width: 3px;
	border-style: solid;
	border-color: var(--hn-order-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 14px 44px rgba(0, 0, 0, 0.14);
	overflow: hidden;
}

.hn-order-form--product .hn-order-form__header {
	display: block;
	margin: 0;
	padding: clamp(1.25rem, 4vw, 1.8rem);
	background: var(--hn-order-accent);
	color: #fff;
}

.hn-order-form--product .hn-order-form__header h2 {
	margin: 0;
	color: #fff;
}

.hn-order-form--product .hn-order-form__eyebrow {
	margin: 0 0 0.45rem;
	color: #fff;
	opacity: 0.9;
}

.hn-order-form__offer-text {
	margin: 0.65rem 0 0;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.45;
}

.hn-order-form--product > form {
	padding: clamp(1.25rem, 4vw, 1.8rem);
}

.hn-order-form--product > .hn-order-notice {
	margin: 1.25rem 1.5rem 0;
}

/* Valgfri kompakt layout for smalere salgssider. */
.hn-order-form--layout-compact {
	max-width: 620px;
	margin: 2rem auto;
	color: #333;
}

.hn-order-form--layout-compact .hn-order-form__header h2 {
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.2;
}

.hn-order-form--layout-compact .hn-order-form__section-heading {
	display: block;
	margin: 0 0 1rem;
}

.hn-order-form--layout-compact .hn-order-form__section-heading h3 {
	color: #333;
	font-size: 1.08rem;
}

.hn-order-form--layout-compact .hn-order-form__section-heading p {
	margin-top: 0.25rem;
}

.hn-order-form--layout-compact .hn-order-form__grid {
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

.hn-order-form--layout-compact .hn-order-field,
.hn-order-form--layout-compact .hn-order-field--wide,
.hn-order-form--layout-compact .hn-order-field--postal {
	grid-column: auto;
}

.hn-order-form--layout-compact .hn-order-field {
	gap: 0.3rem;
	color: #3a3a3a;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.hn-order-form--layout-compact .hn-order-field input {
	min-height: 46px;
	padding: 0.7rem 0.75rem;
	border: 1px solid #c9c9c9;
	border-radius: 0;
	background: #fff;
	color: #222;
	text-transform: none;
}

.hn-order-form--layout-compact .hn-order-field input:focus {
	outline: 2px solid var(--hn-order-soft);
	border-color: var(--hn-order-accent);
}

.hn-order-form--layout-compact .hn-order-consents {
	margin: 1.35rem 0 1rem;
}

.hn-order-form--layout-compact .hn-order-consents legend {
	margin-bottom: 0.65rem;
	color: #333;
}

.hn-order-form--layout-compact .hn-order-consent {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #333;
	font-size: 0.9rem;
}

.hn-order-form--layout-compact .hn-order-consent:has(input:checked) {
	border-color: transparent;
	background: transparent;
}

.hn-order-form--layout-compact .hn-order-button {
	min-height: 52px;
	border-radius: 0;
	background: var(--hn-order-accent);
	box-shadow: none;
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hn-order-form--layout-compact .hn-order-button:hover {
	background: var(--hn-order-accent-dark);
	box-shadow: none;
	transform: none;
}

/* Bred layout for salgssider der skjemaet skal følge innholdsbredden. */
.hn-order-form--layout-wide {
	width: 100%;
	max-width: none;
	margin: 2.5rem 0;
}

.hn-order-form--layout-wide .hn-order-field input {
	background: #f4f4f4;
}

.hn-order-form--layout-wide .hn-order-button {
	width: auto;
	min-width: 270px;
}

@media (max-width: 640px) {
	.hn-order-form--layout-wide {
		margin: 1.5rem 0;
	}

	.hn-order-form--layout-wide .hn-order-button {
		width: 100%;
		min-width: 0;
	}
}
