/**
 * FBN Tilmelding – frontend.
 *
 * Farver og typografi følger Elementors globale indstillinger på family.dk,
 * med faste værdier som fallback hvis variablerne ikke er tilgængelige.
 * Alt er scopet under .fbn så intet andet på siden påvirkes.
 */

.fbn {
	--fbn-navy: var(--e-global-color-primary, #2E2E5B);
	--fbn-cream: var(--e-global-color-secondary, #EFE4D4);
	--fbn-gold: var(--e-global-color-accent, #A67B30);
	--fbn-sand: #CEC4B4;
	--fbn-ink: #2E2E5B;
	--fbn-muted: #6b6b80;
	--fbn-line: #ded5c8;
	--fbn-bg: #ffffff;
	--fbn-error: #a3231f;
	--fbn-radius: 6px;
	--fbn-gap: 22px;

	max-width: 820px;
	margin: 0 auto;
	color: var(--fbn-ink);
	font-family: "Minion Pro", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* Felter og knapper arver ikke skrifttypen af sig selv i alle browsere. */
.fbn input,
.fbn select,
.fbn textarea,
.fbn button {
	font-family: "Minion Pro", sans-serif;
}

.fbn *,
.fbn *::before,
.fbn *::after {
	box-sizing: border-box;
}

.fbn-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.fbn-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Valg af medlemstype                                                  */
/* ------------------------------------------------------------------ */

.fbn-chooser__title {
	margin: 0 0 8px;
	color: var(--fbn-navy);
}

.fbn-chooser__lead {
	margin: 0 0 32px;
	color: var(--fbn-muted);
	font-size: 19px;
}

.fbn-chooser__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--fbn-gap);
}

.fbn-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 30px 28px;
	border: 1px solid var(--fbn-line);
	border-radius: var(--fbn-radius);
	background: var(--fbn-bg);
	text-decoration: none;
	color: inherit;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* Temaet understreger links, og kortet er ét stort link. Understregningen skal
   væk i alle tilstande — ellers får hver linje i kortet en streg under sig. */
.fbn .fbn-card,
.fbn .fbn-card:link,
.fbn .fbn-card:visited,
.fbn .fbn-card:hover,
.fbn .fbn-card:focus,
.fbn .fbn-card:focus-visible,
.fbn .fbn-card:active {
	text-decoration: none;
}

/* Nogle temaer laver understregningen med border-bottom eller box-shadow på
   indholdet i stedet for med text-decoration. Kortets egen ramme rører vi ikke. */
.fbn .fbn-card > * {
	text-decoration: none;
	border-bottom: 0;
	box-shadow: none;
}

.fbn .fbn-card:hover,
.fbn .fbn-card:focus-visible {
	border-color: var(--fbn-navy);
	box-shadow: 0 8px 28px rgba(46, 46, 91, .12);
	transform: translateY(-2px);
}

.fbn-card__eyebrow {
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--fbn-gold);
}

.fbn-card__title {
	font-size: 27px;
	line-height: 1.2;
	color: var(--fbn-navy);
}

.fbn-card__body {
	color: var(--fbn-muted);
	font-size: 16px;
}

.fbn-card__cta {
	margin-top: 10px;
	font-weight: 600;
	color: var(--fbn-navy);
}

.fbn-chooser__help {
	margin-top: 32px;
	color: var(--fbn-muted);
	font-size: 16px;
}

/* ------------------------------------------------------------------ */
/* Trinvisning                                                          */
/* ------------------------------------------------------------------ */

.fbn-progress {
	display: flex;
	gap: 4px;
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.fbn-progress__item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	position: relative;
	text-align: center;
	color: var(--fbn-muted);
	font-size: 14px;
}

/* Forbindelseslinjen mellem trinnene */
.fbn-progress__item::before {
	content: "";
	position: absolute;
	top: 17px;
	right: 50%;
	width: 100%;
	height: 2px;
	background: var(--fbn-line);
}

.fbn-progress__item:first-child::before {
	display: none;
}

.fbn-progress__dot {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid var(--fbn-line);
	background: var(--fbn-bg);
	font-size: 15px;
	font-weight: 600;
}

.fbn-progress__item.is-current .fbn-progress__dot {
	border-color: var(--fbn-navy);
	background: var(--fbn-navy);
	color: #fff;
}

.fbn-progress__item.is-done .fbn-progress__dot {
	border-color: var(--fbn-navy);
	background: var(--fbn-cream);
	color: var(--fbn-navy);
}

.fbn-progress__item.is-current,
.fbn-progress__item.is-done {
	color: var(--fbn-navy);
}

.fbn-progress__item.is-done::before,
.fbn-progress__item.is-current::before {
	background: var(--fbn-navy);
}

@media (max-width: 600px) {
	.fbn-progress__label {
		display: none;
	}
	.fbn-progress__item::before {
		top: 17px;
	}
}

/* ------------------------------------------------------------------ */
/* Trin                                                                 */
/* ------------------------------------------------------------------ */

.fbn-step {
	margin: 0 0 28px;
	padding: 0;
	border: 0;
}

/* Med JavaScript vises ét trin ad gangen. Uden vises hele formularen som én
   lang side, og guidens knapper og opsummering skjules. */
.fbn-form.fbn-js .fbn-step:not(.is-active) {
	display: none;
}

.fbn-form:not(.fbn-js) .fbn-progress,
.fbn-form:not(.fbn-js) [data-fbn-next],
.fbn-form:not(.fbn-js) [data-fbn-prev],
.fbn-form:not(.fbn-js) .fbn-summary {
	display: none;
}

.fbn-form:not(.fbn-js) .fbn-step__lead + .fbn-summary + .fbn-actions {
	justify-content: flex-end;
}

.fbn-step__legend {
	display: block;
	width: 100%;
	margin-bottom: 6px;
	padding: 0;
}

.fbn-step__count {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--fbn-gold);
}

