/*
Theme Name: Accentuate Child
Theme URI: https://pdfx.se/
Description: Child theme för Accentuate på PDF-XChange Sverige.
Author: PDF-XChange Sverige
Version: 1.0.0
Template: accentuate
Text Domain: accentuate-child
*/

/*
 * PDF-XChange PRO 11 — Product ID 38
 *
 * Production stylesheet to append after the child theme's existing non-product
 * rules. Before deployment, remove every earlier product-38-specific block
 * from the child stylesheet. This sheet is deliberately scoped to product 38.
 */

/* ========================================================================== */
/* PRODUCT 38 — FINAL PDP SYSTEM                                              */
/* ========================================================================== */

body.single-product.postid-38 {
    background: #f5f7f9;
}

body.single-product.postid-38 #product-38 {
    --pdfx-surface: #ffffff;
    --pdfx-ink: #1c2e42;
    --pdfx-ink-soft: #40556a;
    --pdfx-copy: #586b7e;
    --pdfx-muted: #718092;
    --pdfx-line: #d7e0e8;
    --pdfx-line-strong: #bdccd8;
    --pdfx-selection: #eef9fc;
    --pdfx-selection-line: #bcdfea;
    --pdfx-cyan: #129dc5;
    --pdfx-cyan-hover: #0d8eaf;
    /* Live audit: the site header is static while scrolling; 24 px is page breathing room. */
    --pdfx-header-offset: 24px;
    box-sizing: border-box;
    width: min(100%, 1360px);
    margin: 32px auto 80px;
    padding: 0 32px;
    color: var(--pdfx-copy);
    font-family: Poppins, sans-serif;
}

body.single-product.postid-38 #product-38 *,
body.single-product.postid-38 #product-38 *::before,
body.single-product.postid-38 #product-38 *::after {
    box-sizing: border-box;
}

/* Give this one product its intended canvas without affecting other PDPs. */
@supports selector(.container:has(#product-38)) {
    body.single-product.postid-38 .container:has(#product-38),
    body.single-product.postid-38 .row:has(#product-38),
    body.single-product.postid-38 #primary:has(#product-38),
    body.single-product.postid-38 .content-area:has(#product-38),
    body.single-product.postid-38 .site-main:has(#product-38),
    body.single-product.postid-38 [class*="col-"]:has(#product-38) {
        width: 100% !important;
        max-width: none !important;
        flex: 0 0 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        overflow: visible !important;
    }

    body.single-product.postid-38 .container:has(#product-38) {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

body.single-product.postid-38 .page-title,
body.single-product.postid-38 .page-title-wrap,
body.single-product.postid-38 .page-header,
body.single-product.postid-38 .entry-header,
body.single-product.postid-38 .woocommerce-products-header,
body.single-product.postid-38 .breadcrumbs,
body.single-product.postid-38 .breadcrumb,
body.single-product.postid-38 .titlebar,
body.single-product.postid-38 .titlebar-wrap {
    display: none !important;
}

body.single-product.postid-38 #main,
body.single-product.postid-38 .site-main,
body.single-product.postid-38 .content-area,
body.single-product.postid-38 .site-content,
body.single-product.postid-38 .main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.single-product.postid-38 #product-38,
body.single-product.postid-38 #product-38 .pdfx-layout-shell,
body.single-product.postid-38 #product-38 .pdfx-purchase-slot {
    overflow: visible !important;
}

#product-38 .pdfx-layout-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    grid-template-areas:
        "head purchase"
        "hero purchase"
        "details purchase";
    gap: 0 48px;
    align-items: start;
}

#product-38 .pdfx-product-head {
    grid-area: head;
    min-width: 0;
    padding: 0 0 20px;
}

#product-38 .pdfx-product-name {
    max-width: 860px;
    margin: 0 !important;
    color: var(--pdfx-ink) !important;
    font-family: Poppins, sans-serif !important;
    font-size: clamp(42px, 3.15vw, 50px) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
}

/* One functional group: explanation and product visual, visually part of the page. */
#product-38 .pdfx-hero-body {
    grid-area: hero;
    display: flex;
    width: min(100%, 760px);
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    padding: 0 0 32px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#product-38 .pdfx-product-intro {
    width: min(100%, 760px);
    color: var(--pdfx-copy) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

#product-38 .pdfx-product-intro p {
    margin: 0 0 12px !important;
    color: inherit !important;
    font: inherit !important;
}

#product-38 .pdfx-product-intro p:last-child {
    margin-bottom: 0 !important;
}

#product-38 .pdfx-product-media {
    display: flex !important;
    width: 100% !important;
    min-height: 220px;
    flex: 0 0 220px;
    align-items: flex-end;
    justify-content: center;
    margin: 28px 0 0 !important;
    padding: 0 !important;
    text-align: center;
}

