/* Match the reference product description without altering Elementor widgets. */
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs {
    clear: both;
    float: none;
    width: 50%;
    max-width: 100%;
    margin: 0 0 48px;
    padding: 0;
    box-sizing: border-box;
}
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > ul.tabs {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > ul.tabs li {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > ul.tabs li::before,
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > ul.tabs li::after {
    display: none;
}
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > ul.tabs li a {
    display: block;
    padding: 14px 22px;
    font-weight: 600;
    font-size: 18px;
    text-transform: none;
    border-top: 3px solid transparent;
}
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > ul.tabs li.active a {
    background: #fff;
    color: #111;
    border-top-color: #f59a00;
}
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > #tab-description {
    background: #fff;
    color: var(--e-global-color-text, #1b2638);
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-size: 16px;
    line-height: 1.5;
    padding: 28px 20px;
    margin: 0;
    border: 0;
    overflow-wrap: break-word;
    box-sizing: border-box;
}
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > #tab-description :is(h1,h2,h3,h4) {
    color: var(--e-global-color-primary, #1b2638);
    font-family: var(--e-global-typography-primary-font-family, inherit);
    line-height: 1.15;
    margin: 1.5em 0 .65em;
}
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > #tab-description h1 { font-size: clamp(28px, 3vw, 48px); }
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > #tab-description h2 { font-size: 32px; }
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > #tab-description h3 { font-size: 28px; }
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > #tab-description > :first-child { margin-top: 0; }
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > #tab-description p { margin: 0 0 1.5em; }
body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > #tab-description img { max-width: 100%; height: auto; }
@media (max-width: 767px) {
    body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs { width: 100%; }
    body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > #tab-description { padding: 20px 16px; }
    body.single-product #content div.product:not(.elementor-location-single) > .woocommerce-tabs > #tab-description h3 { font-size: 24px; }
}

/* Center the Astra fallback product layout, leaving Elementor templates untouched. */
body.single-product #content .ast-container div.product:not(.elementor-location-single):not(.related .product):not(.upsells .product) {
    width: 100%;
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
