/* Min konto (logged out): login card with Vipps above and email below. Fields and buttons follow the checkout. */
body.woocommerce-account:not(.logged-in) .content-main article > h1 {display:none;}
body.woocommerce-account:not(.logged-in) .content-main {padding-block:clamp(32px,6vh,72px) 72px;}
.rt-auth {max-width:440px;margin:0 auto;}
.rt-auth-card {padding:clamp(28px,4vw,40px);border:1px solid #e3e7ec;border-radius:18px;background:#fff;box-shadow:0 18px 40px -32px rgba(16,46,60,.35);}
.rt-auth-title {margin:0 0 6px;font-size:clamp(30px,3vw,36px);letter-spacing:-.02em;}
.rt-auth-lead {margin:0 0 24px;color:#4f6378;}
.rt-auth-notice {margin:0 0 18px;padding:12px 14px;border-radius:10px;background:#fbefed;color:#7a2f26;font-size:14px;line-height:1.45;}

/* Vipps: the official button (Vipps' script) or, if it can't load, a fallback in Vipps orange. Same height as our buttons. */
.rt-vipps-login {min-height:52px;}
.rt-vipps-login vipps-mobilepay-button {display:block;width:100%;}
body a.rt-vipps-fallback {display:flex;align-items:center;justify-content:center;gap:6px;min-height:52px;border-radius:99px;background:#ff5b24;color:#fff;font-size:17px;font-weight:700;text-decoration:none;}
.rt-vipps-fallback span {font-weight:800;letter-spacing:-.01em;}
.rt-vipps-login.is-official .rt-vipps-fallback {display:none;}

.rt-auth-or {display:flex;align-items:center;gap:14px;margin:22px 0;color:#6a7a8c;font-size:14px;}
.rt-auth-or::before, .rt-auth-or::after {content:"";flex:1;height:1px;background:#e3e7ec;}

.rt-auth-form {display:grid;gap:12px;margin:0;}
body .woocommerce form.rt-auth-form.login {margin:0;padding:0;border:0;border-radius:0;}
.rt-auth-notices:empty, .rt-auth-notices .woocommerce-notices-wrapper:empty {display:none;}
body.woocommerce-account:not(.logged-in) .rt-auth-notices :is(.woocommerce-error,.woocommerce-message,.woocommerce-info) {margin:0 0 18px;}
body .woocommerce form.rt-auth-form .form-row, .rt-auth-form .form-row {margin:0;padding:0;}
body .woocommerce form.rt-auth-form .form-row input.input-text {display:block;width:100%;min-height:52px;padding:12px 15px;background:#fff;color:var(--ink);border:1px solid #b9c5d0;border-radius:10px;box-shadow:none;outline:0;font:inherit;font-size:16px;line-height:1.4;transition:border-color .15s ease,box-shadow .15s ease;}
body .woocommerce form.rt-auth-form .form-row input.input-text::placeholder {color:#6a7a8c;opacity:1;}
@media (hover:hover) {body .woocommerce form.rt-auth-form .form-row input.input-text:hover {border-color:#8fa1b2;}}
body .woocommerce form.rt-auth-form .form-row input.input-text:focus {border-color:var(--ink);box-shadow:0 0 0 3px #e2e6ea;}
/* WooCommerce adds a show/hide password button inside the field. */
.rt-auth-form .password-input {position:relative;display:block;}
.rt-auth-form .password-input input.input-text {padding-right:52px;}
body .rt-auth-form .show-password-input {position:absolute;top:50%;right:6px;transform:translateY(-50%);width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:#4f6378;cursor:pointer;}
body .rt-auth-form .show-password-input::after {margin:0;}
body .rt-auth-submit {display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;margin-top:6px;padding:0 24px;border:0;border-radius:99px;background:var(--ink);color:#fff;font:inherit;font-size:17px;font-weight:700;cursor:pointer;transition:background-color .15s;}
@media (hover:hover) {body .rt-auth-submit:hover {background:#0067b0;}}
body a.rt-auth-forgot {justify-self:center;margin-top:4px;color:var(--ink);font-size:15px;text-decoration:underline;text-underline-offset:3px;}
.rt-auth :focus-visible {outline:2px solid var(--ink);outline-offset:2px;}
.rt-auth-guest {margin:20px 0 0;text-align:center;color:#4f6378;font-size:14px;}

/* WooCommerce notices (wrong password etc.) and the lost/reset password pages use the same look. */
body.woocommerce-account:not(.logged-in) .woocommerce-error, body.woocommerce-account:not(.logged-in) .woocommerce-message, body.woocommerce-account:not(.logged-in) .woocommerce-info {max-width:440px;margin:0 auto 16px;padding:12px 14px;border:0;border-radius:10px;font-size:14px;line-height:1.45;list-style:none;}
body.woocommerce-account:not(.logged-in) .woocommerce-error {background:#fbefed;color:#7a2f26;}
body.woocommerce-account:not(.logged-in) :is(.woocommerce-message,.woocommerce-info) {background:var(--surface-muted);color:var(--ink);}
body.woocommerce-account:not(.logged-in) :is(.woocommerce-error,.woocommerce-message,.woocommerce-info)::before {display:none;}
/* Forgotten / new password pages use the login card (templates in woocommerce/myaccount/). */
body.woocommerce-account:not(.logged-in) form.lost_reset_password.rt-auth-form {margin:0;padding:0;border:0;}
.rt-auth-card > a.rt-auth-forgot {display:block;text-align:center;}
@media (prefers-reduced-motion:reduce) {body .woocommerce form.rt-auth-form .form-row input.input-text, body .rt-auth-submit {transition:none;}}

/* ===================== Min konto, logged in (templates in woocommerce/myaccount/, logic in account-area.php) ===================== */
body.woocommerce-account.logged-in .content-main article > h1 {display:none;}
body.woocommerce-account.logged-in .content-main {padding-block:clamp(28px,5vh,56px) 72px;}
.rt-acct {display:grid;grid-template-columns:220px minmax(0,1fr);gap:clamp(28px,5vw,72px);align-items:start;max-width:1080px;margin:0 auto;}

/* Menu: a calm vertical list; the current page gets a soft green background. */
.rt-acct-nav {position:sticky;top:24px;}
.rt-acct-nav ul {display:grid;gap:2px;margin:0;padding:0;list-style:none;}
body .rt-acct-nav a {display:flex;align-items:center;gap:12px;min-height:46px;padding:0 14px;border-radius:12px;color:var(--ink);font-size:15px;font-weight:600;text-decoration:none;transition:background-color .15s;}
.rt-acct-nav svg {width:20px;height:20px;flex:none;}
@media (hover:hover) {body .rt-acct-nav a:hover {background:var(--surface-muted);}}
body .rt-acct-nav a[aria-current="page"] {background:rgba(0,103,176,.10);}
.rt-acct-nav-customer-logout {margin-top:10px;padding-top:10px;border-top:1px solid #e6eaee;}
body .rt-acct-nav-customer-logout a {color:#4f6378;font-weight:500;}

.rt-acct-main {min-width:0;}
/* WooCommerce's own CSS floats these at 30% / 68%; the grid above does the layout. */
body.woocommerce-account .rt-acct .woocommerce-MyAccount-content, body.woocommerce-account .rt-acct .woocommerce-MyAccount-navigation {float:none;width:auto;}
.rt-acct-main > :is(.rt-acct-cards,.rt-acct-section,.rt-order-list,.rt-order-detail,.rt-acct-order-head,.rt-acct-title,.rt-acct-lead) {max-width:760px;}
.rt-acct-title {margin:0 0 6px;font-size:clamp(30px,3vw,40px);letter-spacing:-.02em;line-height:1.1;}
.rt-acct-lead {margin:0 0 28px;color:#4f6378;}
.rt-acct-section {margin:0 0 28px;}
.rt-acct-section-head {display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px;}
.rt-acct-section h2, .rt-acct-card h2 {margin:0;font-size:18px;letter-spacing:-.01em;}
body .rt-acct-section-head a, body a.rt-acct-link {color:var(--ink);font-size:15px;font-weight:600;text-decoration:underline;text-underline-offset:3px;}
.rt-acct-muted {color:#6a7a8c;}
body .rt-acct-main a.rt-acct-back {display:inline-flex;align-items:center;gap:6px;margin:0 0 14px;color:#4f6378;font-size:14px;font-weight:600;text-decoration:none;}
.rt-acct-back::before {content:"";width:7px;height:7px;border:solid currentColor;border-width:0 0 1.6px 1.6px;transform:rotate(45deg);}

/* Cards */
.rt-acct-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:0 0 28px;}
.rt-acct-card {display:flex;flex-direction:column;gap:10px;padding:20px 22px;border:1px solid #e3e7ec;border-radius:16px;background:#fff;}
.rt-acct-card address, .rt-acct-card p {margin:0;font-style:normal;line-height:1.6;}
.rt-acct-card .rt-acct-link {margin-top:auto;padding-top:4px;}
.rt-acct-empty {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:22px;border-radius:16px;background:var(--surface-muted);}
.rt-acct-empty p {margin:0;}

/* Buttons (same shapes as the rest of the site) */
body .rt-acct a.rt-btn, body .rt-acct button.rt-btn {display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:99px;border:0;font:inherit;font-size:16px;font-weight:700;text-decoration:none;cursor:pointer;transition:background-color .15s,box-shadow .15s;}
body .rt-acct .rt-btn--ink {background:var(--ink);color:#fff;}
@media (hover:hover) {body .rt-acct .rt-btn--ink:hover {background:#0067b0;color:#fff;}}
body .rt-acct .rt-btn--quiet {background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1.5px #c9d2dc;}
@media (hover:hover) {body .rt-acct .rt-btn--quiet:hover {box-shadow:inset 0 0 0 1.5px var(--ink);}}
body .rt-acct .rt-btn--wide {width:100%;min-height:52px;margin-top:8px;font-size:17px;}

/* Status labels */
.rt-status {display:inline-flex;align-items:center;gap:7px;padding:4px 11px 4px 9px;border-radius:99px;background:var(--surface-muted);color:var(--ink);font-size:13px;font-weight:650;line-height:1.3;white-space:nowrap;}
.rt-status::before {content:"";width:7px;height:7px;border-radius:50%;background:#899295;}
.rt-status--active {background:rgba(0,103,176,.10);}
.rt-status--active::before {background:#2f7d5b;}
.rt-status--done::before {background:var(--ink);}
.rt-status--stopped {background:#fbefed;color:#7a2f26;}
.rt-status--stopped::before {background:#963f33;}

/* Order cards */
.rt-order-list {display:grid;gap:12px;}
.rt-order-card {display:grid;gap:14px;padding:18px 20px;border:1px solid #e3e7ec;border-radius:16px;background:#fff;color:var(--ink);text-decoration:none;}
body .rt-acct a.rt-order-card {color:var(--ink);text-decoration:none;transition:border-color .15s,box-shadow .15s;}
@media (hover:hover) {body .rt-acct a.rt-order-card:hover {border-color:#c9d2dc;box-shadow:0 10px 30px -22px rgba(16,46,60,.45);}}
.rt-order-top {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;}
.rt-order-meta {color:#4f6378;font-size:14px;font-variant-numeric:tabular-nums;}
.rt-order-body {display:flex;align-items:center;gap:16px;}
.rt-order-thumbs {display:flex;gap:6px;flex:none;}
.rt-order-thumb {display:grid;place-items:center;width:52px;height:52px;border-radius:10px;background:var(--surface-muted);overflow:hidden;flex:none;}
.rt-order-thumb img {width:100%;height:100%;object-fit:contain;}
.rt-order-more {color:#4f6378;font-size:13px;font-weight:700;}
.rt-order-summary {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;flex:1;min-width:0;}
.rt-order-items {font-weight:600;line-height:1.35;}
.rt-order-items span {color:#4f6378;font-weight:500;}
.rt-order-total {font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums;}
.rt-order-total small {margin-left:4px;color:#6a7a8c;font-size:13px;font-weight:500;}
.rt-order-actions {display:flex;flex-wrap:wrap;gap:10px;padding-top:4px;}
.rt-order-actions--top {margin:-12px 0 24px;}
.rt-acct-pages {display:flex;justify-content:space-between;gap:12px;margin-top:20px;}

/* One order */
.rt-acct-order-head {display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;}
.rt-acct-order-head .rt-acct-title {margin:0;}
.rt-acct-order-head + .rt-acct-lead {margin-top:6px;}
.rt-order-detail {gap:0;margin:0 0 14px;}
.rt-order-lines {margin:0;padding:0;list-style:none;}
.rt-order-lines li {display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #ebebeb;}
.rt-order-lines li:first-child {padding-top:0;}
.rt-order-line-name {display:flex;flex-direction:column;gap:2px;font-weight:600;line-height:1.35;}
body .rt-order-line-name a {color:var(--ink);text-decoration:none;}
@media (hover:hover) {body .rt-order-line-name a:hover {text-decoration:underline;text-underline-offset:3px;}}
.rt-order-line-name small {color:#6a7a8c;font-size:13px;font-weight:500;}
.rt-order-line-total {font-weight:700;white-space:nowrap;}
.rt-order-totals {margin:14px 0 0;}
.rt-order-totals div {display:flex;justify-content:space-between;gap:16px;padding:5px 0;}
.rt-order-totals dt {color:#4f6378;}
.rt-order-totals dd {margin:0;text-align:right;}
.rt-order-total-order_total {margin-top:6px;padding-top:12px!important;border-top:1px solid #e3e7ec;font-size:18px;font-weight:800;}
.rt-order-total-order_total dt {color:var(--ink);}
.rt-order-totals .includes_tax, .rt-order-totals small {display:block;color:#6a7a8c;font-size:12px;font-weight:500;}
.rt-order-notes {margin:12px 0 0;padding:0;list-style:none;display:grid;gap:10px;}
.rt-order-notes li {display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;padding:14px 16px;border-radius:12px;background:var(--surface-muted);}
.rt-order-notes time {color:#4f6378;font-size:14px;}
.rt-order-notes p {margin:0;}

/* Forms (address, account details): same fields as the checkout */
.rt-acct-form {max-width:560px;}
.rt-acct-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.rt-acct-fields > .form-row {grid-column:1/-1;margin:0;padding:0;float:none;width:auto;}
.rt-acct-fields > :is(.rt-half,#billing_first_name_field,#billing_last_name_field,#billing_postcode_field,#billing_city_field,#shipping_first_name_field,#shipping_last_name_field,#shipping_postcode_field,#shipping_city_field) {grid-column:auto;}
body .rt-acct-form .form-row :is(input.input-text,select,textarea) {display:block;width:100%;min-height:52px;padding:12px 15px;background:#fff;color:var(--ink);border:1px solid #b9c5d0;border-radius:10px;box-shadow:none;outline:0;font:inherit;font-size:16px;line-height:1.4;transition:border-color .15s ease,box-shadow .15s ease;}
body .rt-acct-form .form-row :is(input.input-text,textarea)::placeholder {color:#6a7a8c;opacity:1;}
@media (hover:hover) {body .rt-acct-form .form-row :is(input.input-text,select,textarea):hover {border-color:#8fa1b2;}}
body .rt-acct-form .form-row :is(input.input-text,select,textarea):focus {border-color:var(--ink);box-shadow:0 0 0 3px #e2e6ea;}
body .rt-acct-form .form-row :is(.required,.optional) {display:none;}
.rt-acct-form :is(#billing_country_field,#shipping_country_field):has(:is(input[type=hidden],select.country_to_state--single)) {display:none;}
.rt-acct-form .password-input {position:relative;display:block;}
body .rt-acct-form .show-password-input {position:absolute;top:50%;right:6px;transform:translateY(-50%);width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:#4f6378;cursor:pointer;}
.rt-acct-password {margin:18px 0 8px;padding:16px 18px;border-radius:14px;background:var(--surface-muted);}
.rt-acct-password summary {cursor:pointer;font-weight:650;list-style:none;}
.rt-acct-password summary::-webkit-details-marker {display:none;}
.rt-acct-password summary::after {content:"";display:inline-block;width:7px;height:7px;margin-left:10px;border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:translateY(-3px) rotate(45deg);transition:transform .2s;}
.rt-acct-password[open] summary::after {transform:translateY(0) rotate(225deg);}
.rt-acct-password .rt-acct-fields {margin-top:14px;}
.rt-acct-password .rt-acct-muted {margin:12px 0 0;font-size:14px;}
body .rt-acct-password .rt-acct-muted a {color:var(--ink);}
input.rt-auto-filled {animation:rt-auto-fill 1.2s ease-out;}
@keyframes rt-auto-fill {0% {background-color:rgba(0,103,176,.10);} 100% {background-color:#fff;}}

/* Notices (e.g. "Adressen er lagret") */
body.woocommerce-account.logged-in .rt-acct-main :is(.woocommerce-error,.woocommerce-message,.woocommerce-info) {margin:0 0 20px;padding:12px 14px;border:0;border-radius:10px;font-size:14px;line-height:1.45;list-style:none;}
body.woocommerce-account.logged-in .rt-acct-main .woocommerce-error {background:#fbefed;color:#7a2f26;}
body.woocommerce-account.logged-in .rt-acct-main :is(.woocommerce-message,.woocommerce-info) {background:rgba(156,201,238,.3);color:var(--ink);}
body.woocommerce-account.logged-in .rt-acct-main :is(.woocommerce-error,.woocommerce-message,.woocommerce-info)::before {display:none;}
.rt-acct :focus-visible {outline:2px solid var(--ink);outline-offset:2px;}

/* Phones: the menu becomes a row of pills you can swipe; content in one column. */
@media (max-width:800px) {
 .rt-acct {grid-template-columns:minmax(0,1fr);gap:20px;}
 .rt-acct-nav {position:static;margin:0 -16px;}
 .rt-acct-nav ul {display:flex;gap:8px;padding:0 16px 4px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
 .rt-acct-nav ul::-webkit-scrollbar {display:none;}
 .rt-acct-nav li {flex:none;}
 body .rt-acct-nav a {min-height:40px;padding:0 14px;border-radius:99px;background:var(--surface-muted);font-size:14px;white-space:nowrap;}
 .rt-acct-nav svg {display:none;}
 .rt-acct-nav-customer-logout {margin:0;padding:0;border:0;}
 .rt-order-body {flex-direction:column;align-items:flex-start;gap:12px;}
 .rt-order-summary {width:100%;}
 .rt-order-actions .rt-btn {flex:1;}
 .rt-order-notes li {grid-template-columns:1fr;gap:4px;}
}
@media (max-width:420px) {.rt-acct-fields > .rt-half {grid-column:1/-1;}}
@media (prefers-reduced-motion:reduce) {body .rt-acct a.rt-btn, body .rt-acct-nav a, body .rt-acct a.rt-order-card {transition:none;} input.rt-auto-filled {animation:none;}}

/* Fixes after review (7 Nov): WooCommerce's half-width rule for name fields, space under headings, and a hint that the
   phone menu scrolls sideways. */
body .woocommerce .rt-acct-form .rt-acct-fields > .form-row, body.woocommerce-account .rt-acct-form .rt-acct-fields > .form-row {float:none;width:auto;margin:0;padding:0;}
.rt-acct-title + :is(.rt-acct-form,.rt-order-list,.rt-acct-empty) {margin-top:22px;}
@media (max-width:800px) {
 .rt-acct-nav ul {-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 44px),transparent);padding-right:40px;}
 .rt-acct-nav ul.is-end {-webkit-mask-image:none;mask-image:none;}
}

/* ===================== Ordrebekreftelse (woocommerce/checkout/thankyou.php) ===================== */
body.woocommerce-order-received .content-main article > h1 {display:none;}
body.woocommerce-order-received .content-main {padding-block:clamp(32px,6vh,64px) 72px;}
.rt-ty {max-width:720px;margin:0 auto;}
.rt-ty-head {margin:0 0 24px;}
.rt-ty-head .rt-acct-lead {margin-bottom:0;}
.rt-ty-head .rt-order-actions {margin-top:20px;}
.rt-ty-icon {display:block;width:56px;height:56px;margin:0 0 18px;}
.rt-ty-icon svg {width:100%;height:100%;overflow:visible;}
.rt-ty-icon circle {fill:var(--green);}
.rt-ty-icon path {fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:18;stroke-dashoffset:0;}
.rt-ty-icon--failed {display:grid;place-items:center;border-radius:50%;background:#fbefed;}
.rt-ty-icon--failed svg {width:28px;height:28px;}
.rt-ty-icon--failed path {stroke:#963f33;stroke-dasharray:none;}
@media (prefers-reduced-motion:no-preference) {
 .rt-ty-icon:not(.rt-ty-icon--failed) circle {transform-origin:12px 12px;animation:rt-ty-pop .5s cubic-bezier(.3,1.5,.5,1) both;}
 .rt-ty-icon:not(.rt-ty-icon--failed) path {animation:rt-ty-draw .4s cubic-bezier(.65,0,.35,1) .25s both;}
}
@keyframes rt-ty-pop {from {transform:scale(0);} to {transform:scale(1);}}
@keyframes rt-ty-draw {from {stroke-dashoffset:18;} to {stroke-dashoffset:0;}}
.rt-ty-head strong {color:var(--ink);font-weight:650;overflow-wrap:anywhere;}

.rt-ty-steps {display:grid;gap:0;margin:0 0 24px;padding:4px 0;list-style:none;}
.rt-ty-steps li {position:relative;display:flex;gap:14px;padding:8px 0;}
.rt-ty-steps li > span {position:relative;flex:none;width:22px;height:22px;margin-top:1px;border-radius:50%;border:2px solid #c9d2dc;background:#fff;}
.rt-ty-steps li.is-done > span {border-color:var(--ink);background:var(--ink);}
.rt-ty-steps li.is-done > span::after {content:"";position:absolute;left:6px;top:2.5px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);}
.rt-ty-steps li + li::before {content:"";position:absolute;left:10px;top:-12px;height:20px;width:2px;background:#c9d2dc;}
.rt-ty-steps strong {display:block;font-weight:650;}
.rt-ty-steps small {color:#4f6378;font-size:14px;}

.rt-ty-order-head {display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 14px;}
.rt-ty-order-head h2 {margin:0;font-size:18px;}
.rt-ty .rt-acct-cards {margin-top:14px;}
.rt-ty-continue {margin-top:6px;}
/* Buttons and links: same as Min konto */
body .rt-ty a.rt-btn {display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:99px;font-size:16px;font-weight:700;text-decoration:none;transition:background-color .15s,box-shadow .15s;}
body .rt-ty .rt-btn--ink {background:var(--ink);color:#fff;}
@media (hover:hover) {body .rt-ty .rt-btn--ink:hover {background:#0067b0;color:#fff;}}
body .rt-ty .rt-btn--quiet {background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1.5px #c9d2dc;}
@media (hover:hover) {body .rt-ty .rt-btn--quiet:hover {box-shadow:inset 0 0 0 1.5px var(--ink);}}
body .rt-ty .rt-acct-card a {color:var(--ink);}
@media (max-width:800px) {.rt-ty .rt-order-actions .rt-btn {flex:1 1 100%;}}

/* Logged-out fallbacks on the confirmation page (verify email / log in) use the login card. */
body.woocommerce-order-received .rt-auth {margin-top:0;}
body.woocommerce-order-received:not(.logged-in) .rt-auth-form .form-row input.input-text {display:block;width:100%;min-height:52px;padding:12px 15px;border:1px solid #b9c5d0;border-radius:10px;font:inherit;font-size:16px;}
body.woocommerce-order-received:not(.logged-in) .rt-auth-form .form-row input.input-text:focus {outline:0;border-color:var(--ink);box-shadow:0 0 0 3px #e2e6ea;}
/* WooCommerce prints its "no order" message above the email verification form; only the form is needed. */
body.woocommerce-order-received .content-main:has(.woocommerce-verify-email) .rt-ty-head {display:none;}

/* ===================== Betal for bestilling (woocommerce/checkout/form-pay.php) ===================== */
body.woocommerce-order-pay .content-main article > h1 {display:none;}
body.woocommerce-order-pay .content-main {padding-block:clamp(32px,6vh,64px) 72px;}
body.woocommerce-order-pay .content-main:has(.woocommerce-verify-email) .rt-ty-head {display:none;}
.rt-pay-box {margin-top:14px;padding:20px 22px;border:1px solid #e3e7ec;border-radius:16px;background:#fff;}
.rt-pay-box h2 {margin:0 0 12px;font-size:18px;}
body .rt-pay-box ul.payment_methods {margin:0 0 16px;padding:0;border:0;list-style:none;display:grid;gap:10px;}
body .rt-pay-box li.wc_payment_method {padding:14px;border:1px solid #b9c6d2;border-radius:10px;}
body .rt-pay-box li.wc_payment_method:has(input:checked) {background:var(--surface-muted);border-color:var(--ink);}
body .rt-pay-box li.wc_payment_method > label {font-weight:650;cursor:pointer;}
body .rt-pay-box .payment_box {margin-top:8px;color:#4f6378;font-size:14px;background:none;padding:0;}
body .rt-pay-box .payment_box::before {display:none;}
body .rt-pay-box #place_order {width:100%;min-height:54px;margin-top:8px;border:0;border-radius:99px;background:var(--green);color:var(--ink);font:inherit;font-size:18px;font-weight:750;cursor:pointer;}
@media (hover:hover) {body .rt-pay-box #place_order:hover {background:#005694;}}
body .rt-pay-box .woocommerce-terms-and-conditions-wrapper {font-size:13px;color:#4f6378;}
/* WooCommerce colours #payment and the method description with ID selectors; match them. */
.rt-pay-order #payment {background:#fff;border-radius:16px;}
.rt-pay-order #payment ul.payment_methods {border-bottom:0;padding:0;}
.rt-pay-order #payment div.payment_box {margin:8px 0 0;padding:0;background:none;color:#4f6378;font-size:14px;}
.rt-pay-order #payment div.payment_box::before {display:none;}
.rt-pay-order #payment div.form-row {padding:0;}
.rt-pay-order #payment li.wc_payment_method > img, .rt-pay-order #payment li.wc_payment_method label img {max-height:26px;float:right;}
