/* REV-138 P1: isolated package-change page, following the four approved boards. */
#account #workspace-account #workspace-billing.st-package-changing>:not(.st-package-change),
#account #workspace-account[data-account-tab="billing"]:has(.st-package-changing) #customer-account-panel,
#account #workspace-account[data-account-tab="billing"]:has(.st-package-changing)>.pilot-page-heading{display:none}
#account #workspace-account #workspace-billing .st-package-change{display:flex;flex-direction:column;gap:28px;max-width:1120px;width:100%;min-width:0;color:#16181d}
#account #workspace-account #workspace-billing .st-change-top{display:flex;flex-direction:column;gap:0;margin:0}
#account #workspace-account #workspace-billing .st-change-top p{margin:0;font-size:14px;line-height:20px;white-space:nowrap}
#account #workspace-account #workspace-billing .st-change-grid{display:grid;grid-template-columns:minmax(0,calc(60% - 48px)) minmax(0,1fr);gap:20px;align-items:start}
#account #workspace-account #workspace-billing .st-change-grid>section{display:flex;flex-direction:column;gap:10px;min-width:0}
#account #workspace-account #workspace-billing .st-change-grid h2{margin:0;font-size:17px;line-height:24px;font-weight:650;letter-spacing:-.01em}
#account #workspace-account #workspace-billing .st-change-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
#account #workspace-account #workspace-billing .st-change-meta{font-size:13px;line-height:18px;color:#6b6f78;white-space:nowrap}
#account #workspace-account #workspace-billing :is(.st-change-options,.st-change-card){padding:0;background:#fff;border:.5px solid rgba(16,24,40,.22);border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.05),0 1px 3px rgba(16,24,40,.04);overflow:hidden}
#account #workspace-account #workspace-billing .st-change-option{display:flex;align-items:center;gap:12px;padding:14px 16px;min-height:0;cursor:pointer}
#account #workspace-account #workspace-billing .st-change-option+.st-change-option{border-top:.5px solid rgba(16,24,40,.13)}
#account #workspace-account #workspace-billing .st-change-option input{width:20px;height:20px;flex:none;margin:0;accent-color:#16181d}
#account #workspace-account #workspace-billing .st-change-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
#account #workspace-account #workspace-billing .st-change-name{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#account #workspace-account #workspace-billing .st-change-name b{font-size:15px;line-height:20px;font-weight:600;white-space:nowrap}
#account #workspace-account #workspace-billing .st-change-quota{font-size:13px;line-height:18px;color:#3d4049;white-space:nowrap}
#account #workspace-account #workspace-billing .st-change-price{font-size:17px;line-height:24px;font-weight:700;white-space:nowrap}
#account #workspace-account #workspace-billing .st-change-difference{display:flex;align-items:center;gap:12px;padding:16px}
#account #workspace-account #workspace-billing .st-change-tile{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border-radius:11px;background:#fff;box-shadow:inset 0 0 0 .5px rgba(16,24,40,.22);color:#1e8e3e}
#account #workspace-account #workspace-billing .st-change-tile svg{width:22px;height:22px}
#account #workspace-account #workspace-billing .st-change-down{color:#ab6400}
#account #workspace-account #workspace-billing .st-change-amount{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
#account #workspace-account #workspace-billing .st-change-amount b{font-size:30px;line-height:36px;letter-spacing:-.02em;white-space:nowrap}
#account #workspace-account #workspace-billing .st-change-amount span{font-size:14px;line-height:24px;color:#6b6f78;white-space:nowrap}
#account #workspace-account #workspace-billing .st-change-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 16px;border-top:.5px solid rgba(16,24,40,.13);font-size:15px;line-height:20px}
#account #workspace-account #workspace-billing .st-change-row>span{white-space:nowrap}
#account #workspace-account #workspace-billing .st-change-values{display:flex;align-items:center;gap:8px}
#account #workspace-account #workspace-billing .st-change-values>span{color:#6b6f78}
#account #workspace-account #workspace-billing .st-change-values svg{width:16px;height:16px;color:#6b6f78}
#account #workspace-account #workspace-billing .st-change-warning{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-top:.5px solid rgba(16,24,40,.13)}
#account #workspace-account #workspace-billing .st-change-warning .st-change-tile{width:32px;height:32px;border-radius:8px}
#account #workspace-account #workspace-billing .st-change-warning svg{width:16px;height:16px}
#account #workspace-account #workspace-billing .st-change-warning p{margin:0;flex:1;font-size:15px;line-height:22px;text-wrap:pretty}
#account #workspace-account #workspace-billing .st-change-actions{display:flex;align-items:center;gap:12px;padding:14px 16px 16px;border-top:.5px solid rgba(16,24,40,.13)}
#account #workspace-account #workspace-billing .st-change-actions .r-btn{height:40px;min-height:40px;padding:0 14px;white-space:nowrap;font-size:14px}
#account #workspace-account #workspace-billing .st-change-actions .primary{flex:1}
#account #workspace-account #workspace-billing .st-change-actions svg{width:15px;height:15px}
#account #workspace-account #workspace-billing .st-change-error{margin:0;padding:0 16px 16px;white-space:normal;align-items:flex-start;font-size:14px;line-height:20px}
#account #workspace-account #workspace-billing .st-change-error:before{margin-top:6px;flex:none}
#account #workspace-account #workspace-billing .st-change-preview-note{margin:8px 0 0;font-size:13px;line-height:18px;color:#60646c}
#account #workspace-account #workspace-billing .st-change-mobile-note{display:none}
#account #workspace-account #workspace-billing .st-package-change :not(.r-back)>svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#account #workspace-account #workspace-billing .st-package-change .r-status{background:transparent;color:#3d4049;white-space:nowrap;font-size:13px;line-height:18px}
@media(max-width:1100px){
 #account #workspace-account #workspace-billing .st-change-grid{grid-template-columns:minmax(0,1fr);max-width:680px}
}
@media(max-width:600px){
 #account #workspace-account #workspace-billing .st-change-meta{display:none}
 #account #workspace-account #workspace-billing .st-change-grid{gap:24px}
 #account #workspace-account #workspace-billing .st-change-actions{flex-direction:column;gap:8px}
 #account #workspace-account #workspace-billing .st-change-actions .r-btn{width:100%;height:44px;min-height:44px;flex:auto;font-size:15px}
 #account #workspace-account #workspace-billing .st-change-mobile-note{display:block;align-self:center;margin:-8px 0 0;font-size:13px;line-height:18px;color:#6b6f78;white-space:nowrap}
 #account #workspace-account #workspace-billing .st-change-top h1{font-size:26px;line-height:32px}
}

