/* Keep accelerated wallets at checkout, where the customer expects payment. */
body.single-product .ppc-button-wrapper,
body.single-product #wc-stripe-express-checkout-element,
body.woocommerce-cart .ppc-button-wrapper,
body.woocommerce-cart #wc-stripe-express-checkout-element,
body.woocommerce-cart #wc-stripe-express-checkout-button-separator {
    display: none !important;
}

/* Preserve the established compact header while making the restored wordmark legible. */
.site-header .custom-logo {
    width: auto !important;
    height: 96px !important;
    max-width: 102px !important;
    max-height: 96px !important;
    object-fit: contain;
}

.jj-purchase-confidence {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .75rem;
    margin-top: .65rem;
    color: #536579;
    font-size: .88rem;
    line-height: 1.4;
}
.jj-purchase-confidence a { text-decoration: underline; text-underline-offset: .12em; }
.jj-purchase-confidence a + a {
    padding-left: .75rem;
    border-left: 1px solid #d9d4ca;
}

/* Keep catalog identities intact while removing raw operational SKUs from shoppers. */
body.single-product .product_meta .sku_wrapper { display: none !important; }

/* Keep imported reviews scannable and their source explicit without a bulky panel. */
#tab-reviews #reviews.woocommerce-Reviews {
    display: block !important;
    grid-template-columns: none !important;
}
#tab-reviews #reviews.woocommerce-Reviews .commentlist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    width: 100% !important;
}
#tab-reviews #reviews.woocommerce-Reviews #comments {
    float: none;
    width: 100% !important;
    max-width: none !important;
}
.woocommerce-Reviews .commentlist > li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: .85rem !important;
    border: 1px solid #e2ded6;
    border-radius: .5rem;
    background: #fff;
}
.woocommerce-Reviews .comment_container > img.avatar { display: none; }
.woocommerce-Reviews .commentlist .comment-text {
    margin: 0 !important;
}
.woocommerce-Reviews .jaybird-review-source {
    margin: .45rem 0 0;
    color: #536579;
    font-size: .82rem;
    font-weight: 600;
}
.woocommerce-Reviews .woocommerce-verification-required {
    clear: both;
    float: none !important;
    width: 100% !important;
    margin-top: .85rem;
}

body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content {
    margin-top: 0;
}

/* Kadence otherwise reserves a 200px page hero plus a second content margin.
 * Keep the native title and pale-blue branding, but make the shopping pages
 * compact without changing headings anywhere else on the site. */
body.woocommerce-cart .entry-hero.page-hero-section,
body.woocommerce-checkout .entry-hero.page-hero-section,
body.woocommerce-cart .entry-hero.page-hero-section .entry-hero-container-inner,
body.woocommerce-checkout .entry-hero.page-hero-section .entry-hero-container-inner,
body.woocommerce-cart .entry-hero.page-hero-section .entry-header,
body.woocommerce-checkout .entry-hero.page-hero-section .entry-header {
    height: auto !important;
    min-height: 0 !important;
}
body.woocommerce-cart .entry-hero.page-hero-section .entry-hero-container-inner,
body.woocommerce-checkout .entry-hero.page-hero-section .entry-hero-container-inner {
    padding-block: 1rem;
}
body.woocommerce-cart .entry-hero.page-hero-section .entry-title,
body.woocommerce-checkout .entry-hero.page-hero-section .entry-title {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    line-height: 1.15;
}
body.woocommerce-cart #primary.content-area,
body.woocommerce-checkout #primary.content-area {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}
body.woocommerce-cart table.shop_table,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-checkout form.checkout .form-row,
body.woocommerce-checkout #order_review_heading {
    margin-bottom: 1rem;
}
body.woocommerce-cart .wc-proceed-to-checkout { padding-bottom: 0; }
body.woocommerce-cart .cart_totals,
body.woocommerce-checkout #order_review {
    border-radius: .5rem;
}
body.woocommerce-checkout #wc-stripe-express-checkout-element {
    max-width: 34rem;
    margin: .5rem auto 0 !important;
    gap: .5rem;
}
body.woocommerce-checkout #wc-stripe-express-checkout-button-separator {
    margin: .75rem 0 1rem !important;
}
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    row-gap: .25rem;
}
body.woocommerce-checkout .woocommerce-additional-fields { margin-top: 1rem; }
body.woocommerce-checkout .woocommerce-checkout-review-order-table .wc-item-meta,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .variation {
    margin: .35rem 0 0;
    font-size: .9rem;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .site-header .custom-logo {
        height: 86px !important;
        max-width: 92px !important;
        max-height: 86px !important;
    }
    body.single-product div.product .product_title {
        margin-bottom: .45rem;
        font-size: clamp(1.5rem, 6vw, 1.75rem);
        line-height: 1.17;
    }
    .jj-purchase-confidence {
        gap: .25rem .6rem;
        margin-top: .55rem;
        font-size: .84rem;
    }
    .jj-purchase-confidence a + a { padding-left: .6rem; }
    body.single-product .jwo-launcher,
    body.woocommerce-cart .jwo-launcher,
    body.woocommerce-checkout .jwo-launcher {
        position: static !important;
        inset: auto !important;
        display: block !important;
        width: max-content !important;
        max-width: calc(100% - 2rem) !important;
        min-height: 36px;
        margin: .35rem auto .15rem !important;
        transform: none !important;
        z-index: auto !important;
    }
    body.woocommerce-cart .entry-hero.page-hero-section .entry-hero-container-inner,
    body.woocommerce-checkout .entry-hero.page-hero-section .entry-hero-container-inner {
        padding-block: .75rem;
    }
    body.woocommerce-cart .entry-hero.page-hero-section .entry-title,
    body.woocommerce-checkout .entry-hero.page-hero-section .entry-title {
        font-size: 1.6rem;
    }
    body.woocommerce-cart #primary.content-area,
    body.woocommerce-checkout #primary.content-area {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
    #tab-reviews #reviews.woocommerce-Reviews .commentlist { grid-template-columns: 1fr; }
    .woocommerce-Reviews .commentlist > li { padding: .75rem !important; }
    body.woocommerce-cart .cart_totals,
    body.woocommerce-checkout #order_review { padding: .75rem; }
    body.woocommerce-checkout #wc-stripe-express-checkout-element {
        max-width: none;
        gap: .35rem;
    }
}
