:root {
    interpolate-size: allow-keywords;
}

.tx-contentblocks-faq__items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tx-contentblocks-faq__item {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: #fff;
    overflow: clip;
}

.tx-contentblocks-faq__item + .tx-contentblocks-faq__item {
    margin-top: 0;
}

.tx-contentblocks-faq__question {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
}

.tx-contentblocks-faq__question::-webkit-details-marker {
    display: none;
}

.tx-contentblocks-faq__question::marker {
    content: '';
}

.tx-contentblocks-faq__question:hover,
.tx-contentblocks-faq__question:focus-visible {
    background-color: rgba(0, 0, 0, 0.025);
}

.tx-contentblocks-faq__question-text {
    flex: 1 1 auto;
}

.tx-contentblocks-faq__icon {
    flex: 0 0 auto;
    width: 0.75rem;
    height: 0.75rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-25%, -25%);
    transition: transform 0.25s ease;
}

.tx-contentblocks-faq__item[open] > .tx-contentblocks-faq__question .tx-contentblocks-faq__icon {
    transform: rotate(225deg) translate(-25%, -25%);
}

.tx-contentblocks-faq__answer {
    padding: 0 1.25rem 1.25rem;
}

.tx-contentblocks-faq__answer > *:first-child {
    margin-top: 0;
}

.tx-contentblocks-faq__answer > *:last-child {
    margin-bottom: 0;
}

.tx-contentblocks-faq__item::details-content {
    height: 0;
    opacity: 0;
    overflow: clip;
    transition: height 0.3s ease, content-visibility 0.3s ease allow-discrete, opacity 0.25s ease;
}

.tx-contentblocks-faq__item[open]::details-content {
    height: auto;
    opacity: 1;
}