#account #workspace-account #workspace-billing .st-change-title-row{display:flex;align-items:center;justify-content:flex-start;gap:14px}
#account #workspace-account #workspace-billing .st-change-title-row h1{margin:0}
#account #workspace-account #workspace-billing .st-change-title-row>.r-status{font-size:14px;line-height:20px}
@media(max-width:600px){
 #account #workspace-account #workspace-billing .st-package-change{gap:24px}
 #account #workspace-account #workspace-billing .st-change-title-row{flex-direction:column;align-items:flex-start;gap:4px;padding-top:4px}
 #account #workspace-account #workspace-billing .st-change-title-row p{margin:0}
}
/* REV-138 pakke (Innstillinger-pakke-mobil/-pc): «Administrer» before «Bytt pakke»; the period's customers as a green bar in one
   part per customer with «N igjen · perioden varer til …» under; «Betaling» as its own list on a phone, links in the card on a computer. */
#account #workspace-account #workspace-billing .st-bill-pair>.st-manage.st-manage{order:0}
#account #workspace-account #workspace-billing .st-paid-meter>.st-meter-bar.st-seg-bar{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;height:8px;border-radius:0;background:none;overflow:visible}
#account #workspace-account #workspace-billing .st-paid-meter>.st-meter-bar.st-seg-bar>span{width:auto;height:100%;border-radius:2px;background:#ecebe6}
#account #workspace-account #workspace-billing .st-paid-meter>.st-meter-bar.st-seg-bar>span.on{background:#218358}
#account #workspace-account #workspace-billing .st-paid-meter>.st-meter-bar:not(.st-seg-bar)>span{background:#218358}
#account #workspace-account #workspace-billing .st-paid-meter>.st-meter-sub{color:#6b6f78;font-size:13px;line-height:18px;white-space:nowrap}
#account #workspace-account #workspace-billing>.st-pay-section{display:flex;flex-direction:column;gap:10px;margin:24px 0 0}
#account #workspace-account #workspace-billing>.st-pay-section>h2{margin:0;font-size:17px;line-height:24px;font-weight:650;letter-spacing:-.01em}
#account #workspace-account #workspace-billing .st-pay-list{padding:0;overflow:hidden}
#account #workspace-account #workspace-billing .st-pay-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;margin:0;padding:0 16px;border:0;background:#fff;color:#16181d;font:400 15px/20px var(--r-font);text-align:left;cursor:pointer}
#account #workspace-account #workspace-billing .st-pay-row+.st-pay-row{border-top:.5px solid rgba(16,24,40,.13)}
#account #workspace-account #workspace-billing .st-pay-row>svg{width:16px;height:16px;flex:none;fill:none;stroke:#6b6f78;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:820px){
 #account #workspace-account #workspace-billing #billing-current.st-paid:not(.st-paid-full)>.st-bill-payment{display:none}
}
@media (min-width:821px){
 #account #workspace-account #workspace-billing>.st-pay-section{display:none}
}
/* REV-138 pakke (Innstillinger-pakke-*): «Kvitteringer» as a heading with «åpnes hos Stripe» at its right on a phone too; the
   rows without the grey tile, the date in full weight and «inkl. mva.» on a phone; the package's name in 17 px. */
