/* Sortberg Shop: kurv, kasse, kvittering, Min profil, Min virksomhed og login. Indlæses efter sider.css. */
/* ------------------------------------------------------------------ */
/* Kurv og kasse                                                       */
/* ------------------------------------------------------------------ */
.cartpage { padding-top: 40px; padding-bottom: 80px; display: grid; gap: 32px; }
.split { display: grid; grid-template-columns: minmax(0, 872fr) minmax(0, 440fr); gap: 48px; align-items: start; }
.lines { border-top: 1px solid var(--c-border); }
.line { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--c-border); }
.line__img { width: 120px; height: 150px; border: 1px solid var(--c-border); overflow: hidden; background: var(--c-bg); }
.line__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.line__body { display: grid; gap: 4px; align-content: start; }
.line__name { font-size: 17px; font-weight: 500; text-decoration: none; }
.line__meta { font-size: 14px; color: var(--c-text-2); }
.line__meta--small { font-size: 13px; }
.line__actions { display: flex; align-items: center; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.line__actions .qty button, .line__actions .qty input { height: 34px; width: 34px; }
.line__save { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.line__price { font-size: 17px; font-weight: 500; white-space: nowrap; }
.line__price--mobile { display: none; }
.summary { border: 1px solid var(--c-border); padding: 28px; display: grid; gap: 16px; position: sticky; top: 24px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.summary__row span:first-child { color: var(--c-text-2); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--c-border); font-size: 17px; font-weight: 500; }
.summary__total strong { font-size: 22px; font-weight: 500; }
.summary__links { text-align: center; }
.summary__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.summary__item img { width: 56px; height: 70px; object-fit: contain; padding: 2px; border: 1px solid var(--c-border); }
.summary__item p { font-size: 14px; font-weight: 500; }
.summary__item small { display: block; font-size: 13px; color: var(--c-text-2); font-weight: 400; }
.summary__items { display: grid; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }

.back { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; text-decoration: none; }
.checkout-page { padding-top: 32px; padding-bottom: 80px; display: grid; gap: 24px; }
.checkout-page h1 { font-size: 40px; }
.steps { display: grid; gap: 40px; }
.step { display: grid; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.step__title { display: flex; gap: 12px; align-items: center; font-size: 22px; font-weight: 500; padding: 0; margin-bottom: 16px; }
.step__num { width: 28px; height: 28px; display: grid; place-items: center; background: var(--sh-primary); color: var(--sh-on-primary); font-size: 13px; font-weight: 500; }
.choice { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; border: 2px solid var(--c-border-selected); padding: 18px 16px; cursor: pointer; }
.choice input { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--c-border-strong); margin: 2px 0 0; display: grid; place-content: center; }
.choice input:checked { border: 6px solid var(--c-text); }
.choice strong { font-weight: 500; font-size: 15px; display: block; }
.choice small { font-size: 13px; color: var(--c-text-2); }
.choice + .choice { margin-top: -6px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .field--wide { grid-column: 1 / -1; }
.checkout-page .form-row { margin: 0; }
.checkout-page abbr.required { text-decoration: none; color: var(--c-text-3); }

/* Ordrebekræftelse */
.thanks { padding-top: 72px; padding-bottom: 96px; display: grid; gap: 32px; justify-items: center; text-align: center; }
.thanks__inner { width: 100%; max-width: 720px; display: grid; gap: 32px; }
.thanks__check { width: 64px; height: 64px; border-radius: 50%; background: var(--c-success-soft); color: var(--c-success-text); display: grid; place-items: center; margin: 0 auto; }
.thanks__check--warning { background: var(--c-warning-soft); color: var(--c-warning-text); }
.thanks__check--danger { background: var(--c-danger-soft); color: var(--c-danger-text); }
.thanks h1 { font-size: 36px; }
.thanks__lead { color: var(--c-text-2); font-size: 16px; margin-top: -22px; }
.tracker { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--c-border); list-style: none; margin: 0; padding: 0; text-align: left; }
.tracker li { display: flex; gap: 12px; padding: 16px; align-items: flex-start; }
.tracker li.is-current { background: var(--sh-primary-soft); }
.tracker__dot { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--c-border-strong); display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--c-text-2); flex: none; }
.tracker li.is-done .tracker__dot { background: var(--sh-primary); border-color: var(--sh-primary); color: var(--sh-on-primary); }
.tracker strong { display: block; font-size: 14px; font-weight: 400; }
.tracker li.is-done strong { font-weight: 500; }
.tracker small { display: block; font-size: 12px; line-height: 1.3; color: var(--c-text-2); margin-top: 2px; }
.whatnow { background: var(--c-bg-muted); padding: 24px; text-align: left; display: grid; gap: 8px; }
.whatnow h2 { font-size: 16px; }
.whatnow p { font-size: 14px; color: var(--c-text-2); }
.kv { display: flex; justify-content: space-between; border: 1px solid var(--c-border); padding: 16px 0; font-size: 15px; background: var(--points-bg); color: var(--points-text); }
.kv strong { font-weight: 500; }
.thanks__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------ */
/* Min profil og Min virksomhed                                        */
/* ------------------------------------------------------------------ */
.account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 80px; }
.account__side { display: grid; gap: 0; align-content: start; }
.account__who { padding-bottom: 20px; display: grid; gap: 4px; }
.account__who strong { display: block; font-size: 18px; font-weight: 500; }
.account__who span { font-size: 13px; color: var(--c-text-2); }
.account__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.account__nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 15px; text-decoration: none; }
.account__nav a:hover { background: var(--c-bg-muted); }
.account__nav .is-active a { background: var(--c-bg-muted); font-weight: 500; }
.account__title-mobile { display: none; }
.account__main { display: grid; gap: 40px; align-content: start; min-width: 0; }
.account__main .section { gap: 16px; }
.account__main .section__head { align-items: center; }
.section-title--sm { font-size: 24px; }
.account__head { display: grid; gap: 6px; }
.account__head h1 { font-size: 36px; }
.account__head p { color: var(--c-text-2); font-size: 15px; }
.points-card { display: grid; gap: 16px; background: var(--points-bg); color: var(--points-text); }
.points-card__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.points-card__top .eyebrow { color: inherit; }
.points-card__top .status__big { font-size: 32px; margin-top: 4px; }
.points-card__aside { font-size: 14px; color: inherit; text-align: right; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; padding: 10px 0; border-top: 1px solid var(--c-border); font-size: 14px; }
.ledger li > span:last-child { font-weight: 500; white-space: nowrap; }
.ledger a { text-decoration: none; }
.ledger a:hover { text-decoration: underline; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats div { border: 1px solid var(--c-border); padding: 18px; display: grid; gap: 6px; }
.stats strong { font-size: 22px; font-weight: 500; }
.info { display: grid; grid-template-columns: 160px 1fr; gap: 12px 16px; font-size: 14px; }
.info-card { display: grid; gap: 12px; }
.info dt { color: var(--c-text-2); }
.info dd { margin: 0; }
.orders-table { border-top: 1px solid var(--c-border); table-layout: fixed; }
.orders-table th { letter-spacing: 1px; padding: 12px 16px 12px 0; }
.orders-table td { padding: 16px 16px 16px 0; }
.orders-table td:first-child a { font-size: 15px; font-weight: 500; text-decoration: none; }
.orders-table .link { font-weight: 500; }
.orders-mobile { display: none; }
/* Ønskeseddel i Min profil: billeder 400 høje som i Figma (07 og 08). */
@media (min-width: 901px) {
	.account__main .grid .pcard__img { aspect-ratio: auto; height: 400px; }
}
.order-detail { display: grid; gap: 24px; }
.order-detail__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reason { background: var(--c-danger-soft); padding: 12px 16px; font-size: 14px; color: var(--c-danger-text); }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
/* Min virksomhed: formularer i kort og i tabelrækker. */
.admin-form { display: grid; gap: 16px; margin-bottom: 24px; }
.admin-form > summary { cursor: pointer; font-weight: 600; }
.admin-form[open] > summary { margin-bottom: 8px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.row-actions form { display: inline-flex; gap: 8px; align-items: center; }
.reject { display: grid; gap: 8px; min-width: 220px; }
.reject textarea { min-height: 64px; }
.csv-error { color: var(--c-danger-text); font-size: 13px; }
.is-closed td { color: var(--c-text-3); }
.shell-note { font-size: 13px; color: var(--c-text-2); border: 1px dashed var(--c-border-strong); padding: 12px 16px; }
/* Én kolonne: felterne øverst, forhåndsvisningen under i fuld bredde, som på forsiden. */
.hero-edit { display: grid; grid-template-columns: 1fr; gap: 32px; }

/* ------------------------------------------------------------------ */
/* Log ind og fejlsider                                                */
/* ------------------------------------------------------------------ */
.login { min-height: calc(100vh - 36px); background: var(--sh-primary-soft); display: grid; place-items: center; padding: 48px 16px; }
.login__card { width: 100%; max-width: 440px; background: var(--c-bg); border: 1px solid var(--c-border); padding: 40px; display: grid; gap: 22px; }
.login__card .logo img { height: 32px; max-width: 200px; }
.login__card h1 { font-size: 28px; }
.login__card p { color: var(--c-text-2); font-size: 14px; }
.login__card form { display: grid; gap: 16px; }
.code-input { letter-spacing: 8px; font-size: 22px !important; text-align: center; font-variant-numeric: tabular-nums; }
.login__links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.login__foot { text-align: center; font-size: 12px; color: var(--c-text-3); }
.login__notice { padding: 12px 14px; font-size: 14px; background: var(--c-bg-muted); }
.login__notice--success { background: var(--c-success-soft); color: var(--c-success-text); }
.login__notice--danger { background: var(--c-danger-soft); color: var(--c-danger-text); }
.error-page { padding-top: 96px; padding-bottom: 120px; display: grid; gap: 20px; justify-items: start; max-width: 720px; }
.error-page__code { font-size: 12px; letter-spacing: 1.2px; color: var(--c-text-3); text-transform: uppercase; }
.error-page h1 { font-size: 44px; }
.error-page p { color: var(--c-text-2); font-size: 17px; }
.prose { max-width: 720px; display: grid; gap: 16px; font-size: 16px; line-height: 1.6; }
.prose h2 { font-size: 22px; margin-top: 12px; }
.prose a { color: var(--c-text); text-underline-offset: 3px; }

/* Info-sider (template-parts/info/): Min profils opbygning, harmonika som på produktsiden. */
.info-page .account__main { gap: 28px; }
.info-page__title { font-size: 36px; font-weight: 500; }
.info-page .prose { color: var(--c-text-2); }
.info-page .prose h2 { color: var(--c-text); }
.acc--faq { max-width: 720px; }
.acc--faq details > summary { text-transform: none; letter-spacing: 0; font-size: 16px; }
.acc--faq details > summary::after { content: ""; flex: none; width: 18px; height: 18px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; }
.acc--faq details[open] > summary::after { transform: rotate(45deg); }
.acc--faq details > :not(summary) { margin: 0; padding: 0 32px 20px 0; font-size: 15px; line-height: 1.6; color: var(--c-text-2); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.contact__card { grid-column: 2; grid-row: 1; gap: 20px; }
.contact__form { grid-column: 1; grid-row: 1; display: grid; gap: 20px; }
.info--stack { grid-template-columns: 1fr; gap: 4px; font-size: 15px; }
.info--stack dd + dt { margin-top: 12px; }
.info--stack dd small { display: block; font-size: 13px; color: var(--c-text-2); margin-top: 2px; }
.contact__cvr { font-size: 13px; color: var(--c-text-2); padding-top: 16px; border-top: 1px solid var(--c-border); }
.contact__send { display: grid; gap: 14px; justify-items: start; }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.info-draft { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--c-warning); background: var(--c-warning-soft); color: var(--c-warning-text); font-size: 14px; }
.info-draft .icon { margin-top: 2px; }
.info-draft .link { color: inherit; font-size: 14px; margin-left: 4px; }
.footer--minimal { padding: 20px 0; }
.footer--minimal .footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; flex-wrap: wrap; }


/* Dropdown (assets/js/select.js): knap som feltet, panel i temaets design i stedet for browserens grå liste.
   Den rigtige <select> ligger skjult under knappen og sendes med formularen. ------------------------------- */
.select { position: relative; }
.field .select > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.select__button { display: flex; align-items: center; text-align: left; line-height: 22px; }
.select__button:disabled { cursor: not-allowed; background-color: var(--c-bg-muted); color: var(--c-text-disabled); }
.select__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select__panel { position: fixed; z-index: 1000; display: grid; background: var(--c-bg); border: 1px solid var(--c-border-strong); }
.select__panel[hidden] { display: none; }
.field input.select__search { width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--c-border); border-radius: 0; background: var(--c-bg); font-size: 15px; color: var(--c-text); }
.select__search::placeholder { color: var(--c-text-3); }
.field input.select__search:focus { outline: none; border-bottom-color: var(--c-border-selected); }
.select__list { list-style: none; margin: 0; padding: 4px 0; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.select__option { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 44px 10px 14px; position: relative; font-size: 15px; color: var(--c-text); cursor: pointer; }
.select__option:hover, .select__option.is-active { background: var(--c-bg-muted); }
.select__option[aria-selected="true"] { font-weight: 500; }
/* Flueben ved den valgte i kundens farve. */
.select__option[aria-selected="true"]::after {
	content: ""; position: absolute; right: 16px; top: 50%; width: 14px; height: 8px; margin-top: -6px;
	border-left: 2px solid var(--sh-primary); border-bottom: 2px solid var(--sh-primary); transform: rotate(-45deg);
}
.select__option[aria-disabled="true"] { color: var(--c-text-disabled); cursor: not-allowed; background: none; }
.select__group { padding: 12px 14px 6px; font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--c-text-3); }
.select__empty { padding: 12px 14px; font-size: 14px; color: var(--c-text-2); }
.select__empty[hidden], .select__option[hidden], .select__group[hidden] { display: none; }
@media (max-width: 600px) {
	.select__option { min-height: 48px; }
	.field input.select__search { font-size: 16px; } /* iOS zoomer ikke ind ved 16 px. */
}
