/* ============================================
   АДАПТИВНЫЕ ТАБЛИЦЫ В FIGURE ОБЕРТКЕ
=============================================== */

/* ОБЕРТКА FIGURE - СКРОЛЛ НА МОБИЛЬНЫХ */
figure.specs-figure-wrapper {
    display: block;
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border: none;
}

/* САМА ТАБЛИЦА - ДЕСКТОПНАЯ ВЕРСИЯ */
figure.specs-figure-wrapper > table[id^="specs-table-"] {
    min-width: 850px;
    border: 2px solid #2445a2 !important;
    border-collapse: collapse !important;
    background: white !important;
    color: black !important;
    width: 100% !important;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin: 0 auto;
}

/* ЗАГОЛОВКИ*/
figure.specs-figure-wrapper > table[id^="specs-table-"] thead tr {
    /* Мы удалили синий фон и белый текст */
}

figure.specs-figure-wrapper > table[id^="specs-table-"] th {
    padding: 4px 4px !important; /* Уменьшили с 12px до 4px */
    line-height: 1.1 !important;  /* Сжали межстрочный интервал */
    border: 1px solid #1a3580 !important;
    font-weight: bold !important;
    text-align: center !important;
    font-size: 13px !important;   /* Можно чуть уменьшить шрифт */
    /* Убрали background и color, чтобы можно было менять в HTML */
}

/* ЯЧЕЙКИ */
figure.specs-figure-wrapper > table[id^="specs-table-"] td {
    padding: 3px 4px !important; /* Уменьшили с 10px до 3px */
    line-height: 1.1 !important;  /* Сжали текст */
    height: 1px !important;      /* Трюк для заставления ячейки сжаться до минимума */
    border: 1px solid #ddd !important;
    text-align: center !important;
    vertical-align: middle !important;
    background: white !important;
    font-size: 13px !important;
}

/* ПЕРВАЯ КОЛОНКА */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child {
    text-align: left !important;
    padding: 3px 6px !important; /* Сделали компактно */
    font-weight: bold !important;
}

figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
    color: #2445a2 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

/* ЦЕНА */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-last-child(2) {
    color: #d0121a !important;
    font-weight: bold !important;
    font-size: 15px !important;
}

/* НАЛИЧИЕ */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:last-child span {
    display: inline-block !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    min-width: 90px !important;
}

/* ЧЕТНЫЕ СТРОКИ */
figure.specs-figure-wrapper > table[id^="specs-table-"] tbody tr:nth-child(even) {
    background: #f8f9fa !important;
}

figure.specs-figure-wrapper > table[id^="specs-table-"] tbody tr:nth-child(even) td {
    background: #f8f9fa !important;
}

/* ХОВЕР */
figure.specs-figure-wrapper > table[id^="specs-table-"] tbody tr:hover {
    background: #e8f4ff !important;
}

