.bcwo-pi-dashboard{margin:36px auto;padding:28px;border-radius:26px;background:radial-gradient(circle at top left,#45206d,#111827 44%,#062b35);color:#fff;box-shadow:0 24px 70px rgba(0,0,0,.28);overflow:hidden}.bcwo-pi-dashboard h2,.bcwo-pi-dashboard h3{color:#fff;margin:0}.bcwo-pi-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px}.bcwo-pi-hero p{color:#c9d5ff;margin:.4rem 0 0}.bcwo-pi-badges{display:flex;gap:10px;flex-wrap:wrap}.bcwo-pi-badges span{background:linear-gradient(135deg,#7c3aed,#22d3ee);padding:10px 14px;border-radius:999px;font-weight:800}.bcwo-pi-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.bcwo-pi-chart-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:18px;min-height:310px;position:relative}.bcwo-pi-chart-card canvas{width:100%!important;height:240px!important}.bcwo-pi-wide{grid-column:1/-1}.bcwo-pi-empty{display:none;color:#cbd5e1}.bcwo-pi-chart-card.bcwo-empty canvas{display:none}.bcwo-pi-chart-card.bcwo-empty .bcwo-pi-empty{display:block}.bcwo-pi-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.bcwo-pi-info-grid div{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:14px}.bcwo-pi-info-grid strong{display:block;color:#93c5fd}.bcwo-pi-info-grid span{display:block;margin-top:4px}.bcwo-pi-description{margin-top:18px;background:rgba(255,255,255,.08);border-radius:18px;padding:18px;color:#e5e7eb}.bcwo-pi-description p{color:#e5e7eb}@media(max-width:800px){.bcwo-pi-hero{display:block}.bcwo-pi-chart-grid,.bcwo-pi-info-grid{grid-template-columns:1fr}}

/* v4.0.3: Strong tab suppression for WooCommerce + Woodmart/custom tab wrappers.
   Applied only when PHP adds body.bcwo-pi-hide-tabs for products using the dashboard. */
body.single-product.bcwo-pi-hide-tabs .woocommerce-tabs,
body.single-product.bcwo-pi-hide-tabs .wc-tabs-wrapper,
body.single-product.bcwo-pi-hide-tabs .wc-tabs,
body.single-product.bcwo-pi-hide-tabs .woocommerce-Tabs-panel,
body.single-product.bcwo-pi-hide-tabs .product-tabs-wrapper,
body.single-product.bcwo-pi-hide-tabs .product-tabs,
body.single-product.bcwo-pi-hide-tabs .wd-tabs,
body.single-product.bcwo-pi-hide-tabs .wd-tabs-header,
body.single-product.bcwo-pi-hide-tabs .wd-tab-wrapper,
body.single-product.bcwo-pi-hide-tabs .tabs-layout-tabs,
body.single-product.bcwo-pi-hide-tabs .tabs-layout-accordion,
body.single-product.bcwo-pi-hide-tabs .woocommerce-tabs wc-tabs-wrapper,
body.single-product.bcwo-pi-hide-tabs .woodmart-tabs,
body.single-product.bcwo-pi-hide-tabs .woodmart-tabs-wrapper,
body.single-product.bcwo-pi-hide-tabs .woodmart-accordion,
body.single-product.bcwo-pi-hide-tabs .wd-accordion {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Dashboard polish for product pages: tighter, cleaner, less awkward blank space. */
.bcwo-pi-dashboard {
    max-width: 1180px;
    width: min(100%, 1180px);
    clear: both;
}

.bcwo-pi-mushroom .bcwo-pi-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.bcwo-pi-mushroom .bcwo-pi-chart-card {
    min-height: 285px;
}

.bcwo-pi-mushroom .bcwo-pi-chart-card canvas {
    height: 220px !important;
}

@media (min-width: 801px) {
    .bcwo-pi-mushroom .bcwo-pi-chart-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}


/* v4.0.3: Extra Woodmart/Elementor/custom tab containers seen on live BCWO. */
body.single-product.bcwo-pi-hide-tabs .wd-tab-content,
body.single-product.bcwo-pi-hide-tabs .wd-nav-tabs,
body.single-product.bcwo-pi-hide-tabs .tabs,
body.single-product.bcwo-pi-hide-tabs ul.tabs,
body.single-product.bcwo-pi-hide-tabs .woocommerce-tabs .panel,
body.single-product.bcwo-pi-hide-tabs .wd-accordion-item,
body.single-product.bcwo-pi-hide-tabs [class*="woodmart-tabs"],
body.single-product.bcwo-pi-hide-tabs [class*="wd-tabs"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}


/* v4.0.4: Guard against aggressive theme selectors. The dashboard itself must remain visible. */
body.single-product .bcwo-pi-dashboard,
body.single-product.bcwo-pi-hide-tabs .bcwo-pi-dashboard {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}


/* v4.0.5: Woodmart full-width dashboard placement + chart scaling. */
.bcwo-pi-fullwidth-slot {
    clear: both !important;
    width: 100% !important;
    max-width: 1220px !important;
    margin: 36px auto !important;
    display: block !important;
}

body.single-product .product .bcwo-pi-dashboard,
body.single-product .single-product-page .bcwo-pi-dashboard,
body.single-product .bcwo-pi-dashboard {
    width: 100% !important;
    max-width: 1220px !important;
    margin: 32px auto !important;
    box-sizing: border-box !important;
}

body.single-product .summary .bcwo-pi-dashboard,
body.single-product .entry-summary .bcwo-pi-dashboard,
body.single-product .wd-single-summary .bcwo-pi-dashboard,
body.single-product .product-summary .bcwo-pi-dashboard,
body.single-product .wd-summary .bcwo-pi-dashboard {
    max-width: 1220px !important;
}

.bcwo-pi-dashboard .bcwo-pi-chart-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
}

.bcwo-pi-dashboard .bcwo-pi-chart-card {
    min-height: 260px !important;
    overflow: hidden !important;
}

.bcwo-pi-dashboard .bcwo-pi-chart-card canvas {
    height: 190px !important;
    max-height: 190px !important;
}

.bcwo-pi-dashboard .bcwo-pi-chart-card h3 {
    font-size: 20px !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
}

.bcwo-pi-dashboard .bcwo-pi-hero {
    align-items: center !important;
}

.bcwo-pi-dashboard .bcwo-pi-badges {
    flex-direction: column !important;
    align-items: flex-end !important;
}

@media (max-width: 900px) {
    .bcwo-pi-dashboard .bcwo-pi-chart-grid,
    .bcwo-pi-mushroom .bcwo-pi-chart-grid {
        grid-template-columns: 1fr !important;
    }

    .bcwo-pi-dashboard .bcwo-pi-hero {
        display: block !important;
    }

    .bcwo-pi-dashboard .bcwo-pi-badges {
        flex-direction: row !important;
        align-items: flex-start !important;
        margin-top: 14px !important;
    }
}


/* v4.0.6: Place dashboard directly under the main product block, not below related products. */
.bcwo-pi-fullwidth-slot {
    margin-top: 28px !important;
    margin-bottom: 28px !important;
}

body.single-product .related.products + .bcwo-pi-fullwidth-slot,
body.single-product section.related + .bcwo-pi-fullwidth-slot {
    margin-top: 0 !important;
}
