/**
 * Style zakładki "Technologie" (akordeon div.accordion > div.header + div.body) generowanej
 * przez modules/pcodeimport/classes/SuzukiScraper.php i wstawianej surowo
 * przez hookDisplayProductExtraContent (ProductExtraContent::setContent()).
 *
 * Moduł nie importuje _variables.scss motywu (ustalenie 2026-07-21) —
 * kolory wpisane jako surowe hexy.
 */

.pcode-tech {
    --pcode-tech-primary: #1a1a1a;
    --pcode-tech-primary-dark: #000000;
    --pcode-tech-bg-header: #f4f6f8;
    --pcode-tech-border: #dfe5ea;
    --pcode-tech-text: #1d2229;
    --pcode-tech-text-muted: #5a6674;
    --pcode-tech-radius: 10px;

    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--pcode-tech-text);
}

.pcode-tech .accordion {
    border: 1px solid var(--pcode-tech-border);
    border-radius: var(--pcode-tech-radius);
    overflow: hidden;
    background: #fff;
    margin-bottom:20px;
}

.pcode-tech .accordion .header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--pcode-tech-bg-header);
    cursor: pointer;
    list-style: none;
    -webkit-user-select: none;
    user-select: none;
}

.pcode-tech .accordion .header::after {
    content: '';
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-left: auto;
    border-right: 2px solid var(--pcode-tech-primary);
    border-bottom: 2px solid var(--pcode-tech-primary);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.pcode-tech .accordion.is-open > .header::after {
    transform: rotate(-135deg);
}

.pcode-tech .accordion__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.pcode-tech .accordion__icon img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}

.pcode-tech .accordion__desc {
    flex: 1 1 auto;
    color: var(--pcode-tech-text);
    font-size: 14px;
    line-height: 1.5;
}

/* Zwinięte domyślnie - <div> nie ma mechaniki <details>, rozwija JS klasą is-open */
.pcode-tech .accordion .body {
    display: none;
    padding: 16px 18px 20px;
    border-top: 1px solid var(--pcode-tech-border);
    color: var(--pcode-tech-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.pcode-tech .accordion.is-open .body {
    display: block;
}

.pcode-tech .accordion .body h3 {
    margin: 0 0 8px;
    color: var(--pcode-tech-primary-dark);
    font-size: 15px;
    text-transform: uppercase;
}

.pcode-tech .accordion .body ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.pcode-tech .accordion .body li {
    margin-bottom: 4px;
}

.pcode-tech .accordion .body figure {
    margin: 12px 0 0;
}

.pcode-tech .accordion .body figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pcode-tech-radius);
}
