.question-answers-block {
    box-sizing: border-box;
    width: 100%;
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;

    margin-bottom: 10px;
}

.question-answers-block.alignwide {
    max-width: var(--wp--style--global--wide-size, 1200px);
}

.question-answers-block.alignfull {
    max-width: none;
}

.question-answer-item {
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 0 15px;
    overflow: hidden;
    background: #fff;
}

.question-answer-item:last-child {
    margin-bottom: 0;
}

.question-answer-item > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.question-answer-item > summary::-webkit-details-marker {
    display: none;
}

.question-answer-item > summary::marker {
    display: none;
    content: "";
}

.question-answer-item > summary::after {
    content: "+";
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.question-answer-item[open] > summary::after {
    content: "−";
}

.question-answer-content {
    box-sizing: border-box;
    padding: 0 20px 20px;
}

.question-answer-content > :first-child {
    margin-top: 0;
}

.question-answer-content > :last-child {
    margin-bottom: 0;
}

/**
 * Paragraphs
 */
.question-answer-content p {
    margin-top: 0;
    margin-bottom: 1em;
}

/**
 * Lists
 */
.question-answer-content ul,
.question-answer-content ol {
    margin-top: 0;
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.question-answer-content ul {
    list-style: disc;
}

.question-answer-content ol {
    list-style: decimal;
}

.question-answer-content li {
    margin-bottom: 0.35em;
}

.question-answer-content li:last-child {
    margin-bottom: 0;
}

.question-answer-content li > ul,
.question-answer-content li > ol {
    margin-top: 0.35em;
    margin-bottom: 0;
}

/**
 * Headings
 */
.question-answer-content h2,
.question-answer-content h3,
.question-answer-content h4,
.question-answer-content h5,
.question-answer-content h6 {
    margin-top: 1.25em;
    margin-bottom: 0.6em;
}

.question-answer-content > h2:first-child,
.question-answer-content > h3:first-child,
.question-answer-content > h4:first-child,
.question-answer-content > h5:first-child,
.question-answer-content > h6:first-child {
    margin-top: 0;
}

/**
 * Quotes
 */
.question-answer-content blockquote {
    margin: 1em 0;
}

/**
 * Buttons
 */
.question-answer-content .wp-block-buttons {
    margin-top: 1em;
    margin-bottom: 1em;
}

@media (max-width: 1100px) {
    .question-answers-block:not(.alignwide):not(.alignfull) {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .question-answer-item > summary {
        padding: 14px 16px;
    }

    .question-answer-content {
        padding: 0 16px 16px;
    }
}