/* ==========================================================================
   Guest & standalone pages — the "Help" shell beyond the auth pages
   1. Standalone pages (layouts/shell): error pages and the elastic
      confirmation, in the same top bar / card + help column / footer.
   2. Guest-layout pages drawn in the shell: trial, whitelist, BankID
      domain and transfer verification, one-time links and the hosting
      upgrade confirmation. Their older inner markup (Metronic inputs, radio
      tiles, dashed boxes) is restyled here.
   3. The onboarding layout (flytthjälp, internet confirmation and order):
      Tailwind pages on a white top bar, framed cards instead of shadows.
   4. The Help Center (layouts/helpcenter): white top bar with an outlined
      search, readable links and headings.
   Builds on auth.css (.au-* shell) and the foundation tokens (--sk-*, --fm-*,
   --ty-*). Every rule is scoped to a page hook: .au--<page>, body.gp-page,
   body.gp-ob or body.gp-hc.
   ========================================================================== */

/* === 1. Shell helpers ===================================================== */
#kt_body.gp-page {
    background-color: var(--sk-canvas, #f7f8fa) !important;
}

/* Small status label above a title (Fel 404, Elastic Scaling). */
#kt_body .gp-code {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 3px 10px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    color: #2a3240;
    background-color: #eef1f5;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

/* A state tile (done, info, expired, invalid). */
#kt_body .gp-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 12px;
}

#kt_body .gp-state svg {
    width: 22px;
    height: 22px;
}

#kt_body .gp-state--success { color: #13723f; background-color: #e2f5ea; }
#kt_body .gp-state--info    { color: #0a69a8; background-color: #e1f1fd; }
#kt_body .gp-state--warning { color: #875400; background-color: #fff1d1; }
#kt_body .gp-state--danger  { color: #bb2147; background-color: #fde6ec; }

#kt_body .gp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#kt_body .au .gp-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    font-size: 15px;
    border-radius: var(--au-radius, 10px);
}

/* Label / value pairs (service, new plan). */
#kt_body .gp-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 24px;
    margin: -4px 0 28px;
    padding: 14px 0;
    border-top: 1px solid var(--sk-line-soft, #eceef2);
    border-bottom: 1px solid var(--sk-line-soft, #eceef2);
}

#kt_body .gp-meta dt {
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ty-muted, #646d7c);
}

#kt_body .gp-meta dd {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--sk-text, #1f2733);
    font-variant-numeric: tabular-nums;
}

/* "Back to client area" above a card's head. */
#kt_body .au .au-back.gp-back-top {
    margin: 0 0 20px;
}

/* Wider card for pages with two-column forms. */
#kt_body .au--trial {
    --au-card-w: 1100px;
    --au-cols: minmax(0, 1.5fr) minmax(0, 1fr);
}

#kt_body .au--bankid {
    --au-card-w: 1040px;
    --au-cols: minmax(0, 1.3fr) minmax(0, 1fr);
}

/* === 2. Older markup inside the shell ===================================== */
/* Metronic inputs (x-input.text / textarea) keep their own wrappers. */
#kt_body .au-card .mb-5.d-block {
    margin-bottom: 20px !important;
}

#kt_body .au-card .form-text.text-muted {
    margin-top: 6px;
    font-size: 13px;
}

#kt_body .au-card .btn .indicator-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#kt_body .au-card .btn.btn-primary.w-100 {
    min-height: 48px;
    font-size: 15px;
    border-radius: var(--au-radius, 10px);
}

/* BankID: the form sits flush under the head; QR code and hints as calm panels. */
#kt_body .au--bankid form.mw-600px {
    margin-top: 0 !important;
}

#kt_body .au--bankid .row {
    --bs-gutter-x: 16px;
}

#kt_body .au--bankid .au-card .btn.mt-5 {
    margin-top: 8px !important;
}

#kt_body .au--bankid .au-card > .d-flex > .position-relative,
#kt_body .au--bankid .au-card > .d-flex > .position-relative > .btn.btn-primary {
    width: 100% !important;
}

#kt_body .gp-qr {
    margin-top: 8px;
    padding: 20px;
    text-align: center;
    background-color: var(--sk-sunken, #f5f6f8);
    border: 1px solid var(--sk-line, #dadfe6);
    border-radius: 12px;
}

#kt_body .gp-qr img {
    display: block;
    width: 200px;
    max-width: 100%;
    margin: 0 auto 14px;
    background-color: #ffffff;
    border: 1px solid var(--sk-line-soft, #eceef2);
    border-radius: 8px;
}

#kt_body .gp-qr span {
    font-size: 14px !important;
    font-weight: 600;
}