figure.specs-figure-wrapper > table[id^="specs-table-"] tbody tr:hover td {
    background: #e8f4ff !important;
}

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ (СКРОЛЛ)
=============================================== */
@media (max-width: 768px) {
    /* ОБЕРТКА - СКРОЛЛ */
    figure.specs-figure-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 15px 0 !important;
        padding: 10px !important;
        background: white !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        position: relative;
    }
    
    /* СКРОЛЛ-ИНДИКАТОР (градиенты по бокам) */
    figure.specs-figure-wrapper::before,
    figure.specs-figure-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        pointer-events: none;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    figure.specs-figure-wrapper::before {
        left: 0;
        background: linear-gradient(90deg, rgba(0,0,0,0.08), transparent);
    }
    
    figure.specs-figure-wrapper::after {
        right: 0;
        background: linear-gradient(270deg, rgba(0,0,0,0.08), transparent);
    }
    
    figure.specs-figure-wrapper.scroll-left::before,
    figure.specs-figure-wrapper.scroll-right::after {
        opacity: 1;
    }
    
    /* ТАБЛИЦА ВНУТРИ ОБЕРТКИ */
    figure.specs-figure-wrapper > table[id^="specs-table-"] {
        min-width: 800px !important;
        margin: 0 !important;
        font-size: 12px !important;
        border: 2px solid #2445a2 !important;
    }
    
    /* УМЕНЬШАЕМ ШРИФТЫ */
    figure.specs-figure-wrapper > table[id^="specs-table-"] th {
        padding: 8px 4px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td {
        padding: 7px 4px !important;
        font-size: 11px !important;
    }
    
    /* ПЕРВАЯ КОЛОНКА - МЕНЬШЕ */
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child {
        min-width: 85px !important;
        max-width: 95px !important;
        font-size: 11px !important;
        padding: 7px 6px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
        font-size: 11px !important;
        max-width: 85px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
    
    /* ФИКСИРОВАННАЯ ПЕРВАЯ КОЛОНКА */
    figure.specs-figure-wrapper > table[id^="specs-table-"] thead tr th:first-child {
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        z-index: 10;
        background: #2445a2 !important;
        min-width: 85px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] tbody tr td:first-child {
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        z-index: 5;
        background: white !important;
        border-right: 2px solid #2445a2 !important;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    /* ЧЕТНЫЕ СТРОКИ - ПЕРВАЯ КОЛОНКА */
    figure.specs-figure-wrapper > table[id^="specs-table-"] tbody tr:nth-child(even) td:first-child {
        background: #f8f9fa !important;
    }
    
    /* ХОВЕР - ПЕРВАЯ КОЛОНКА */
    figure.specs-figure-wrapper > table[id^="specs-table-"] tbody tr:hover td:first-child {
        background: #e8f4ff !important;
    }
    
    /* ЦЕНА И НАЛИЧИЕ */
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-last-child(2) {
        font-size: 13px !important;
        white-space: nowrap !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:last-child span {
        padding: 3px 8px !important;
        font-size: 10px !important;
        min-width: 70px !important;
    }
    
    /* ПОДСКАЗКА О СКРОЛЛЕ */
    figure.specs-figure-wrapper::before {
        content: "";
        display: none;
    }
    
    /* Текстовая подсказка внизу */
    figure.specs-figure-wrapper::after {
        content: "← → Перетащите для прокрутки таблицы";
        position: static;
        display: block;
        text-align: center;
        margin-top: 12px;
        padding: 10px;
        background: #f0f8ff;
        color: #2445a2;
        font-size: 12px;
        border-radius: 6px;
        font-style: italic;
        border: 1px dashed #a0c8ff;
        width: auto;
        height: auto;
        background-image: none;
        opacity: 1;
    }
}

/* ============================================
   ПЛАНШЕТЫ (769px - 1024px)
=============================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    figure.specs-figure-wrapper {
        overflow-x: auto !important;
        padding: 15px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] {
        min-width: 900px !important;
        font-size: 13px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] th {
        padding: 10px 6px !important;
        font-size: 12px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }
}

/* ============================================
   ДЕСКТОП (1025px+)
=============================================== */
@media (min-width: 1025px) {
    figure.specs-figure-wrapper {
        overflow: visible !important;
        padding: 0 !important;
        margin: 25px 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    
    figure.specs-figure-wrapper::after {
        display: none !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] {
        display: table;
        margin: 0 auto;
    }
}

/* ============================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 480px)
=============================================== */
@media (max-width: 480px) {
    figure.specs-figure-wrapper {
        padding: 8px 5px !important;
        margin: 10px 0 !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] {
        min-width: 750px !important;
        font-size: 11px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] th {
        padding: 6px 3px !important;
        font-size: 10px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td {
        padding: 5px 3px !important;
        font-size: 10px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child {
        min-width: 80px !important;
        font-size: 10px !important;
        padding: 5px 4px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
        font-size: 10px !important;
        max-width: 75px;
    }
    
    figure.specs-figure-wrapper::after {
        font-size: 11px !important;
        padding: 8px !important;
        margin-top: 10px !important;
    }
}
/* ============================================
   ИСПРАВЛЕНИЕ РАЗМЕРОВ ШРИФТОВ
   Принудительно задаем одинаковые шрифты во всех элементах
=============================================== */

/* ОБЕРТКА - сбрасываем все наследуемые стили шрифтов */
figure.specs-figure-wrapper,
figure.specs-figure-wrapper * {
    font-family: Arial, sans-serif !important;
    line-height: 1.4 !important;
    font-style: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* САМА ТАБЛИЦА - базовые стили */
figure.specs-figure-wrapper > table[id^="specs-table-"] {
    font-size: 14px !important;
    color: #000000 !important;
    text-align: center !important;
}

/* ЗАГОЛОВКИ ТАБЛИЦЫ */
figure.specs-figure-wrapper > table[id^="specs-table-"] thead tr {
    font-size: 14px !important;
    font-weight: bold !important;
    text-align: center !important;
}

figure.specs-figure-wrapper > table[id^="specs-table-"] th {
    font-size: 14px !important;
    font-weight: bold !important;
    text-align: center !important;
    
}

/* ЯЧЕЙКИ ТАБЛИЦЫ - ОДИНАКОВЫЙ СТИЛЬ */
figure.specs-figure-wrapper > table[id^="specs-table-"] td {
    font-size: 14px !important;
    font-weight: normal !important;
    text-align: center !important;
    color: #000000 !important;
    vertical-align: middle !important;
}

/* СБРАСЫВАЕМ ВСЕ СТИЛИ ВНУТРИ ЯЧЕЕК */
figure.specs-figure-wrapper > table[id^="specs-table-"] td * {
    font-size: inherit !important;
    font-weight: inherit !important;
    font-style: normal !important;
    color: inherit !important;
    text-align: inherit !important;
    line-height: inherit !important;
}

/* Особые случаи: em, strong, span */
figure.specs-figure-wrapper > table[id^="specs-table-"] td em,
figure.specs-figure-wrapper > table[id^="specs-table-"] td i {
    font-style: italic !important;
    font-size: inherit !important;
}

figure.specs-figure-wrapper > table[id^="specs-table-"] td strong,
figure.specs-figure-wrapper > table[id^="specs-table-"] td b {
    font-weight: bold !important;
    font-size: inherit !important;
}

figure.specs-figure-wrapper > table[id^="specs-table-"] td span {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

/* ССЫЛКИ в первой колонке */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #2445a2 !important;
    text-decoration: underline !important;
    font-style: normal !important;
}

/* ПАРАГРАФЫ внутри ячеек (если есть <p>) */
figure.specs-figure-wrapper > table[id^="specs-table-"] td p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ - единые размеры шрифтов
=============================================== */
@media (max-width: 768px) {
    figure.specs-figure-wrapper,
    figure.specs-figure-wrapper * {
        font-size: 12px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] {
        font-size: 12px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] th {
        font-size: 11px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td {
        font-size: 11px !important;
    }
    
    /* ВСЕ элементы внутри ячеек получают одинаковый размер */
    figure.specs-figure-wrapper > table[id^="specs-table-"] td * {
        font-size: 11px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
        font-size: 11px !important;
    }
    
    /* em и strong наследуют базовый размер */
    figure.specs-figure-wrapper > table[id^="specs-table-"] td em,
    figure.specs-figure-wrapper > table[id^="specs-table-"] td strong {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    figure.specs-figure-wrapper,
    figure.specs-figure-wrapper * {
        font-size: 11px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] {
        font-size: 11px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] th {
        font-size: 10px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td {
        font-size: 10px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td * {
        font-size: 10px !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
        font-size: 10px !important;
    }
}
/* ДОПОЛНИТЕЛЬНО: если используются классы для акционных цен */

/* Старая цена с классом .old-price */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-last-child(2) .old-price,
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-last-child(2) .old_price {
    color: #666666 !important;
    font-size: 12px !important;
    font-weight: normal !important;
    text-decoration: line-through !important;
    opacity: 0.7;
    display: inline-block;
    margin-right: 5px;
}

/* Новая цена с классом .new-price */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-last-child(2) .new-price,
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-last-child(2) .new_price,
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-last-child(2) .price.special {
    color: #d0121a !important;
    font-size: 15px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    margin-left: 5px;
}

/* Если цена в отдельном span без класса */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-last-child(2) span {
    /* Это для обычных span в цене, не переопределяет другие стили */
    font-size: inherit;
    color: inherit;
}

/* Перечеркнутый span */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-last-child(2) span[style*="line-through"],
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-last-child(2) span[style*="text-decoration: line-through"] {
    color: #666666 !important;
    font-size: 12px !important;
    font-weight: normal !important;
    text-decoration: line-through !important;
    opacity: 0.7;
}
/* ============================================
   ИСПРАВЛЕНИЕ ПЕРВОЙ КОЛОНКИ - ПЕРНОС ТЕКСТА
=============================================== */

/* ПЕРВАЯ КОЛОНКА - разрешаем перенос текста */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child {
    text-align: left !important;
    padding-left: 12px !important;
    font-weight: bold !important;
    background: white !important;
    word-wrap: break-word !important; /* Перенос длинных слов */
    word-break: break-word !important; /* Перенос по словам */
    overflow-wrap: break-word !important; /* Современный перенос */
    hyphens: auto !important; /* Автоматические переносы (если поддерживается) */
    white-space: normal !important; /* Разрешаем перенос строк */
    min-width: 100px !important; /* Минимальная ширина */
    max-width: 150px !important; /* Максимальная ширина для контроля */
}

/* ССЫЛКИ В ПЕРВОЙ КОЛОНКЕ - тоже разрешаем перенос */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
    color: #2445a2 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    display: inline-block;
    max-width: 100%; /* Чтобы не выходила за пределы ячейки */
    line-height: 1.3 !important; /* Увеличим межстрочный интервал для читаемости */
}

/* Убираем text-overflow: ellipsis если он был */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
    text-overflow: clip !important; /* Убираем троеточие */
    overflow: visible !important; /* Показываем весь текст */
}

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ - адаптируем переносы
=============================================== */
@media (max-width: 768px) {
    /* ПЕРВАЯ КОЛОНКА НА МОБИЛЬНЫХ */
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child {
        min-width: 90px !important;
        max-width: 120px !important; /* Увеличим максимальную ширину */
        font-size: 11px !important;
        padding: 8px 6px !important; /* Увеличим padding для лучшего вида */
        line-height: 1.4 !important;
        white-space: normal !important; /* Важно: разрешаем перенос */
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* ССЫЛКИ НА МОБИЛЬНЫХ */
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
        font-size: 11px !important;
        white-space: normal !important; /* Разрешаем перенос */
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        text-overflow: clip !important;
        max-width: 100% !important;
        line-height: 1.4 !important;
        display: inline !important; /* или inline-block */
    }
    
    /* Убираем старые стили с обрезанием текста */
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
        /* Убираем эти свойства если они есть */
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    /* Фиксированная первая колонка - адаптируем высоту */
    figure.specs-figure-wrapper > table[id^="specs-table-"] tbody tr td:first-child {
        position: -webkit-sticky;
        position: sticky;
        left: 0;
        z-index: 5;
        background: white !important;
        border-right: 2px solid #2445a2 !important;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        height: auto !important; /* Автоматическая высота */
        min-height: 40px; /* Минимальная высота для 2 строк */
    }
    
    /* Увеличиваем высоту строк для вмещения перенесенного текста */
    figure.specs-figure-wrapper > table[id^="specs-table-"] tbody tr {
        min-height: 40px; /* Минимальная высота строки */
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td {
        padding: 8px 4px !important; /* Увеличим padding для высоты */
        vertical-align: top !important; /* Выравнивание по верху для многострочного текста */
    }
}

/* ============================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 480px)
=============================================== */
@media (max-width: 480px) {
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child {
        min-width: 80px !important;
        max-width: 100px !important;
        font-size: 10px !important;
        padding: 6px 4px !important;
        line-height: 1.3 !important;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
    
    /* Уменьшаем минимальную высоту строк */
    figure.specs-figure-wrapper > table[id^="specs-table-"] tbody tr {
        min-height: 35px;
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] tbody tr td:first-child {
        min-height: 35px;
    }
}

/* ============================================
   ДЕСКТОП - тоже настраиваем переносы
=============================================== */
@media (min-width: 1025px) {
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child {
        max-width: 180px !important; /* На десктопе можно больше */
        line-height: 1.4 !important;
        padding: 12px 10px !important; /* Больше padding для многострочного текста */
    }
    
    figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    /* Увеличиваем высоту строк на десктопе если нужно */
    figure.specs-figure-wrapper > table[id^="specs-table-"] tbody tr {
        min-height: 45px;
    }
}

/* ============================================
   ОСОБЫЙ СЛУЧАЙ: если в названии модели есть дефисы
=============================================== */

/* Автоматические переносы в местах дефисов и точек */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child,
figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child a {
    word-break: break-word !important; /* Перенос в любом месте слова */
    overflow-wrap: anywhere !important; /* Современная альтернатива */
}

/* Для лучшего контроля переносов в длинных моделях */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:first-child .model-name {
    display: inline-block;
    max-width: 100%;
}

/* ============================================
   УНИВЕРСАЛЬНЫЙ РЕШЕНИЕ ДЛЯ ВСЕХ ТАБЛИЦ
=============================================== */

/* Если нужно применить ко всем таблицам на сайте с длинным текстом */
table td.long-text,
table td:first-child {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* Отключаем переносы в других колонках (где не нужно) */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:not(:first-child) {
    white-space: nowrap; /* В других колонках текст в одну строку */
}
/* САМЫЙ ПРОСТОЙ ФИКС */
/* 1. Синий цвет для всего текста в первой колонке */
figure.specs-figure-wrapper table td:first-child {
    color: #2445a2 !important;
}

/* 2. Одинаковый размер для всех облачков */
figure.specs-figure-wrapper table td:last-child span {
    font-size: 13px !important;
    padding: 5px 10px !important;
    min-width: 90px !important;
    display: inline-block !important;
    text-align: center !important;
    border-radius: 4px !important;
}

@media (max-width: 768px) {
    figure.specs-figure-wrapper table td:last-child span {
        font-size: 11px !important;
        padding: 4px 8px !important;
        min-width: 75px !important;
    }
}
/* 1. Убираем красный цвет у текста "Длина" */
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-child(2),
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-child(3),
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-child(4),
figure.specs-figure-wrapper > table[id^="specs-table-"] td:nth-child(5) {
    color: #000000 !important; /* Черный цвет вместо красного */
    font-weight: normal !important;
}
/* Добавьте td в список, чтобы у обычных ячеек тоже была рамка */
figure.specs-figure-wrapper > table[id^="specs-table-"] th,
figure.specs-figure-wrapper > table[id^="specs-table-"] td {
    border: 1px solid #999 !important;
}