/* =========================================================
   MENZO HEALTH — PRODUCT DESCRIPTION TYPOGRAPHY
   Scoped to the WooCommerce Description tab only.
   Existing markup:
   .woocommerce-Tabs-panel--description
     .menzo-description-wrapper
       .menzo-author-badges
       .menzo-description.menzo-product-description
         .product-description
           h2 / h3 / p
   ========================================================= */

body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description {
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    padding: 32px 34px;
    box-sizing: border-box;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description h2,
body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description .product-description h2 {
    margin: 22px 0 10px !important;
    font-size: 25px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: 0;
    color: #13294b !important;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description h3,
body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description .product-description h3 {
    margin: 18px 0 8px !important;
    font-size: 21px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0;
    color: #13294b !important;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description h2:first-child,
body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description .product-description > h2:first-child,
body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description h3:first-child,
body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description .product-description > h3:first-child {
    margin-top: 0 !important;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description p,
body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description .product-description p {
    margin: 0 0 14px;
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.7;
    color: #5b667a;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description li,
body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description .product-description li {
    font-size: 15.5px;
    line-height: 1.7;
    color: #5b667a;
}

@media (max-width: 767px) {
    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description {
        padding: 18px 16px;
        border-radius: 14px;
    }

    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description h2,
    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description .product-description h2 {
        margin: 18px 0 8px !important;
        font-size: 20px !important;
        line-height: 1.35 !important;
    }

    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description h3,
    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description .product-description h3 {
        margin: 16px 0 8px !important;
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description p,
    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description .product-description p,
    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description li,
    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description .product-description li {
        font-size: 14px;
        line-height: 1.7;
    }
}

body.single-product .woocommerce div.product div.woocommerce-tabs,
body.single-product .woocommerce-Tabs-panel--description,
body.single-product .woocommerce-Tabs-panel--description .menzo-description-wrapper {
    overflow: visible;
}

/* Author badges — under the Description tab, above the description text. */
body.single-product .woocommerce-Tabs-panel--description .menzo-description-wrapper,
body.single-product .woocommerce-Tabs-panel--description .menzo-author-badges {
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-description-wrapper {
    position: relative;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description {
    position: relative;
    z-index: 1;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 18px;
    overflow: visible;
    position: relative;
    z-index: 30;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-profile-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: visible;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 40px;
    padding: 7px 14px 7px 10px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #dce3ee;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
    color: #0a2342;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #079455;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-label {
    color: #0a2342;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-label strong,
body.single-product .woocommerce-Tabs-panel--description .menzo-author-name-link,
body.single-product .woocommerce-Tabs-panel--description .menzo-author-name-link strong {
    color: #4b18c9;
    font-weight: 600;
    text-decoration: none;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-name-link:hover strong {
    text-decoration: underline;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-hover-card {
    position: absolute;
    top: 100%;
    left: 0;
    width: 360px;
    min-height: 165px;
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e3e6eb;
    border-radius: 12px;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.12),
        0 3px 8px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    z-index: 999;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-profile-wrap:hover .menzo-author-hover-card,
body.single-product .woocommerce-Tabs-panel--description .menzo-author-profile-wrap:focus-within .menzo-author-hover-card,
body.single-product .woocommerce-Tabs-panel--description .menzo-author-profile-wrap.is-open .menzo-author-hover-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-photo {
    width: 115px;
    min-width: 115px;
    height: 165px;
    background: #f5f6f8;
    overflow: hidden;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-photo img {
    width: 100%;
    height: 100%;
    min-height: 165px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-card-content {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-trusted {
    margin: 0 0 7px;
    color: #079455;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-card-content h3 {
    margin: 0 0 7px;
    color: #20252f;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-designation,
body.single-product .woocommerce-Tabs-panel--description .menzo-author-qualification {
    margin: 0;
    color: #555b66;
    font-size: 14px;
    line-height: 1.45;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-view {
    display: inline-block;
    margin-top: 9px;
    color: #4b18c9;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

body.single-product .woocommerce-Tabs-panel--description .menzo-author-view:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    /*
     * Blocksy product-tabs.scss stacks ul.tabs as a column below sm
     * (~690px). Keep Description / Reviews / FAQ on one row.
     */
    body.single-product .woocommerce div.product div.woocommerce-tabs ul.tabs,
    body.single-product .woocommerce-tabs ul.tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    body.single-product .woocommerce div.product div.woocommerce-tabs ul.tabs li,
    body.single-product .woocommerce-tabs ul.tabs li {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        border-top: none !important;
        display: flex !important;
    }

    body.single-product .woocommerce div.product div.woocommerce-tabs ul.tabs li a,
    body.single-product .woocommerce-tabs ul.tabs li a {
        width: 100% !important;
        padding: 10px 4px !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }

    body.single-product .woocommerce div.product div.woocommerce-tabs ul.tabs li.active:before,
    body.single-product .woocommerce-tabs ul.tabs li.active:before {
        height: 2px;
        bottom: 0;
    }

    body.single-product .woocommerce div.product div.woocommerce-tabs div.woocommerce-Tabs-panel.panel {
        padding-top: 14px !important;
    }

    body.single-product .woocommerce-Tabs-panel--description .menzo-author-badges {
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        margin: 0 0 12px !important;
    }

    body.single-product .woocommerce-Tabs-panel--description .menzo-author-profile-wrap {
        display: block !important;
        width: 100%;
        max-width: 100%;
    }

    body.single-product .woocommerce-Tabs-panel--description .menzo-author-badge {
        width: 100%;
        max-width: 100% !important;
        min-height: 0 !important;
        padding: 8px 12px 8px 8px !important;
        border-radius: 8px !important;
        box-sizing: border-box;
    }

    body.single-product .woocommerce-Tabs-panel--description .menzo-author-check {
        width: 18px;
        height: 18px;
        min-width: 18px;
        font-size: 11px;
    }

    body.single-product .woocommerce-Tabs-panel--description .menzo-author-label {
        white-space: normal;
        font-size: 13px;
    }

    body.single-product .woocommerce-Tabs-panel--description .menzo-author-hover-card {
        width: min(360px, calc(100vw - 40px));
        max-width: calc(100vw - 32px);
    }

    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description h2,
    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description .product-description h2 {
        margin-top: 4px !important;
    }
}

@media (max-width: 390px) {
    body.single-product .woocommerce div.product div.woocommerce-tabs ul.tabs li a,
    body.single-product .woocommerce-tabs ul.tabs li a {
        font-size: 11px !important;
        padding: 9px 2px !important;
    }

    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description {
        padding: 16px 14px;
    }

    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description h2,
    body.single-product .woocommerce-Tabs-panel--description .menzo-description.menzo-product-description .product-description h2 {
        font-size: 19px !important;
    }
}

/* Blog single badges. Same classes as the product badges.
   Scoped to single posts so product rules stay unchanged. */
body.single-post .elementor-column:has(.menzo-blog-author-badges) {
    width: 100% !important;
    max-width: 100% !important;
}

body.single-post .elementor-column:has(.menzo-blog-author-empty):not(:has(.menzo-blog-author-badges)) {
    display: none !important;
}

body.single-post .menzo-blog-author-empty {
    display: none !important;
}

body.single-post .elementor-column:has(.menzo-blog-author-badges),
body.single-post .elementor-widget-wrap:has(.menzo-blog-author-badges),
body.single-post .menzo-blog-author-widget {
    overflow: visible;
}

body.single-post .menzo-blog-author-badges {
    margin-top: 4px;
    margin-bottom: 8px;
}

body.single-post .menzo-author-label .menzo-author-name-link,
body.single-post .menzo-author-label .menzo-author-name-link strong {
    color: #4b18c9;
    font-weight: 600;
    text-decoration: none;
}

body.single-post .menzo-author-label .menzo-author-name-link:hover strong {
    text-decoration: underline;
}

body.single-post .menzo-author-card-content .menzo-author-card-name {
    margin: 0 0 7px;
    color: #20252f;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

@media (max-width: 767px) {
    body.single-post .menzo-blog-author-badges {
        align-items: stretch;
    }

    body.single-post .menzo-blog-author-badges .menzo-author-profile-wrap,
    body.single-post .menzo-blog-author-badges .menzo-author-badge {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.single-post .menzo-author-label {
        white-space: normal;
    }
}