#kt_body .au .gp-hint {
    margin: 0 calc(var(--bs-gutter-x, 16px) * .5) 20px;
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--sk-text, #1f2733);
    background-color: #f2f8fd;
    border: 1px solid #c9e2f5;
    border-left: 3px solid var(--sk-accent, #009ef7);
    border-radius: 8px;
}

/* Trial: service type and package tiles. */
#kt_body .au--trial .row.g-5 {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
}

#kt_body .au--trial .mb-10 {
    margin-bottom: 24px !important;
}

/* Radio tiles keep the settled forms.css look (solid edge, tinted selected state); only the size is tuned. */
#kt_body .au--trial label.btn.p-7 {
    min-height: 64px;
    padding: 14px 18px !important;
}

#kt_body .au--trial label.btn.p-7 .svg-icon,
#kt_body .au--trial label.btn.p-7 svg {
    width: 22px !important;
    height: 22px !important;
}

#kt_body .au--trial label.btn.p-7 .fs-4 {
    font-size: 15.5px !important;
    font-weight: 700 !important;
}

#kt_body .au--trial label.btn.p-4 {
    min-height: 44px;
    padding: 10px 12px !important;
}

#kt_body .au--trial label.btn.p-4 .fs-5 {
    font-size: 14px !important;
    font-weight: 600;
}

/* The chosen category's details: a hairline section instead of a big box. */
#kt_body .au--trial .border.border-gray-300.rounded-2 {
    padding: 22px !important;
    border-color: var(--sk-line, #dadfe6) !important;
    border-radius: 12px !important;
}

#kt_body .au--trial .border.border-gray-300.rounded-2 h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--sk-text, #1f2733);
}

#kt_body .au--trial .border.border-gray-300.rounded-2 .pb-2 {
    padding-bottom: 12px !important;
}

#kt_body .au--trial .border.border-gray-300.rounded-2 .pb-5 {
    padding-bottom: 0 !important;
}

#kt_body .au--trial .border.border-gray-300.rounded-2 > .w-100 > .row {
    margin: 0;
}

#kt_body .au--trial .border.border-gray-300.rounded-2 > .w-100 > .row > * {
    padding: 0;
}

#kt_body .au--trial form > .w-full.mt-10 {
    margin-top: 24px !important;
}

#kt_body .au--trial form > .w-full.mt-10 > .position-relative,
#kt_body .au--trial form > .w-full.mt-10 .btn {
    width: 100% !important;
}

#kt_body .au--trial form > .w-full.mt-10 .btn {
    min-height: 48px;
    font-size: 15px;
}

#kt_body .au--trial form > .w-full.mt-10 .btn svg {
    width: 16px;
    height: 16px;
}

/* One-time message: a monospace read-only field and a copy button. */
#kt_body .au .gp-secret .copyValue {
    min-height: 150px;
    padding: 12px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    background-color: var(--sk-sunken, #f5f6f8);
    resize: vertical;
}

#kt_body .au .gp-secret .copyClipboard {
    margin-top: 14px;
}

#kt_body .au .gp-secret .copyClipboard svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 575.98px) {
    #kt_body .au--trial .row-cols-1 > * {
        flex: 0 0 auto;
        width: 50%;
    }

    #kt_body .gp-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    #kt_body .gp-actions .btn {
        flex: 1 1 100%;
    }
}

/* === 3. Onboarding layout (Tailwind): flytthjälp, internet confirmation and order ===
   layouts/onboarding.blade.php puts the shell's top bar and footer around the page;
   the Tailwind cards become framed panels, the step badge a quiet pill. */
#kt_body .au.au--bar {
    display: block;
    flex: none;
    min-height: 0;
    background: transparent;
}

#kt_body.gp-ob {
    background-color: var(--sk-canvas, #f7f8fa);
}

#kt_body .gp-ob-main {
    padding: 8px 16px 24px;
}

#kt_body .gp-ob-main > div.max-w-3xl {
    row-gap: 20px;
}

