/* HILDA — compact characteristics, no background */
body ul.hilda-loop-attrs,
body.single-product ul.hilda-key-attrs {
    list-style: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
}
body ul.hilda-loop-attrs {
    display: block !important;
    margin: 10px 0 12px !important;
}
body ul.hilda-loop-attrs li {
    display: block !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 4px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #17212b;
    overflow-wrap: anywhere;
}
body ul.hilda-loop-attrs li span {
    display: inline !important;
    color: #6b747d;
    font-weight: 400;
}
body ul.hilda-loop-attrs li span::after { content: ":" !important; }
body ul.hilda-loop-attrs li b {
    display: inline !important;
    font-weight: 500;
    color: #17212b;
}
body.single-product ul.hilda-key-attrs {
    margin: 12px 0 20px !important;
}
body.single-product ul.hilda-key-attrs li {
    display: grid !important;
    grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    list-style: none !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
body.single-product ul.hilda-key-attrs li + li { border-top: 0 !important; }
body.single-product ul.hilda-key-attrs li span { color: #6b747d; font-weight: 400; }
body.single-product ul.hilda-key-attrs li b { color: #17212b; font-weight: 500; }
body ul.hilda-loop-attrs li::before,
body.single-product ul.hilda-key-attrs li::before { content: none !important; }
@media (max-width: 781px) {
    body ul.hilda-loop-attrs { margin: 8px 0 10px !important; }
    body ul.hilda-loop-attrs li { font-size: 12px !important; line-height: 1.45 !important; }
    body.single-product ul.hilda-key-attrs li { font-size: 13px !important; gap: 10px; }
}
@media (max-width: 480px) {
    body ul.hilda-loop-attrs li { margin-bottom: 5px !important; }
}

/* Custom tabs content */
body.single-product .hilda-extra-tab-content {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    color: #17212b;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: break-word;
}
body.single-product .hilda-extra-tab-content h2 {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 20px;
}
body.single-product .hilda-extra-tab-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 14px;
}
body.single-product .hilda-extra-tab-content p {
    max-width: none;
    margin: 0 0 16px;
}
body.single-product .hilda-extra-tab-content ul,
body.single-product .hilda-extra-tab-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}
body.single-product .hilda-extra-tab-content ul { list-style: disc; }
body.single-product .hilda-extra-tab-content ol { list-style: decimal; }
body.single-product .hilda-extra-tab-content li { margin-bottom: 6px; }
body.single-product .hilda-extra-tab-content a { text-decoration: underline; text-underline-offset: 3px; }
body.single-product .hilda-extra-tab-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
body.single-product .hilda-extra-tab-content th,
body.single-product .hilda-extra-tab-content td { padding: 12px 16px; border: 1px solid #e4e6e8; text-align: left; vertical-align: top; }
body.single-product .hilda-extra-tab-content th { background: #f2f3f4; font-weight: 600; }

/* Tabs bar */
body.single-product .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
}
body.single-product .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
}
body.single-product .woocommerce-tabs ul.tabs li a {
    font-size: 15px;
    line-height: 1.3;
}

@media (max-width: 781px) {
    body.single-product .woocommerce-tabs ul.tabs {
        gap: 8px 12px;
    }
    body.single-product .woocommerce-tabs ul.tabs li a {
        font-size: 13px;
        white-space: normal;
    }
    body.single-product .hilda-extra-tab-content {
        font-size: 14px;
        line-height: 1.7;
    }
    body.single-product .hilda-extra-tab-content h2 {
        font-size: 22px;
    }
    body.single-product .hilda-extra-tab-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
    body.single-product .hilda-extra-tab-content td,
    body.single-product .hilda-extra-tab-content th {
        min-width: 100px;
        padding: 10px;
    }
}

/* Collapsible description: content stays in the original HTML. */
body.single-product #tab-description .hilda-description-clip { position: relative; display: flow-root; width: 100%; max-width: none !important; min-width: 0; box-sizing: border-box; }
body.single-product #tab-description .hilda-description-clip.is-collapsed { max-height: var(--hilda-description-height, 340px); overflow: hidden; }
body.single-product #tab-description .hilda-description-clip.is-collapsed::after { content: ''; position: absolute; inset: auto 0 0; height: 68px; background: linear-gradient(to bottom, transparent, var(--hilda-description-background, #fff)); pointer-events: none; }
body.single-product .hilda-description-control { display: flex; justify-content: center; margin: 16px 0 4px; }
body.single-product .hilda-description-control[hidden] { display: none !important; }
body.single-product .hilda-description-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; padding: 10px 20px; border: 1px solid #dfe2e5; border-radius: 8px; background: transparent; color: #17212b; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
body.single-product .hilda-description-toggle::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-top: -3px; }
body.single-product .hilda-description-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 3px; }
body.single-product .hilda-description-toggle:hover { border-color: #b7bdc3; background: #f2f3f4; }
body.single-product .hilda-description-toggle:focus-visible { outline: 2px solid #17212b; outline-offset: 3px; }

/* Compact trust panel, before recommendations. */
body.single-product .hilda-product-trust-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: 100%; max-width: none !important; min-width: 0; box-sizing: border-box; grid-column: 1 / -1; flex: 0 0 100%; clear: both; margin: 24px 0 32px; padding: 22px 24px; background: #f2f3f4; border: 0; border-radius: 12px; box-shadow: none; }
body.single-product .hilda-product-trust-item { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
body.single-product .hilda-product-trust-item > svg { width: 24px; height: 24px; flex: 0 0 24px; color: #17212b; margin-top: 1px; }
body.single-product .hilda-product-trust-copy { min-width: 0; }
body.single-product .hilda-product-trust-copy strong { display: block; font-size: 15px; line-height: 1.4; font-weight: 600; color: #17212b; }
body.single-product .hilda-product-trust-copy p { font-size: 13px; line-height: 1.5; color: #626d78; margin: 5px 0 6px !important; }
body.single-product .hilda-product-trust-copy a { font-size: 13px; color: #17212b; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 781px) {
    body.single-product .hilda-product-trust-compact { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; margin: 20px 0 24px; }
    body.single-product .hilda-product-trust-copy strong { font-size: 14px; }
    body.single-product .hilda-description-toggle { min-height: 44px; }
}
