/*
 * Trường Thịnh Child v3.19.63
 * Unified Featured Specs + Technical Specs frontend rows.
 * One logical specification = one visual table row.
 */
body.single-product .tt-product-spec-table-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: visible;
}

body.single-product .tt-product-spec-table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    border: 1px solid var(--tt-product-border, #e4e7ec) !important;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

body.single-product .tt-product-spec-table tr {
    display: table-row !important;
    width: 100% !important;
}

body.single-product .tt-product-spec-table th,
body.single-product .tt-product-spec-table td {
    display: table-cell !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 9px 11px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--tt-product-border, #e4e7ec) !important;
    vertical-align: top !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.45 !important;
}

body.single-product .tt-product-spec-table tr:last-child > th,
body.single-product .tt-product-spec-table tr:last-child > td {
    border-bottom: 0 !important;
}

body.single-product .tt-product-spec-table th {
    width: 36% !important;
    max-width: 36% !important;
    background: #f7f8fa !important;
    color: #344054 !important;
    font-weight: 700 !important;
}

body.single-product .tt-product-spec-table td {
    width: 64% !important;
    background: #fff !important;
    color: #475467 !important;
    font-weight: 500 !important;
}

body.single-product .tt-product-spec-table tr:nth-child(even) > td {
    background: #fcfcfd !important;
}

body.single-product .tt-product-spec-table__plain > td {
    width: 100% !important;
    background: #fff !important;
}

/* Purchase-summary featured specs now use the same table semantics as technical specs. */
body.single-product .tt-product-summary-highlights--table {
    width: 100%;
    margin: 0 0 14px;
    padding: 12px 13px 13px;
    border: 1px solid var(--tt-product-border, #e4e7ec);
    border-radius: 12px;
    background: #fafbfc;
}

body.single-product .tt-product-summary-highlights--table .tt-product-summary-highlights__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 9px;
    color: var(--tt-product-text, #182230);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

body.single-product .tt-product-summary-highlights--table .tt-product-summary-highlights__title::before {
    content: '';
    width: 4px;
    height: 16px;
    flex: 0 0 4px;
    border-radius: 999px;
    background: var(--tt-primary, #cb1c22);
}

body.single-product .tt-product-summary-highlights__table th,
body.single-product .tt-product-summary-highlights__table td {
    padding: 7px 9px !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
}

body.single-product .tt-product-summary-highlights__table th {
    width: 38% !important;
    max-width: 38% !important;
}

body.single-product .tt-product-summary-highlights__table td {
    width: 62% !important;
}

/* Technical accordion: same row system, slightly roomier for long values. */
body.single-product .tt-product-technical-specs .tt-product-spec-table th,
body.single-product .tt-product-technical-specs .tt-product-spec-table td {
    font-size: 14px !important;
}

/* Copy control injected by tt-single-product.js must not force rows onto one line. */
body.single-product .tt-product-spec-table tr.tt-content-copy-target {
    position: relative;
}
body.single-product .tt-product-spec-table tr.tt-content-copy-target > :last-child {
    padding-right: 56px !important;
}

@media (max-width: 849px) {
    body.single-product .tt-product-summary-highlights--table {
        padding: 10px;
        border-radius: 10px;
    }

    body.single-product .tt-product-spec-table {
        table-layout: fixed !important;
        border-radius: 9px;
    }

    body.single-product .tt-product-spec-table th,
    body.single-product .tt-product-spec-table td {
        padding: 8px 8px !important;
        font-size: 12.5px !important;
        line-height: 1.4 !important;
    }

    body.single-product .tt-product-spec-table th {
        width: 40% !important;
        max-width: 40% !important;
    }

    body.single-product .tt-product-spec-table td {
        width: 60% !important;
    }

    body.single-product .tt-product-summary-highlights__table th,
    body.single-product .tt-product-summary-highlights__table td {
        font-size: 12.25px !important;
    }

    body.single-product .tt-product-spec-table tr.tt-content-copy-target > :last-child {
        padding-right: 50px !important;
    }
}

@media (max-width: 420px) {
    body.single-product .tt-product-spec-table th {
        width: 42% !important;
        max-width: 42% !important;
    }
    body.single-product .tt-product-spec-table td {
        width: 58% !important;
    }
}

/* v3.19.63 — exactly one Copy + Search action group per specification block. */
body.single-product .tt-product-spec-table .tt-content-tools {
    display: none !important;
}

body.single-product .tt-spec-block-title-with-tools {
    position: relative;
    min-height: 28px;
    padding-right: 68px;
}

body.single-product .tt-spec-block-title-with-tools::before {
    flex: 0 0 4px;
}

body.single-product .tt-spec-block-title-with-tools .tt-spec-block-tools {
    position: absolute !important;
    top: 0;
    right: 0;
}

body.single-product .tt-spec-block-with-tools {
    position: relative;
    padding-top: 34px;
}

body.single-product .tt-spec-block-with-tools > .tt-spec-block-tools {
    position: absolute;
    top: 0;
    right: 0;
}

body.single-product .tt-spec-block-tools {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    z-index: 3;
}

body.single-product .tt-spec-block-tools .tt-content-tool {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px !important;
}

/* A spec row is content only. Never reserve a right-side icon column. */
body.single-product .tt-product-spec-table tr.tt-content-copy-target > :last-child,
body.single-product .tt-product-spec-table .tt-content-copy-cell {
    padding-right: 9px !important;
}

/* Long legacy featured text must wrap naturally after the frontend parser splits it. */
body.single-product .tt-product-summary-highlights__table td,
body.single-product .tt-product-summary-highlights__table th {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

@media (max-width: 849px) {
    body.single-product .tt-spec-block-with-tools {
        padding-top: 31px;
    }
    body.single-product .tt-spec-block-tools .tt-content-tool {
        width: 26px;
        height: 26px;
        min-width: 26px;
    }
    body.single-product .tt-product-spec-table tr.tt-content-copy-target > :last-child,
    body.single-product .tt-product-spec-table .tt-content-copy-cell {
        padding-right: 8px !important;
    }
}