.fbn-step__title {
	display: block;
	font-size: 30px;
	line-height: 1.2;
	color: var(--fbn-navy);
}

.fbn-step__lead {
	margin: 0 0 28px;
	color: var(--fbn-muted);
}

/* ------------------------------------------------------------------ */
/* Felter                                                               */
/* ------------------------------------------------------------------ */

.fbn-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 20px;
}

.fbn-field--full {
	flex: 1 1 100%;
}

.fbn-field--half {
	flex: 1 1 calc(50% - 10px);
	min-width: 220px;
}

.fbn-field--third {
	flex: 1 1 calc(33.333% - 14px);
	min-width: 150px;
}

.fbn-label,
.fbn .fbn-label {
	display: block;
	margin-bottom: 6px;
	font-size: 16px;
	font-weight: 600;
	color: var(--fbn-ink);
}

.fbn-req {
	color: var(--fbn-gold);
}

.fbn .fbn-input,
.fbn .fbn-birth select {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--fbn-line);
	border-radius: var(--fbn-radius);
	background: var(--fbn-bg);
	color: var(--fbn-ink);
	font-size: 17px;
	font-family: inherit;
	line-height: 1.4;
	margin: 0;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.fbn .fbn-input:focus,
.fbn .fbn-birth select:focus,
.fbn select:focus {
	outline: none;
	border-color: var(--fbn-navy);
	box-shadow: 0 0 0 3px rgba(46, 46, 91, .14);
}

.fbn .fbn-input[aria-invalid="true"] {
	border-color: var(--fbn-error);
	box-shadow: 0 0 0 3px rgba(163, 35, 31, .1);
}

.fbn .fbn-textarea {
	min-height: 120px;
	line-height: 1.55;
	resize: vertical;
}

.fbn-birth {
	display: flex;
	gap: 10px;
}

.fbn-birth select {
	flex: 1 1 50%;
}

.fbn-help {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--fbn-muted);
}

.fbn-error {
	margin: 6px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--fbn-error);
}

/* ------------------------------------------------------------------ */
/* Afkrydsning                                                          */
/* ------------------------------------------------------------------ */

.fbn-check {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 14px 0;
	padding: 16px 18px;
	border: 1px solid var(--fbn-line);
	border-radius: var(--fbn-radius);
	background: var(--fbn-bg);
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.fbn-check:hover {
	border-color: var(--fbn-sand);
	background: #fdfbf8;
}

.fbn-check--inline {
	margin-bottom: 22px;
	background: var(--fbn-cream);
	border-color: transparent;
}

/* Retter teksten optisk ind efter afkrydsningsfeltet. */
label.fbn-check span {
	margin-top: 5px;
}

.fbn .fbn-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: var(--fbn-navy);
	cursor: pointer;
}

.fbn-check.is-invalid {
	border-color: var(--fbn-error);
	background: #fdf4f4;
}