/* Cards: a crisp edge instead of the big shadow. */
#kt_body.gp-ob .gp-ob-main .bg-white.shadow-xl {
    border: 1px solid var(--bg-card-edge, #d1d7df);
    border-radius: 12px;
    box-shadow: none;
}

#kt_body.gp-ob .gp-ob-main :is(.shadow-sm, .shadow, .shadow-lg) {
    box-shadow: none;
}

/* Step badge: a quiet pill in the card's corner, sentence case. */
#kt_body.gp-ob .gp-ob-main span.bg-sky-500.uppercase {
    top: 22px;
    right: 22px;
    width: auto;
    height: 28px;
    padding: 0 12px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: #2a3240;
    background-color: #eef1f5;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

#kt_body.gp-ob .gp-ob-main .relative > div > h2,
#kt_body.gp-ob .gp-ob-main .relative > .flex > h2 {
    padding-right: 84px;
}

/* Type: headings in the text colour, links readable. */
#kt_body.gp-ob .gp-ob-main h2.text-xl {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--sk-text, #1f2733);
}

#kt_body.gp-ob .gp-ob-main h2 .text-sky-500 {
    color: inherit;
}

#kt_body.gp-ob .gp-ob-main :is(p, label, dd, dt, li).text-sm,
#kt_body.gp-ob .gp-ob-main .text-sm {
    font-size: 14px;
}

#kt_body.gp-ob .gp-ob-main a:is(.text-sky-500, .text-sky-600),
#kt_body.gp-ob .gp-ob-main .text-sky-600 {
    color: #0a7fc4;
    font-weight: 600;
}

#kt_body.gp-ob .gp-ob-main a:is(.text-sky-500, .text-sky-600):hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

#kt_body.gp-ob .gp-ob-main hr {
    border-color: var(--sk-line-soft, #eceef2);
}

#kt_body.gp-ob .gp-ob-main .text-red-500 {
    color: var(--fm-danger, #c81f48);
}

/* Buttons: brand blue to act, neutral grey second; 10px corners, bold labels. */
#kt_body.gp-ob .gp-ob-main :is(button, a).bg-sky-500 {
    min-height: 42px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--sk-primary, #009ef7);
    border-radius: 10px;
    box-shadow: none;
}

#kt_body.gp-ob .gp-ob-main :is(button, a).bg-sky-500:hover {
    background-color: var(--sk-primary-hover, #008bd9);
}

#kt_body.gp-ob .gp-ob-main button.bg-gray-200 {
    min-height: 42px;
    font-weight: 700;
    color: var(--sk-text, #1f2733);
    background-color: #eef1f5;
    border-radius: 10px;
    box-shadow: none;
}

#kt_body.gp-ob .gp-ob-main button.bg-gray-200:hover {
    background-color: #e3e7ed;
}

#kt_body.gp-ob .gp-ob-main :is(button, a):focus-visible {
    outline: 2px solid var(--sk-accent, #009ef7);
    outline-offset: 2px;
}

/* Switches and checks in brand blue. */
#kt_body.gp-ob .gp-ob-main .peer:checked ~ .peer-checked\:bg-sky-500 {
    background-color: var(--sk-primary, #009ef7);
}

#kt_body.gp-ob .gp-ob-main .peer:focus-visible ~ div {
    box-shadow: 0 0 0 3px var(--sk-focus, rgba(0, 158, 247, .45));
}

#kt_body.gp-ob .gp-ob-main input[type="checkbox"]:not(.sr-only) {
    width: 18px;
    height: 18px;
    color: var(--sk-primary, #009ef7);
    border-color: var(--fm-border, #cdd4de);
    border-radius: 5px;
}

/* Fields: the Outline look from forms.css. */
#kt_body.gp-ob .gp-ob-main :is(input:not([type="checkbox"]):not([type="radio"]):not(.sr-only), select, textarea),
#kt_body.gp-ob .gp-ob-main .choices__inner {
    min-height: 42px;
    font-size: 14.5px;
    color: var(--fm-input-color, #1f2733);
    background-color: #ffffff;
    border: 1px solid var(--fm-border, #cdd4de);
    border-radius: 10px;
    box-shadow: none;
}

#kt_body.gp-ob .gp-ob-main textarea {
    min-height: 96px;
}

#kt_body.gp-ob .gp-ob-main :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus,
#kt_body.gp-ob .gp-ob-main .choices.is-focused .choices__inner,
#kt_body.gp-ob .gp-ob-main .choices.is-open .choices__inner {
    border-color: var(--sk-accent, #009ef7);
    box-shadow: 0 0 0 3px rgba(0, 158, 247, .18);
    outline: none;
}

#kt_body.gp-ob .gp-ob-main .choices__inner {
    display: flex;
    align-items: center;
    padding: 4px 10px;
}