#account #workspace-account #workspace-billing #billing-receipts>.st-receipts-head{justify-content:space-between;margin:24px 0 10px}
#account #workspace-account #workspace-billing #billing-receipts>.st-receipts-head>h2{margin:0;color:#16181d;font:650 17px/24px var(--r-font);letter-spacing:-.01em;text-transform:none}
#account #workspace-account #workspace-billing #billing-receipts>.st-receipts-head>small{display:inline;color:#6b6f78;font:400 13px/18px var(--r-font)}
#account #workspace-account #workspace-billing #billing-receipts .st-receipt-row>.st-ic{display:none}
#account #workspace-account #workspace-billing #billing-receipts .st-receipt-row .st-who>b{font-weight:600}
#account #workspace-account #workspace-billing .st-current.st-paid .st-bill-head .st-who>b{font-size:17px;line-height:22px;font-weight:650}
#account #workspace-account #workspace-billing .st-current.st-paid .st-bill-head .st-parts>.r-status{font-weight:400}
/* REV-138 pakke (Innstillinger-pakke-pc): on a computer the plain active package stands as «Din pakke» beside «Kvitteringer»; in
   the card «Neste trekk» at the top right and a foot with the links to Stripe at the left and the buttons at the right. Every
   other state (failed, cancelled, ended, not active, the full package), and any line over the card (a check after Stripe, a
   status), keeps one column in the order of the page. A phone keeps one column. */
#account #workspace-account #workspace-billing>.st-paid-title{display:none}
@media (min-width:1100px){
 #account #workspace-account #workspace-billing:not(.st-package-changing):not(:has(>#billing-checking)):not(:has(>#billing-status:not([hidden]):not(:empty))):has(>#billing-current.st-paid.st-paid-plain){display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);column-gap:20px;align-items:start}
 #account #workspace-account #workspace-billing:not(.st-package-changing):not(:has(>#billing-checking)):not(:has(>#billing-status:not([hidden]):not(:empty))):has(>#billing-current.st-paid.st-paid-plain)>*{grid-column:1/-1}
 #account #workspace-account #workspace-billing:not(.st-package-changing):not(:has(>#billing-checking)):not(:has(>#billing-status:not([hidden]):not(:empty))):has(>#billing-current.st-paid.st-paid-plain)>.st-paid-title{display:block;grid-column:1;grid-row:1;margin:0 0 10px;font:650 17px/24px var(--r-font);letter-spacing:-.01em;color:#16181d}
 #account #workspace-account #workspace-billing:not(.st-package-changing):not(:has(>#billing-checking)):not(:has(>#billing-status:not([hidden]):not(:empty))):has(>#billing-current.st-paid.st-paid-plain)>#billing-current{grid-column:1;grid-row:2;margin:0}
 #account #workspace-account #workspace-billing:not(.st-package-changing):not(:has(>#billing-checking)):not(:has(>#billing-status:not([hidden]):not(:empty))):has(>#billing-current.st-paid.st-paid-plain)>#billing-receipts{grid-column:2;grid-row:1/span 2}
 #account #workspace-account #workspace-billing:not(.st-package-changing):not(:has(>#billing-checking)):not(:has(>#billing-status:not([hidden]):not(:empty))):has(>#billing-current.st-paid.st-paid-plain)>#billing-receipts>.st-receipts-head{margin:0 0 10px}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:14px;padding:20px 20px 0}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>*{grid-column:1/-1}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-bill-head{grid-column:1;grid-row:1}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-bill-fact{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-end;gap:2px;margin:0;padding:0;border:0}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-bill-fact>span{color:#6b6f78;font-size:13px;line-height:18px}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-paid-meter{grid-row:2;padding-bottom:16px}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain::after{content:"";grid-column:1/-1;grid-row:3;height:0;margin:0 -20px;border-top:.5px solid rgba(16,24,40,.13)}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-bill-payment{grid-column:1;grid-row:4;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:4px 20px;min-width:0;margin:0 0 16px;padding:0;border:0}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-bill-payment>b{display:none}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-bill-pair{grid-column:2;grid-row:4;display:flex;gap:8px;margin:0 0 16px}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-bill-pair>.r-btn{width:auto;height:40px;padding:0 14px;font-size:14px}
}
/* REV-138 pakke (Innstillinger-pakke-kvote-brukt-mobil): «Liten · periodens kunder er brukt» on one line beside its dot; it was
   cut to the dot on a phone. */