/* ------------------------------------------------------------------ */
/* Medlemskab                                                           */
/* ------------------------------------------------------------------ */

.fbn-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.fbn-plan {
	display: block;
	position: relative;
	padding: 22px 24px;
	border: 2px solid var(--fbn-line);
	border-radius: var(--fbn-radius);
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.fbn-plan:hover {
	border-color: var(--fbn-sand);
}

.fbn-plan.is-selected {
	border-color: var(--fbn-navy);
	background: #fbfaf8;
}

.fbn .fbn-plan input[type="radio"] {
	position: absolute;
	top: 24px;
	right: 22px;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--fbn-navy);
}

.fbn-plan__title {
	display: block;
	padding-right: 34px;
	font-size: 20px;
	font-weight: 600;
	color: var(--fbn-navy);
}

.fbn-plan__body {
	display: block;
	margin-top: 4px;
	font-size: 15px;
	color: var(--fbn-muted);
}

.fbn-quantities__lead {
	margin: 0 0 12px;
	padding: 12px 16px;
	border-left: 3px solid var(--fbn-gold);
	background: var(--fbn-cream);
	font-size: 15px;
	line-height: 1.5;
	color: var(--fbn-navy);
}

.fbn-quantities__lead:empty {
	display: none;
}

.fbn-quantities {
	display: flex;
	flex-direction: column;
	gap: 2px;
	border: 1px solid var(--fbn-line);
	border-radius: var(--fbn-radius);
	overflow: hidden;
}

.fbn-quantities[hidden] {
	display: none;
}

.fbn-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--fbn-line);
}

.fbn-qty:last-child {
	border-bottom: 0;
}

.fbn-qty__label {
	display: block;
	font-size: 18px;
	font-weight: 600;
	color: var(--fbn-navy);
}

.fbn-qty__note {
	display: block;
	font-size: 15px;
	color: var(--fbn-muted);
}

.fbn-stepper {
	display: flex;
	align-items: center;
	gap: 0;
	flex: 0 0 auto;
	border: 1px solid var(--fbn-line);
	border-radius: var(--fbn-radius);
	overflow: hidden;
	background: var(--fbn-bg);
}

.fbn .fbn-stepper__btn {
	width: 46px;
	height: 46px;
	border: 0;
	background: var(--fbn-cream);
	color: var(--fbn-navy);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease;
}

.fbn .fbn-stepper__btn:hover {
	background: var(--fbn-sand);
}

.fbn .fbn-stepper__btn:disabled {
	opacity: .4;
	cursor: default;
}

.fbn .fbn-stepper__input {
	width: 62px;
	height: 46px;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--fbn-line);
	border-right: 1px solid var(--fbn-line);
	border-radius: 0;
	text-align: center;
	font-size: 18px;
	font-family: inherit;
	color: var(--fbn-ink);
	background: var(--fbn-bg);
	-moz-appearance: textfield;
}

.fbn .fbn-stepper__input::-webkit-outer-spin-button,
.fbn .fbn-stepper__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.fbn-total {
	margin-top: 22px;
	padding: 22px 24px;
	border-radius: var(--fbn-radius);
	background: var(--fbn-navy);
	color: #fff;
}

