/* Askorbinka.uz — нейтральное оформление описаний и компактных таблиц.
   Заменяет предыдущий product-content.css целиком. */

.ask-product-content {
    --ask-accent: #eef1f3;
    --ask-line: #d8dde1;
    --ask-stripe: #f7f8f9;
    font-size: 16px;
    line-height: 1.65;
    color: #303030;
}

.ask-product-content p {
    margin: 0 0 14px;
}

.ask-product-content h2,
.ask-product-content h3 {
    margin: 26px 0 14px;
    padding: 8px 14px;
    background: #f3f5f6;
    color: #253039;
    border: 0;
    border-bottom: 1px solid #dce1e4;
    border-radius: 0;
    box-shadow: none;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.ask-product-content h2 {
    font-size: 20px;
}

.ask-product-content strong {
    font-weight: 700;
    color: inherit;
}

.ask-product-content a {
    color: #18764d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ask-product-content a:hover {
    color: #105638;
}

.ask-product-content ul,
.ask-product-content ol {
    margin: 10px 0 18px;
    padding-left: 24px;
}

.ask-product-content li {
    margin-bottom: 5px;
}

.ask-product-content li::marker {
    color: #68747c;
}

/* Плоский контейнер. На узких экранах таблица прокручивается внутри. */
.ask-product-content .ask-facts-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    margin: 20px auto 26px;
    padding: 0;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ask-product-content .ask-facts {
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    min-width: 580px;
    margin: 0 auto;
    table-layout: auto;
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid var(--ask-line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #303030;
    font-size: 14px;
    line-height: 1.45;
}

.ask-product-content .ask-facts th,
.ask-product-content .ask-facts td {
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid var(--ask-line);
    border-radius: 0;
    vertical-align: top;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Первая колонка занимает свободное место, две числовые — узкие.
   colspan исключён: строки о порции сохраняют полную ширину. */
.ask-product-content .ask-facts tr > :first-child:not([colspan]) {
    width: calc(100% - 216px);
}

.ask-product-content .ask-facts tr > :nth-child(2):not([colspan]) {
    width: 118px;
    max-width: 118px;
    font-variant-numeric: tabular-nums;
}

.ask-product-content .ask-facts tr > :nth-child(3):not([colspan]) {
    width: 98px;
    max-width: 98px;
    font-variant-numeric: tabular-nums;
}

.ask-product-content .ask-facts tbody tr:nth-child(odd) > td {
    background: #fff;
}

.ask-product-content .ask-facts tbody tr:nth-child(even) > td {
    background: var(--ask-stripe);
}

/* Шапка, включая исходную разметку с заголовками внутри tbody. */
.ask-product-content .ask-facts thead th,
.ask-product-content .ask-facts tbody th,
.ask-product-content .ask-facts tr:has(> td:first-child > strong):has(> td:nth-child(2) > strong):has(> td:nth-child(3) > strong) > td {
    background: #eef1f3;
    color: #253039;
    font-weight: 700;
}

.ask-product-content .ask-facts .ask-facts-section > td,
.ask-product-content .ask-facts tbody tr:first-child > td[colspan] {
    background: #e9eef0;
    color: #253039;
    font-weight: 700;
}

.ask-product-content .ask-facts .ask-facts-meta > td {
    background: #f7f8f9;
    color: #303030;
}

.ask-product-content .ask-facts-note {
    max-width: 720px;
    margin: -12px auto 24px;
    font-size: 13px;
    line-height: 1.5;
    color: #4a4a4a;
}

@media (max-width: 767px) {
    .ask-product-content {
        font-size: 15px;
        line-height: 1.6;
    }

    .ask-product-content h2,
    .ask-product-content h3 {
        margin-top: 22px;
        padding: 8px 10px;
        font-size: 17px;
    }

    .ask-product-content .ask-facts {
        font-size: 13px;
    }

    .ask-product-content .ask-facts th,
    .ask-product-content .ask-facts td {
        padding: 6px 8px;
    }
}