#account #workspace-account #workspace-billing .st-quota-card .st-bill-head .st-who>.r-status{display:inline-flex;align-items:baseline;gap:6px;height:auto;min-height:18px;white-space:normal}
/* REV-138 pakke (320–360 px): «Betaling feilet · 490 kr / mnd eks. mva.» goes on to a second line instead of being cut, and a
   list row's words («Svar og åpne saker vises fortsatt») wrap. */
#account #workspace-account #workspace-billing .st-current .st-bill-head .st-parts{flex-wrap:wrap;row-gap:2px}
#account #workspace-account #workspace-billing .st-current .st-bill-head .st-parts>span{overflow:visible;text-overflow:clip;white-space:nowrap}
#account #workspace-account #workspace-billing .st-bill-list .st-bill-row b{overflow:visible;text-overflow:clip;white-space:normal}
/* Between 1100 and 1299 px the card's column is narrow: the links stand over the buttons, and the price line may wrap. */
@media (min-width:1100px) and (max-width:1299px){
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-bill-payment{grid-column:1/-1;grid-row:4;margin:0}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-bill-pair{grid-column:1/-1;grid-row:5;justify-content:flex-end}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-bill-head .st-who,#account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-bill-head .st-parts{min-width:0;overflow:visible}
 #account #workspace-account #workspace-billing:not(.st-package-changing) #billing-current.st-paid.st-paid-plain>.st-bill-head .st-parts>span{white-space:normal}
}
/* Gjennomgang C, C15 (22.11): «/ mnd» under the price in the trial's last week was 12 px; 13 px is the floor for text. */
@media(max-width:820px){
 #account #workspace-account #workspace-billing:has(>#billing-current.st-trial-focused) #billing-plans .st-price small{font-size:13px;line-height:18px}
}
/* Gjennomgang C, C1 (Innstillinger-pakke-stengt): while packages cannot be bought the trial page shows the prices only, with
   nothing to choose: no fields for customers and places, no calculator and no pointer on the cards. */
#account #workspace-account #workspace-billing.st-buy-closed>.st-package-need,
#account #workspace-account #workspace-billing.st-buy-closed .st-plan-calculator{display:none}
#account #workspace-account #workspace-billing.st-buy-closed #billing-plans .st-plan{cursor:default}
#account #workspace-account #workspace-billing.st-buy-closed #billing-current .st-closed-trial{margin-bottom:12px}
@media(max-width:820px){
 /* C1: prices only, so the rows have no choice circle. */
 #account #workspace-account #workspace-billing.st-buy-closed:has(>#billing-current.st-trial-focused) .st-plan{grid-template-columns:0 minmax(0,1fr) auto;column-gap:0}
 #account #workspace-account #workspace-billing.st-buy-closed:has(>#billing-current.st-trial-focused) .st-plan::before{content:none}
 #account #workspace-account #workspace-billing.st-buy-closed:has(>#billing-current.st-trial-focused) .st-price{padding-left:12px}
}
/* C1: the ended trial with buying closed stands flat on the page (grey page, white lists: never three layers). */
#account #workspace-account #workspace-billing.st-over #billing-current .st-ended-trial.st-ended-flat{display:flex;flex-direction:column;gap:12px;padding:0;background:none;border:0;box-shadow:none}
#account #workspace-account #workspace-billing.st-over #billing-current .st-ended-flat>.st-disclosure{cursor:default}