/* Perioderne på den første faktura, når den dækker mere end ét år. */
.fbn-total__periods {
	margin: 0 0 16px;
	padding: 0 0 16px;
	list-style: none;
	border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.fbn-total__periods:empty {
	display: none;
}

.fbn-total__period {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 4px 0;
	font-size: 16px;
	opacity: .92;
}

.fbn-total__period em {
	font-style: normal;
	opacity: .75;
}

.fbn-total__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.fbn-total__label {
	font-size: 17px;
	opacity: .85;
}

.fbn-total__value {
	font-size: 30px;
	font-weight: 600;
	white-space: nowrap;
}

.fbn-total__note {
	margin: 8px 0 0;
	font-size: 14px;
	opacity: .8;
}

.fbn-total__note:empty {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Hvem skal med                                                        */
/* ------------------------------------------------------------------ */

.fbn-invites {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fbn-invite {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--fbn-line);
	border-radius: var(--fbn-radius);
	background: var(--fbn-bg);
}

.fbn-invite__number {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-top: 26px;
	border-radius: 50%;
	background: var(--fbn-cream);
	color: var(--fbn-navy);
	font-size: 15px;
	font-weight: 600;
}

.fbn-invite__fields {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 18px;
	min-width: 0;
}

.fbn-invite__fields .fbn-field {
	flex: 1 1 calc(50% - 9px);
	min-width: 200px;
}

.fbn .fbn-invite__remove {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	margin-top: 26px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: var(--fbn-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.fbn .fbn-invite__remove:hover {
	background: var(--fbn-cream);
	color: var(--fbn-error);
}

.fbn-invites__actions {
	margin: 18px 0 0;
}

.fbn .fbn-btn--sm {
	padding: 10px 20px;
	font-size: 16px;
}

.fbn-invites__note {
	margin: 14px 0 0;
	padding: 12px 16px;
	border-radius: var(--fbn-radius);
	background: var(--fbn-cream);
	font-size: 15px;
	color: var(--fbn-navy);
}

.fbn-invites__note:empty {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Invitationsbanner                                                    */
/* ------------------------------------------------------------------ */

.fbn-invite-banner {
	margin-bottom: 32px;
	padding: 22px 26px;
	border-radius: var(--fbn-radius);
	background: var(--fbn-navy);
	color: #fff;
}

.fbn-invite-banner__title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 600;
}

.fbn-invite-banner__body {
	margin: 0;
	font-size: 16px;
	opacity: .9;
}

/* ------------------------------------------------------------------ */
/* CVR-opslag                                                           */
/* ------------------------------------------------------------------ */

.fbn-cvr-result {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--fbn-muted);
}

.fbn-cvr-result:empty {
	display: none;
}

.fbn-cvr-result--ok {
	padding: 10px 14px;
	border-left: 3px solid var(--fbn-gold);
	background: var(--fbn-cream);
	border-radius: 0 4px 4px 0;
	color: var(--fbn-navy);
}

.fbn-cvr-result--error {
	color: var(--fbn-error);
}

.fbn-cvr-result--loading::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 8px;
	vertical-align: -1px;
	border: 2px solid var(--fbn-line);
	border-top-color: var(--fbn-navy);
	border-radius: 50%;
	animation: fbn-spin .7s linear infinite;
}

@keyframes fbn-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.fbn-cvr-result--loading::after { animation: none; }
}

.fbn-grid[hidden] {
	display: none;
}

/* Erhvervsfelterne står tættere sammen og får luft ned til adressefelterne. */
div#fbn-erhverv-felter {
	margin-bottom: 20px;
	gap: 0 20px;
}

/* ------------------------------------------------------------------ */
/* Besked om fakturering                                                */
/* ------------------------------------------------------------------ */

.fbn-invoice-notice {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-top: 18px;
	padding: 18px 20px;
	border-left: 4px solid var(--fbn-gold);
	border-radius: 0 var(--fbn-radius) var(--fbn-radius) 0;
	background: var(--fbn-cream);
}

.fbn-invoice-notice__icon {
	flex: 0 0 auto;
	color: var(--fbn-gold);
	line-height: 0;
	padding-top: 1px;
}

.fbn-invoice-notice__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--fbn-navy);
}

.fbn-invoice-line {
	margin: 12px 0 0;
	font-size: 15px;
	color: var(--fbn-muted);
}

/* ------------------------------------------------------------------ */
/* Vedtægter                                                            */
/* ------------------------------------------------------------------ */

.fbn-terms {
	margin-top: 34px;
	padding-top: 30px;
	border-top: 1px solid var(--fbn-line);
}

.fbn-terms__title {
	margin: 0 0 16px;
	font-size: 22px;
	color: var(--fbn-navy);
}

.fbn-docs {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fbn-doc {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 18px;
	border-radius: var(--fbn-radius);
	background: var(--fbn-cream);
}

.fbn-doc__icon {
	flex: 0 0 auto;
	color: var(--fbn-gold);
	line-height: 0;
	padding-top: 2px;
}

.fbn-doc__name {
	display: block;
	font-weight: 600;
	color: var(--fbn-navy);
}

.fbn-doc__link {
	font-size: 15px;
	color: var(--fbn-navy);
}

.fbn-doc__link--missing {
	color: var(--fbn-muted);
	font-style: italic;
}

.fbn-terms__gdpr {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--fbn-muted);
}

/* ------------------------------------------------------------------ */
/* Opsummering                                                          */
/* ------------------------------------------------------------------ */

.fbn-summary {
	border: 1px solid var(--fbn-line);
	border-radius: var(--fbn-radius);
	overflow: hidden;
}