#product-38 .pdfx-product-media .images,
#product-38 .pdfx-product-media .woocommerce-product-gallery,
#product-38 .pdfx-product-media .woocommerce-product-gallery__wrapper,
#product-38 .pdfx-product-media .woocommerce-product-gallery__image,
#product-38 .pdfx-product-media .woocommerce-product-gallery__image a {
    display: flex !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* The source image is 220 × 220 px; preserve that real, natural maximum. */
#product-38 .pdfx-product-media img {
    display: block !important;
    width: auto !important;
    max-width: 220px !important;
    height: auto !important;
    max-height: 220px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#product-38 .pdfx-product-media .woocommerce-product-gallery__trigger,
#product-38 .pdfx-product-media .flex-control-thumbs,
#product-38 .pdfx-product-media .woocommerce-product-gallery__image:nth-child(n + 2) {
    display: none !important;
}

#product-38 .pdfx-product-media .woocommerce-product-gallery__image a {
    pointer-events: none;
    cursor: default;
}

/* The slot occupies the grid track; only its child becomes sticky. */
#product-38 .pdfx-purchase-slot {
    grid-area: purchase;
    min-width: 0;
    align-self: stretch;
}

#product-38 .pdfx-purchase-panel {
    position: sticky;
    top: var(--pdfx-header-offset);
    width: 100% !important;
    margin: 0 !important;
    padding: 26px 26px 22px !important;
    color: var(--pdfx-copy) !important;
    background: var(--pdfx-surface) !important;
    border: 1px solid var(--pdfx-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 26px rgba(28, 46, 66, 0.05) !important;
}

#product-38 .pdfx-purchase-panel > .price,
#product-38 .pdfx-purchase-panel > p.price {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#product-38 .pdfx-license-note,
#product-38 .pdfx-vat-note {
    display: block;
    margin: 0;
    color: var(--pdfx-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

#product-38 .pdfx-license-note {
    margin: 0 12px 18px;
}

#product-38 .pdfx-vat-note {
    margin-top: 14px;
}

#product-38 .pdfx-purchase-panel form.cart,
#product-38 .pdfx-purchase-panel .gform_wrapper,
#product-38 .pdfx-purchase-panel .gform_variation_wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

#product-38 .pdfx-purchase-panel .gfield {
    margin: 0 0 16px !important;
}

#product-38 .pdfx-purchase-panel .gfield_label {
    display: block !important;
    margin: 0 0 7px !important;
    color: var(--pdfx-ink-soft) !important;
    font-family: Poppins, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

#product-38 .pdfx-purchase-panel select {
    appearance: none !important;
    display: block !important;
    width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 42px 0 14px !important;
    color: var(--pdfx-ink) !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2340566a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    border: 1px solid var(--pdfx-line-strong) !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    font-family: Poppins, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    cursor: pointer;
}

#product-38 .pdfx-purchase-panel select:focus-visible,
#product-38 .pdfx-purchase-panel input[type="radio"]:focus-visible,
#product-38 .pdfx-purchase-panel .single_add_to_cart_button:focus-visible {
    outline: 3px solid rgba(18, 157, 197, 0.32) !important;
    outline-offset: 2px !important;
}

@supports selector(.gfield:has(.gfield_radio)) {
    #product-38 .pdfx-purchase-panel .gfield:has(.gfield_radio) > .gfield_label {
        display: none !important;
    }
}

#product-38 .pdfx-purchase-panel .gfield_radio {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#product-38 .pdfx-purchase-panel .gfield_radio .gchoice,
#product-38 .pdfx-purchase-panel .gfield_radio > li {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 50px;
    align-items: start;
    margin: 0 0 6px !important;
    padding: 9px 8px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
}

