/* Product page, tab "Характеристики" (product.tpl: .bgSpecs > .bgSpecsList > .bgSpecsRow > dt + dd).
   Separate file on purpose: product-page.css is included by header.tpl (frozen until 07.11.2026), its ?v= label cannot
   be raised, so a visitor with a cache would not get changes made there. This file is included from product.tpl with
   its own ?v= label. Palette and fonts as elsewhere on the page: cream #FFF8EF, line #F3E6D4, name #7A5A4A, value #311810. */

.bgPP .tabsDivs > .bgSpecs {
    padding: 10px 28px 12px;
}

/* group heading (only when the product has more than one group of attributes): Lora from bg-design.css */
.bgPP .bgSpecs .bgSpecsTitle {
    position: relative;
    margin: 24px -12px 4px;
    padding: 0 12px 9px 28px;
    border-bottom: 2px solid #F1D3AE;
    font-size: 19px;
    line-height: 1.25;
    text-align: left;
}

.bgPP .bgSpecs .bgSpecsTitle:before {
    content: "";
    position: absolute;
    left: 12px;
    top: 2px;
    width: 5px;
    height: 20px;
    border-radius: 3px;
    background: #FE8D0B;
}

.bgPP .bgSpecs .bgSpecsTitle:first-child {
    margin-top: 6px;
}

.bgSpecs .bgSpecsList {
    margin: 0;
    padding: 0;
}

/* a row: the name on the left in a fixed column, the value next to it; a thin line between the rows */
.bgSpecs .bgSpecsRow {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin: 0 -12px;
    padding: 10px 12px;
    border-bottom: 1px solid #F3E6D4;
}

.bgSpecs .bgSpecsRow:last-child {
    border-bottom-color: transparent;
}

.bgSpecs dt {
    flex: 0 0 40%;
    min-width: 0;
    max-width: 400px;
    margin: 0;
    padding: 0;
    color: #7A5A4A;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.bgSpecs dd {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #311810;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* a long value is a sentence, not a figure: regular weight so that the block stays readable */
.bgSpecs .bgSpecsLong dd {
    font-weight: normal;
    line-height: 1.6;
}

.bgSpecs dd img {
    max-width: 100%;
    height: auto;
}

.bgSpecs dd a {
    color: #B4520A;
}

@media (hover: hover) {
    .bgSpecs .bgSpecsRow:hover {
        background: #FFF8EF;
    }
}

/* tablets and phones: the name above the value, no side scrolling, no narrow columns */
@media only screen and (max-width: 767px) {
    .bgPP .tabsDivs > .bgSpecs {
        padding: 6px 14px 8px;
    }

    .bgPP .bgSpecs .bgSpecsTitle {
        margin: 18px -8px 2px;
        padding: 0 8px 8px 24px;
        font-size: 17px;
    }

    .bgPP .bgSpecs .bgSpecsTitle:before {
        left: 8px;
    }

    .bgSpecs .bgSpecsRow {
        display: block;
        margin: 0 -8px;
        padding: 10px 8px 11px;
    }

    .bgSpecs dt {
        max-width: none;
        margin: 0 0 3px;
        font-size: 13px;
        line-height: 1.4;
    }

    .bgSpecs dd {
        font-size: 15px;
    }
}