.fbn-summary__group {
	border-bottom: 1px solid var(--fbn-line);
}

.fbn-summary__group:last-child {
	border-bottom: 0;
}

.fbn-summary__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	background: var(--fbn-cream);
}

.fbn-summary__title {
	font-weight: 600;
	color: var(--fbn-navy);
}

.fbn .fbn-summary__edit {
	border: 0;
	background: none;
	padding: 0;
	color: var(--fbn-navy);
	font-size: 15px;
	font-family: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.fbn-summary__list {
	margin: 0;
	padding: 16px 20px;
	display: grid;
	grid-template-columns: minmax(140px, auto) 1fr;
	gap: 8px 20px;
}

.fbn-summary__list dt {
	color: var(--fbn-muted);
	font-size: 15px;
}

.fbn-summary__list dd {
	margin: 0;
	word-break: break-word;
}

.fbn-summary__empty {
	margin: 0;
	padding: 20px;
	color: var(--fbn-muted);
}

/* ------------------------------------------------------------------ */
/* Knapper                                                              */
/* ------------------------------------------------------------------ */

.fbn-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 34px;
}

.fbn-actions--submit {
	justify-content: space-between;
}

.fbn .fbn-btn {
	display: inline-block;
	padding: 15px 32px;
	border: 1px solid transparent;
	border-radius: var(--fbn-radius);
	font-size: 17px;
	font-family: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.fbn .fbn-btn--primary {
	background: var(--fbn-navy);
	color: #fff;
}

.fbn .fbn-btn--primary:hover,
.fbn .fbn-btn--primary:focus-visible {
	background: #23234a;
	color: #fff;
}

.fbn .fbn-btn--ghost {
	background: transparent;
	border-color: var(--fbn-line);
	color: var(--fbn-navy);
}

.fbn .fbn-btn--ghost:hover {
	border-color: var(--fbn-navy);
}

.fbn .fbn-btn--lg {
	padding: 17px 40px;
	font-size: 18px;
}

.fbn-fineprint {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--fbn-muted);
	text-align: right;
}

/* ------------------------------------------------------------------ */
/* Beskeder                                                             */
/* ------------------------------------------------------------------ */

.fbn-alert {
	margin: 0 0 28px;
	padding: 18px 22px;
	border-radius: var(--fbn-radius);
	border-left: 4px solid;
}

.fbn-alert--error {
	background: #fdf4f4;
	border-color: var(--fbn-error);
	color: #5e0404;
}

.fbn-alert__title {
	margin: 0 0 6px;
	font-weight: 600;
}

.fbn-alert ul {
	margin: 0;
	padding-left: 20px;
}

/* ------------------------------------------------------------------ */
/* Login                                                                */
/* ------------------------------------------------------------------ */

.fbn-login {
	max-width: 460px;
}

.fbn-login__box {
	padding: 40px 38px;
	border: 1px solid var(--fbn-line);
	border-radius: var(--fbn-radius);
	background: var(--fbn-bg);
}

.fbn-login__box--besked {
	text-align: center;
}

.fbn-login__title {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.2;
	color: var(--fbn-navy);
}

.fbn-login__lead {
	margin: 0 0 28px;
	color: var(--fbn-muted);
	font-size: 16px;
}

.fbn-login__form .fbn-field {
	margin-bottom: 18px;
}

.fbn-login__form .fbn-check {
	margin-bottom: 24px;
}

.fbn .fbn-btn--block {
	display: block;
	width: 100%;
	text-align: center;
}

.fbn-login__links {
	margin: 20px 0 0;
	text-align: center;
	font-size: 15px;
}

.fbn-login__signup {
	margin: 24px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--fbn-line);
	text-align: center;
	font-size: 15px;
	color: var(--fbn-muted);
}

/* "Husk mig" er en biting og skal ikke fylde som et samtykkefelt. */
.fbn-check--plain {
	padding: 0;
	border: 0;
	background: none;
}

.fbn-check--plain:hover {
	border: 0;
	background: none;
}

/* Vis/skjul adgangskode */
.fbn-password {
	position: relative;
}

.fbn-password .fbn-password__toggle {
	border-left: 1px solid var(--fbn-line);
	border-radius: 0;
}

.fbn-password .fbn-input {
	padding-right: 64px;
}

.fbn .fbn-password__toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	padding: 6px 10px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--fbn-navy);
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
}