#product-38 .pdfx-purchase-panel input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    margin: 3px 0 0 !important;
    accent-color: var(--pdfx-cyan);
    cursor: pointer;
}

#product-38 .pdfx-purchase-panel .gfield_radio label {
    display: flex !important;
    width: 100% !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 !important;
    color: var(--pdfx-ink-soft) !important;
    font-family: Poppins, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.42 !important;
    cursor: pointer;
}

#product-38 .pdfx-purchase-panel .gfield_radio .ginput_price,
#product-38 .pdfx-purchase-panel .gfield_radio .gfield-price {
    flex: 0 0 auto;
    margin-left: auto !important;
    color: var(--pdfx-ink) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

@supports selector(.gchoice:has(input:checked)) {
    #product-38 .pdfx-purchase-panel .gfield_radio .gchoice:has(input[type="radio"]:checked),
    #product-38 .pdfx-purchase-panel .gfield_radio > li:has(input[type="radio"]:checked) {
        background: var(--pdfx-selection) !important;
        border-color: var(--pdfx-selection-line) !important;
    }

    #product-38 .pdfx-purchase-panel .gfield_radio .gchoice:has(input[type="radio"]:checked) label,
    #product-38 .pdfx-purchase-panel .gfield_radio > li:has(input[type="radio"]:checked) label {
        color: var(--pdfx-ink) !important;
        font-weight: 500 !important;
    }
}

/* Keep the plugin's actual dynamic total; suppress only its redundant label. */
#product-38 .pdfx-purchase-panel .product_totals {
    width: 100% !important;
    margin: 18px 0 !important;
    padding: 20px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid var(--pdfx-line) !important;
    box-shadow: none !important;
}

#product-38 .pdfx-purchase-panel .product_totals > ul,
#product-38 .pdfx-purchase-panel .product_totals > ul > li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: 0 !important;
}

#product-38 .pdfx-purchase-panel .product_totals > ul > li:nth-child(1),
#product-38 .pdfx-purchase-panel .product_totals > ul > li:nth-child(2) {
    display: none !important;
}

#product-38 .pdfx-purchase-panel .product_totals > ul > li:nth-child(3),
#product-38 .pdfx-purchase-panel .product_totals > ul > li.wcgfpa_grand_total {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

#product-38 .pdfx-purchase-panel .product_totals > ul > li:nth-child(3) > .gfield_label,
#product-38 .pdfx-purchase-panel .product_totals > ul > li.wcgfpa_grand_total > .gfield_label {
    display: none !important;
}

#product-38 .pdfx-purchase-panel .product_totals > ul > li:nth-child(3) > .ginput_container,
#product-38 .pdfx-purchase-panel .product_totals > ul > li.wcgfpa_grand_total > .ginput_container {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#product-38 .pdfx-purchase-panel .formattedTotalPrice.ginput_total {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--pdfx-ink) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-family: Poppins, sans-serif !important;
    font-size: clamp(34px, 2.65vw, 38px) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;
    text-align: center !important;
    white-space: nowrap;
}

#product-38 .pdfx-purchase-panel .single_add_to_cart_button {
    display: flex !important;
    width: 100% !important;
    min-height: 54px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 12px 20px !important;
    color: #ffffff !important;
    background: var(--pdfx-cyan) !important;
    border: 1px solid var(--pdfx-cyan) !important;
    border-radius: 7px !important;
    box-shadow: 0 5px 12px rgba(18, 157, 197, 0.16) !important;
    font-family: Poppins, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

#product-38 .pdfx-purchase-panel .single_add_to_cart_button:hover {
    background: var(--pdfx-cyan-hover) !important;
    border-color: var(--pdfx-cyan-hover) !important;
    box-shadow: 0 6px 14px rgba(18, 157, 197, 0.2) !important;
}

#product-38 .pdfx-product-details {
    grid-area: details;
    min-width: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