#kt_body.gp-ob .gp-ob-main .choices__list--dropdown,
#kt_body.gp-ob .gp-ob-main .choices__list[aria-expanded] {
    border-color: var(--sk-line, #dadfe6);
    border-radius: 10px;
}

#kt_body.gp-ob .gp-ob-main label.block.text-sm {
    font-size: 13.5px;
    font-weight: 600;
    color: #2a3240;
}

@media (max-width: 639.98px) {
    #kt_body.gp-ob .gp-ob-main {
        padding: 0 12px 16px;
    }

    #kt_body.gp-ob .gp-ob-main span.bg-sky-500.uppercase {
        position: static;
        display: inline-flex;
        margin-bottom: 12px;
    }

    #kt_body.gp-ob .gp-ob-main .relative > div > h2,
    #kt_body.gp-ob .gp-ob-main .relative > .flex > h2 {
        padding-right: 0;
    }

    #kt_body.gp-ob .gp-ob-main .relative > .flex.justify-between:has(> span.uppercase) {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    #kt_body.gp-ob .gp-ob-main :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
        font-size: 16px;
    }
}

#kt_body.gp-ob .gp-ob-main label > span.text-gray-500 {
    color: var(--sk-text, #1f2733);
}

/* === 4. Help Center (layouts/helpcenter, Tailwind) ==========================
   The solid blue bar becomes the white top bar with an outlined search; links,
   headings and the article text reach AA; the current section is denim.
   The header keeps its height (the sticky offsets 64/68/76px depend on it). */
#kt_body.gp-hc {
    background-color: var(--sk-canvas, #f7f8fa);
}

#kt_body.gp-hc .bg-primary {
    background-color: var(--sk-bar, #ffffff);
}

#kt_body.gp-hc .sticky.bg-primary {
    border-bottom: 1px solid var(--sk-line, #dadfe6);
}

#kt_body.gp-hc .bg-primary :is(.text-white, .text-white\/90, .text-white\/80) {
    color: var(--sk-text, #1f2733);
}

#kt_body.gp-hc .bg-primary a:is(.text-white):hover,
#kt_body.gp-hc .bg-primary .hover\:text-sky-100:hover {
    color: #0a7fc4;
}

#kt_body.gp-hc .bg-primary a,
#kt_body.gp-hc .bg-primary button {
    font-weight: 600;
}

#kt_body.gp-hc .gp-hc-logo img {
    display: block;
    width: auto;
    max-width: 150px;
    height: 30px;
    object-fit: contain;
    object-position: left center;
}

/* Search: an Outline field on the white bar. */
#kt_body.gp-hc .bg-primary input[name="query"] {
    height: 44px;
    font-size: 15px;
    font-weight: 500;
    color: var(--sk-text, #1f2733);
    background-color: #ffffff;
    border: 1px solid var(--fm-border, #cdd4de);
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#kt_body.gp-hc .bg-primary input[name="query"]::placeholder {
    color: var(--fm-placeholder, #8b94a3);
}

#kt_body.gp-hc .bg-primary input[name="query"]:hover {
    border-color: var(--fm-border-hover, #aab4c1);
}

#kt_body.gp-hc .bg-primary input[name="query"]:focus {
    background-color: #ffffff;
    border-color: var(--sk-accent, #009ef7);
    box-shadow: 0 0 0 3px rgba(0, 158, 247, .12);
}

#kt_body.gp-hc .bg-primary input[name="query"] + div {
    color: var(--ty-muted, #646d7c);
}

/* Mobile drawer header (helpcenter-sidebar): same white band. */
#kt_body.gp-hc .bg-primary.py-5 {
    border-bottom: 1px solid var(--sk-line, #dadfe6);
}

/* Lists of articles: readable links, hairline rows. */
#kt_body.gp-hc :is(.divide-gray-300 > *, .divide-gray-200 > *) {
    border-color: var(--sk-line, #dadfe6);
}

#kt_body.gp-hc :is(.border-gray-300, .border-y.border-gray-300) {
    border-color: var(--sk-line, #dadfe6);
}

#kt_body.gp-hc a.py-3.text-sky-500 {
    font-size: 14.5px;
    font-weight: 600;
    color: #0a7fc4;
}

#kt_body.gp-hc a.py-3.text-sky-500:hover {
    color: var(--sk-text, #1f2733);
}

#kt_body.gp-hc a.py-3.text-sky-500 svg {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: #7a95ad;
}