.fbn .fbn-password__toggle:hover {
	background: var(--fbn-cream);
}

/* ------------------------------------------------------------------ */
/* Kvittering                                                           */
/* ------------------------------------------------------------------ */

.fbn-receipt {
	max-width: 620px;
	margin: 0 auto;
	padding: 44px 40px;
	border: 1px solid var(--fbn-line);
	border-radius: var(--fbn-radius);
	text-align: center;
}

.fbn-receipt__mark {
	color: var(--fbn-gold);
	margin-bottom: 18px;
	line-height: 0;
}

.fbn-receipt h2 {
	margin: 0 0 10px;
	color: var(--fbn-navy);
}

.fbn-receipt__lead {
	margin: 0 0 28px;
	font-size: 19px;
	color: var(--fbn-muted);
}

.fbn-receipt__steps {
	margin: 0 auto 28px;
	padding: 0 0 0 22px;
	max-width: 440px;
	text-align: left;
	line-height: 1.7;
}

.fbn-receipt__steps li {
	margin-bottom: 10px;
}

.fbn-receipt__help {
	margin: 0;
	font-size: 15px;
	color: var(--fbn-muted);
}

/* ------------------------------------------------------------------ */
/* Søgbar dropdown                                                      */
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* Små skærme                                                           */
/* ------------------------------------------------------------------ */

@media (max-width: 430px) {
	.fbn {
		font-size: 16px;
	}

	.fbn-step__title {
		font-size: 25px;
	}

	/* Antal-vælgeren får sin egen linje, så teksten ikke klemmes sammen. */
	.fbn-qty {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 16px 18px;
	}

	.fbn-stepper {
		align-self: flex-start;
	}

	.fbn-total__row {
		flex-direction: column;
		gap: 4px;
	}

	.fbn-total__value {
		font-size: 26px;
	}

	/* Primærknappen skal stå øverst når knapperne stables. */
	.fbn-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.fbn .fbn-btn {
		width: 100%;
		text-align: center;
	}

	.fbn-fineprint {
		text-align: left;
	}

	.fbn-receipt {
		padding: 32px 22px;
	}

	.fbn-summary__list {
		grid-template-columns: 1fr;
		gap: 2px 0;
	}

	.fbn-summary__list dd {
		margin-bottom: 10px;
	}

	/* Nummer og fjern-knap på egen linje, så felterne får fuld bredde. */
	.fbn-invite {
		position: relative;
		flex-wrap: wrap;
		padding-top: 44px;
	}

	.fbn-invite__number,
	.fbn .fbn-invite__remove {
		position: absolute;
		top: 12px;
		margin-top: 0;
	}

	.fbn-invite__number {
		left: 16px;
	}

	.fbn .fbn-invite__remove {
		right: 12px;
	}

	.fbn-invite__fields {
		flex: 1 1 100%;
	}
}

.fbn-search {
	position: relative;
	margin-bottom: 10px;
}

/* Forstørrelsesglas som baggrund, så feltet tydeligt er et søgefelt og ikke
   endnu et felt der skal udfyldes. */
.fbn .fbn-input--search {
	padding-left: 44px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b80' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 14px center;
	background-size: 19px 19px;
}

.fbn-search__count {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--fbn-muted);
}

.fbn-search__count:empty {
	display: none;
}

.fbn-form:not(.fbn-js) .fbn-search {
	display: none;
}

.fbn-quantities.is-invalid {
	border-color: var(--fbn-error);
	box-shadow: 0 0 0 3px rgba(163, 35, 31, .1);
}

/* ------------------------------------------------------------------ */
/* Fakturaer på Min side                                               */
/* ------------------------------------------------------------------ */

.fbn-invoices {
	margin: 32px 0;
}

.fbn-invoices__title {
	margin: 0 0 12px;
	font-family: "Minion Pro", sans-serif;
	font-size: 22px;
	color: var(--fbn-navy);
}

.fbn-invoices__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--fbn-line);
}

.fbn-invoices__item {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	align-items: baseline;
	justify-content: space-between;
	padding: 14px 0;
	border-bottom: 1px solid var(--fbn-line);
}

.fbn-invoices__label {
	font-weight: 600;
	color: var(--fbn-navy);
}

.fbn-invoices__meta {
	display: block;
	margin-top: 2px;
	font-weight: 400;
	font-size: 14px;
	color: var(--fbn-muted);
}

.fbn-invoices__link {
	white-space: nowrap;
}