#product-38 .pdfx-product-details .woocommerce-tabs,
#product-38 .pdfx-product-details .woocommerce-Tabs-panel,
#product-38 .pdfx-product-details #tab-description {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--pdfx-copy) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#product-38 .pdfx-product-details .woocommerce-tabs > ul.tabs,
#product-38 .pdfx-product-details .woocommerce-tabs > ul.wc-tabs,
#product-38 .pdfx-product-details #tab-description > h2:first-child,
#product-38 .pdfx-product-details .woocommerce-Tabs-panel--description > h2:first-child,
#product-38 .product_meta {
    display: none !important;
}

#product-38 .pdfx-product-details #tab-description h2 {
    max-width: 760px;
    margin: 0 0 12px !important;
    color: var(--pdfx-ink) !important;
    font-family: Poppins, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
}

#product-38 .pdfx-product-details #tab-description h2:not(:first-child) {
    margin-top: 30px !important;
}

#product-38 .pdfx-product-details #tab-description h3 {
    max-width: 760px;
    margin: 22px 0 8px !important;
    color: var(--pdfx-ink-soft) !important;
    font-family: Poppins, sans-serif !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

#product-38 .pdfx-product-details #tab-description p,
#product-38 .pdfx-product-details #tab-description ul,
#product-38 .pdfx-product-details #tab-description ol {
    max-width: 760px;
}

#product-38 .pdfx-product-details #tab-description p {
    margin: 0 0 14px !important;
    color: var(--pdfx-copy) !important;
    font-size: 16px !important;
    line-height: 1.72 !important;
}

#product-38 .pdfx-product-details #tab-description ul,
#product-38 .pdfx-product-details #tab-description ol {
    margin: 10px 0 22px !important;
    padding-left: 1.35em !important;
}

#product-38 .pdfx-product-details #tab-description li {
    margin: 0 0 6px !important;
    color: var(--pdfx-copy) !important;
    font-size: 16px !important;
    line-height: 1.68 !important;
}

#product-38 .pdfx-product-details #tab-description strong {
    color: var(--pdfx-ink) !important;
    font-weight: 600 !important;
}

@media (max-width: 1160px) {
    body.single-product.postid-38 #product-38 {
        --pdfx-header-offset: 20px;
        padding: 0 24px;
    }

    #product-38 .pdfx-layout-shell {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 0 32px;
    }

    #product-38 .pdfx-hero-body {
        width: 100%;
    }
}

@media (max-width: 900px) {
    body.single-product.postid-38 #product-38 {
        margin-top: 20px;
        padding: 0 18px;
    }

    #product-38 .pdfx-layout-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "head"
            "hero"
            "purchase"
            "details";
        gap: 0;
    }

    #product-38 .pdfx-hero-body {
        min-height: 0;
    }

    #product-38 .pdfx-purchase-slot {
        margin-top: 24px;
    }

    #product-38 .pdfx-purchase-panel {
        position: static;
        top: auto;
    }

    #product-38 .pdfx-product-details {
        margin-top: 28px;
        padding-top: 28px;
    }
}

@media (max-width: 540px) {
    body.single-product.postid-38 #product-38 {
        margin-bottom: 52px;
        padding: 0 14px;
    }

    #product-38 .pdfx-product-head {
        padding-bottom: 16px;
    }

    #product-38 .pdfx-product-name {
        font-size: 32px !important;
        line-height: 1.12 !important;
    }

    #product-38 .pdfx-hero-body {
        min-height: 0;
        padding: 0 0 28px;
    }

    #product-38 .pdfx-product-intro,
    #product-38 .pdfx-product-details #tab-description p,
    #product-38 .pdfx-product-details #tab-description li {
        font-size: 15.5px !important;
    }

    #product-38 .pdfx-product-media {
        min-height: 220px;
        flex-basis: 220px;
        margin-top: 24px !important;
    }

    #product-38 .pdfx-purchase-panel {
        padding: 22px 18px 20px !important;
    }

    #product-38 .pdfx-license-note {
        margin-bottom: 16px;
    }

    #product-38 .pdfx-purchase-panel .gfield_radio label {
        font-size: 13.5px !important;
    }

    #product-38 .pdfx-purchase-panel .formattedTotalPrice.ginput_total {
        font-size: 34px !important;
    }

    #product-38 .pdfx-product-details #tab-description h2 {
        font-size: 23px !important;
    }
}
