/**
 * The product page's big information (Product_Info_Controller) – open sections as on Svartzonker: "Produktinformation"
 * (the introduction, key features with ticks in two columns, advice and tips, the steps numbered on a line, questions
 * that open, the closing words on a grey card), "Specifikationer" (a card of rows) and the documents (a card each: the
 * file's kind, title, size). The kit's fonts and colours: "Text" and "Brödtext" for the text, the headings' font and
 * ink, the buy button's green for the ticks. The aside (the template's column with the class gf-pi-aside) stays in view
 * on wide screens.
 */

.gf-pi,
.gf-pi-specs,
.gf-pi-docs {
    --gf-pi-ink: var(--e-global-color-secondary, #1a1a1a);
    --gf-pi-text: var(--e-global-color-gftext1, #333333);
    --gf-pi-muted: var(--e-global-color-primary, #696969);
    --gf-pi-brand: var(--e-global-color-d49ac81, #97040d);
    --gf-pi-ok: var(--e-global-color-gfbuy01, #189704);
    --gf-pi-line: #e6e6e6;
    --gf-pi-soft: #f7f7f7;
    --gf-pi-heading: var(--e-global-typography-primary-font-family, "NeueHaasDisplay-Mediu"), "Helvetica Neue", Arial, sans-serif;
    --gf-pi-radius: 10px;
}

.gf-pi {
    max-width: 760px;
    font-size: var(--e-global-typography-text-font-size, 16px);
    line-height: 1.7;
    color: var(--gf-pi-text);
}

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

/* Running text */
.gf-pi-prose > :first-child {
    margin-top: 0;
}

.gf-pi-prose > :last-child {
    margin-bottom: 0;
}

.gf-pi-prose p {
    margin: 0 0 1em;
}

.gf-pi-prose :is(strong, b) {
    font-weight: 600;
    color: var(--gf-pi-ink);
}

.gf-pi-prose a {
    color: var(--gf-pi-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gf-pi-prose :is(ul, ol) {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

.gf-pi-prose li + li {
    margin-top: 0.35em;
}

.gf-pi-intro {
    font-size: 1.0625em;
    color: var(--gf-pi-ink);
}

/* The sections */
.gf-pi-section {
    margin-top: 44px;
}

.gf-pi-intro + .gf-pi-section,
.gf-pi > .gf-pi-section:first-child {
    margin-top: 36px;
}

.gf-pi > .gf-pi-section:first-child {
    margin-top: 0;
}

.gf-pi .gf-pi-title {
    margin: 0 0 18px;
    font-family: var(--gf-pi-heading);
    /* (the kit's H3 – its size per screen) */
    font-size: var(--e-global-typography-d3dae9a-font-size, 22px);
    font-weight: 700;
    line-height: var(--e-global-typography-d3dae9a-line-height, 1.25);
    letter-spacing: -0.01em;
    color: var(--gf-pi-ink);
}

/* (a title at another level: the kit's size and weight for it) */
.gf-pi .gf-pi-title--h1 {
    font-size: var(--e-global-typography-583e54c-font-size, 40px);
    font-weight: var(--e-global-typography-583e54c-font-weight, 500);
    line-height: var(--e-global-typography-583e54c-line-height, 1.1);
}

.gf-pi .gf-pi-title--h2 {
    font-size: var(--e-global-typography-5d167aa-font-size, 30px);
    font-weight: var(--e-global-typography-5d167aa-font-weight, 700);
    line-height: var(--e-global-typography-5d167aa-line-height, 1.15);
}

.gf-pi .gf-pi-title--h4 {
    font-size: var(--e-global-typography-83682a1-font-size, 20px);
    font-weight: var(--e-global-typography-83682a1-font-weight, 500);
    line-height: var(--e-global-typography-83682a1-line-height, 1.3);
}

.gf-pi .gf-pi-title--h5 {
    font-size: var(--e-global-typography-7044a64-font-size, 18px);
    font-weight: var(--e-global-typography-7044a64-font-weight, 700);
    line-height: var(--e-global-typography-7044a64-line-height, 1.35);
}

.gf-pi .gf-pi-title--h6 {
    font-size: var(--e-global-typography-84ca66e-font-size, 16px);
    font-weight: var(--e-global-typography-84ca66e-font-weight, 400);
    line-height: var(--e-global-typography-84ca66e-line-height, 1.4);
}

/* (a text's own headings: the kit's, with room around them) */
.gf-pi-prose :is(h1, h2, h3, h4, h5, h6) {
    margin: 1.4em 0 0.5em;
}

/* Key features: ticks, two columns */
.gf-pi-checks,
.gf-pi-dots,
.gf-pi-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gf-pi-checks {
    display: grid;
    gap: 12px 32px;
}

.gf-pi-checks li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    color: var(--gf-pi-ink);
}

.gf-pi-tick {
    display: grid;
    flex: 0 0 24px;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--gf-pi-ok) 12%, #fff);
    color: var(--gf-pi-ok);
}

.gf-pi-tick svg {
    width: 14px;
    height: 14px;
}

/* Advice and tips: a red dot each */
.gf-pi-dots {
    display: grid;
    gap: 10px;
}

.gf-pi-dots li {
    position: relative;
    margin: 0;
    padding-left: 22px;
}

.gf-pi-dots li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gf-pi-brand);
}

/* How to use: the steps numbered, on a line */
.gf-pi-steps {
    counter-reset: gf-pi-step;
}

.gf-pi-steps li {
    position: relative;
    margin: 0;
    padding: 3px 0 22px 50px;
    counter-increment: gf-pi-step;
}

.gf-pi-steps li:last-child {
    padding-bottom: 0;
}

.gf-pi-steps li::before {
    content: counter(gf-pi-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gf-pi-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.gf-pi-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 38px;
    bottom: 6px;
    left: 15.5px;
    width: 1px;
    background: var(--gf-pi-line);
}

/* Questions and answers */
.gf-pi-faq {
    border-top: 1px solid var(--gf-pi-line);
}

.gf-pi-qa {
    border-bottom: 1px solid var(--gf-pi-line);
}

.gf-pi-qa summary {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-weight: 500;
    line-height: 1.45;
    color: var(--gf-pi-ink);
    cursor: pointer;
    list-style: none;
}

.gf-pi-qa summary::-webkit-details-marker {
    display: none;
}

.gf-pi-qa summary:hover {
    color: var(--gf-pi-brand);
}

.gf-pi-qa summary:focus-visible {
    outline: 2px solid var(--gf-pi-ink);
    outline-offset: 2px;
}

.gf-pi-qa-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gf-pi-soft);
    color: var(--gf-pi-ink);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.gf-pi-qa-icon svg {
    width: 16px;
    height: 16px;
}

.gf-pi-qa[open] .gf-pi-qa-icon {
    transform: rotate(180deg);
}

.gf-pi-qa-answer {
    padding: 0 46px 20px 0;
}

/* The closing words: a grey card */
.gf-pi-outro {
    margin-top: 44px;
    padding: 22px 26px;
    border-radius: var(--gf-pi-radius);
    background: var(--gf-pi-soft);
    color: var(--gf-pi-ink);
}

/* Rows: the specifications (and the technical data, when shown in the information) */
.gf-pi-specs,
.gf-pi-rows {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--gf-pi-line);
    border-radius: var(--gf-pi-radius);
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.gf-pi-specs > div,
.gf-pi-rows > div {
    display: grid;
    grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
    gap: 14px;
    padding: 13px 18px;
}

.gf-pi-specs > div + div,
.gf-pi-rows > div + div {
    border-top: 1px solid var(--gf-pi-line);
}

.gf-pi-specs > div:nth-child(even),
.gf-pi-rows > div:nth-child(even) {
    background: #fbfbfb;
}

.gf-pi-specs :is(dt, dd),
.gf-pi-rows :is(dt, dd) {
    margin: 0;
}

.gf-pi-specs dt,
.gf-pi-rows dt {
    color: var(--gf-pi-muted);
}

.gf-pi-specs dd,
.gf-pi-rows dd {
    font-weight: 500;
    color: var(--gf-pi-ink);
    overflow-wrap: anywhere;
}

.gf-pi-specs dd a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    text-underline-offset: 3px;
}

.gf-pi-specs dd a:hover {
    color: var(--gf-pi-brand);
    text-decoration-color: currentColor;
}

/* Documents: a card each */
.gf-pi-docs {
    margin-top: 28px;
}

.gf-pi-docs .gf-pi-docs-title {
    margin: 0 0 12px;
    font-family: var(--gf-pi-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gf-pi-ink);
}

.gf-pi-docs-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gf-pi-docs-list li {
    margin: 0;
}

.gf-pi-docs .gf-pi-doc {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px 12px 12px;
    border: 1px solid var(--gf-pi-line);
    border-radius: var(--gf-pi-radius);
    background: #fff;
    color: var(--gf-pi-ink);
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gf-pi-docs .gf-pi-doc:hover {
    border-color: var(--gf-pi-ink);
    background: var(--gf-pi-soft);
}

.gf-pi-docs .gf-pi-doc:focus-visible {
    outline: 2px solid var(--gf-pi-ink);
    outline-offset: 2px;
}

.gf-pi-doc-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 44px;
    color: var(--gf-pi-muted);
}

.gf-pi-doc-icon svg {
    width: 34px;
    height: 34px;
}

.gf-pi-doc-icon span {
    position: absolute;
    bottom: 4px;
    left: 50%;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--gf-pi-brand);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    transform: translateX(-50%);
}

.gf-pi-doc-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.gf-pi-doc-meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--gf-pi-muted);
}

.gf-pi-doc-go {
    display: grid;
    place-items: center;
    color: var(--gf-pi-ink);
}

.gf-pi-doc-go svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .gf-pi-checks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* The aside (Specifikationer, Dokument) in view while the information is read */
@media (min-width: 1025px) {
    .e-con.gf-pi-aside {
        position: sticky;
        top: 130px;
        align-self: flex-start;
    }
}

@media (max-width: 767px) {
    .gf-pi {
        line-height: 1.65;
    }

    .gf-pi-section {
        margin-top: 36px;
    }

    .gf-pi-qa-answer {
        padding-right: 0;
    }

    .gf-pi-outro {
        padding: 18px 20px;
    }

    .gf-pi-specs > div,
    .gf-pi-rows > div {
        padding: 12px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gf-pi-qa-icon {
        transition: none;
    }
}
