/* FAQ TOC przycisk toggle */

.faq-toc-parent-item {
    position: relative;
    padding-right: 26px;
}

.faq-toc-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    top: 10px;
    right: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    color: #2d4fbf;
    background: transparent;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    opacity: 0.55;
    transition: opacity 0.15s ease, outline-offset 0.1s ease;
}

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    background-color: #2d4fbf !important;
}

.faq-toc-toggle-btn::before {
    content: '+';
    pointer-events: none;
}

.faq-toc-toggle-btn[aria-expanded="true"]::before {
    content: '−';
}

.faq-toc-toggle-btn:hover {
    opacity: 1;
}

.faq-toc-toggle-btn:focus-visible {
    opacity: 1;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.faq-toc-toggle-btn:focus:not(:focus-visible) {
    outline: none;
}

.faq-toc-collapsible {
    display: block !important;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
}

.faq-toc-collapsible.is-expanded {
    max-height: 1000px;
}