#kt_body.gp-hc :is(.text-sky-700) {
    font-weight: 600;
    color: #0a7fc4;
}

/* Headings: text colour, 700. */
#kt_body.gp-hc h2:is(.text-xl) {
    font-size: 18.5px;
    font-weight: 700;
    color: var(--sk-text, #1f2733);
}

#kt_body.gp-hc h4.text-3xl {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.015em;
    color: var(--sk-text, #1f2733);
}

#kt_body.gp-hc p.text-zinc-500 {
    color: var(--ty-muted, #646d7c);
}

/* Sidebar: category names in the text colour; the current section is denim. */
#kt_body.gp-hc a.text-zinc-800.font-medium {
    font-weight: 700;
    color: var(--sk-text, #1f2733);
}

#kt_body.gp-hc a.text-zinc-800.font-medium:hover {
    color: #0a7fc4;
}

#kt_body.gp-hc li > a.text-zinc-700 {
    font-weight: 500;
    color: #3b4656;
}

#kt_body.gp-hc li > a.text-sky-500.border-current {
    font-weight: 700;
    color: var(--sk-selected, #22588c);
    border-left-width: 2px;
}

/* Breadcrumb */
#kt_body.gp-hc nav[aria-label="Breadcrumb"] a {
    font-weight: 500;
    color: var(--ty-muted, #646d7c);
}

#kt_body.gp-hc nav[aria-label="Breadcrumb"] a:hover {
    color: #0a7fc4;
}

#kt_body.gp-hc nav[aria-label="Breadcrumb"] p {
    color: var(--sk-text, #1f2733);
    font-weight: 600;
}

/* Article text: body colour for reading, readable links, framed images and code. */
#kt_body.gp-hc article.prose {
    font-size: 15.5px;
    line-height: 1.7;
    color: #2f3947;
}

#kt_body.gp-hc article.prose :is(p, li) {
    color: #3b4656;
}

#kt_body.gp-hc article.prose a {
    font-weight: 600;
    color: #0a7fc4;
    text-underline-offset: 3px;
}

#kt_body.gp-hc article.prose :is(h1, h2, h3, h4, strong) {
    color: var(--sk-text, #1f2733);
}

#kt_body.gp-hc article.prose h2 {
    font-weight: 700;
    letter-spacing: -.01em;
}

#kt_body.gp-hc article.prose img {
    border-color: var(--sk-line, #dadfe6);
    border-radius: 8px;
    background-color: #ffffff;
}

#kt_body.gp-hc article.prose code {
    color: #13723f;
    background-color: #eef1f5;
    font-weight: 600;
}

#kt_body.gp-hc article.prose code::before,
#kt_body.gp-hc article.prose code::after {
    content: none;
}

#kt_body.gp-hc article.prose pre {
    background-color: #eef1f5;
    border: 1px solid var(--sk-line-soft, #eceef2);
    border-radius: 10px;
}

#kt_body.gp-hc article.prose pre code {
    color: var(--sk-text, #1f2733);
    background: none;
}

#kt_body.gp-hc article.prose table {
    font-size: 14.5px;
}

#kt_body.gp-hc article.prose thead th {
    font-weight: 700;
    background-color: var(--sk-sunken, #f5f6f8);
}

/* Footer */
#kt_body.gp-hc footer a.text-base {
    font-size: 14px;
    font-weight: 600;
    color: var(--ty-muted, #646d7c);
}

#kt_body.gp-hc footer a.text-base:hover {
    color: var(--sk-text, #1f2733);
}

#kt_body.gp-hc :is(a, button, input):focus-visible {
    outline: 2px solid var(--sk-accent, #009ef7);
    outline-offset: 2px;
}

@media (max-width: 639.98px) {
    #kt_body.gp-hc .gp-hc-logo img {
        height: 26px;
        max-width: 110px;
    }

    #kt_body.gp-hc .bg-primary input[name="query"] {
        height: 40px;
        font-size: 16px;
    }
}

