
/* ==========================================================
   Product Description Tables — mobile-scrollable styling
   Applies to all product description tables site-wide
   ========================================================== */

/* Scrollable wrapper — added via JS for existing tables */
.techmash-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    margin-top: 8px;
}

/* Table base styles */
.woocommerce-Tabs-panel--description table,
.woocommerce-product-details__short-description table {
    min-width: 500px;
    border-collapse: collapse;
    width: 100%;
}

/* All cells */
.woocommerce-Tabs-panel--description table th,
.woocommerce-Tabs-panel--description table td,
.woocommerce-product-details__short-description table th,
.woocommerce-product-details__short-description table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    white-space: nowrap;
    vertical-align: middle;
}

/* Header row */
.woocommerce-Tabs-panel--description table thead th,
.woocommerce-product-details__short-description table thead th {
    background: #f5f5f5;
    font-weight: 600;
}

/* First column — parameter name */
.woocommerce-Tabs-panel--description table td:first-child,
.woocommerce-Tabs-panel--description table th:first-child,
.woocommerce-product-details__short-description table td:first-child,
.woocommerce-product-details__short-description table th:first-child {
    background: #f5f5f5;
    font-weight: 600;
}

/* Even rows subtle zebra */
.woocommerce-Tabs-panel--description table tbody tr:nth-child(even) td:not(:first-child),
.woocommerce-product-details__short-description table tbody tr:nth-child(even) td:not(:first-child) {
    background: #fafafa;
}


/* ==========================================================
   FAQ Block — Поширені запитання (глобально для всіх товарів)
   Структура: [itemtype="schema FAQPage"] > [itemtype="schema Question"]
   ========================================================== */

.woocommerce-Tabs-panel--description [itemtype="https://schema.org/FAQPage"] {
    margin-top: 8px;
}

.woocommerce-Tabs-panel--description [itemtype="https://schema.org/Question"] {
    background: #f7f8fa;
    border-left: 4px solid #d4211b;
    border-radius: 0 6px 6px 0;
    padding: 18px 22px 16px;
    margin-bottom: 12px;
    transition: background 0.2s ease;
}

.woocommerce-Tabs-panel--description [itemtype="https://schema.org/Question"]:hover {
    background: #eef0f5;
}

.woocommerce-Tabs-panel--description [itemtype="https://schema.org/Question"] h3[itemprop="name"] {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1c1c1c;
    line-height: 1.4;
    padding-left: 28px;
    position: relative;
}

.woocommerce-Tabs-panel--description [itemtype="https://schema.org/Question"] h3[itemprop="name"]::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 11px;
    font-weight: 900;
    color: #d4211b;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: rgba(212, 33, 27, 0.1);
    border-radius: 4px;
}

.woocommerce-Tabs-panel--description [itemtype="https://schema.org/Answer"] p[itemprop="text"] {
    margin: 0;
    padding-left: 28px;
    color: #555;
    font-size: 14.5px;
    line-height: 1.68;
}

@media (max-width: 768px) {
    .woocommerce-Tabs-panel--description [itemtype="https://schema.org/Question"] {
        padding: 14px 16px 12px;
    }
    .woocommerce-Tabs-panel--description [itemtype="https://schema.org/Question"] h3[itemprop="name"],
    .woocommerce-Tabs-panel--description [itemtype="https://schema.org/Answer"] p[itemprop="text"] {
        padding-left: 24px;
        font-size: 14px;
    }
}
