/* =========================================
   MOBILE ACCORDION TABS – PAÉSE
   ========================================= */

@media (max-width: 999px) {

    /* Ukrywamy klasyczne zakładki */
    .woocommerce div.product .woocommerce-tabs ul.wc-tabs {
        display: none;
    }

    /* Panel jako blok */
    .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
        display: block !important;
        padding: 0;
        margin: 0;
        border: none;
    }

    /* Wrapper pojedynczej sekcji */
    .fc-mobile-tab {
        border-bottom: 1px solid #e5e5e5;
    }

    /* Nagłówek */
    .fc-mobile-tab-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
    }

    .fc-mobile-tab-title::after {
        content: "+";
        font-size: 18px;
        transition: transform .2s ease;
    }

    .fc-mobile-tab.is-open .fc-mobile-tab-title::after {
        content: "−";
    }

    /* Treść */
    .fc-mobile-tab-content {
        display: none;
        padding-bottom: 16px;
    }

    .fc-mobile-tab.is-open .fc-mobile-tab-content {
        display: block;
    }

}
/* Pełne odblokowanie zaznaczania i kopiowania treści zakładek produktu. */
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel *,
body.single-product .fc-mobile-tab-content,
body.single-product .fc-mobile-tab-content * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
body.single-product .fc-mobile-tab-content {
    touch-action: auto !important;
    cursor: text;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel :is(a, button, input, select, textarea, label),
body.single-product .fc-mobile-tab-content :is(a, button, input, select, textarea, label) {
    cursor: revert;
}
