/* DESCRIPTION: Frontend styles for the FAQ shortcode section
 * and the [wedocs_faq] shortcode output. */

.wedocs-faq-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.wedocs-faq-section__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.wedocs-faq-group {
    margin-bottom: 24px;
}

.wedocs-faq-group__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wedocs-faq-group__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.wedocs-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.wedocs-faq-item__question {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wedocs-faq-item__question::-webkit-details-marker {
    display: none;
}

.wedocs-faq-item__question::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.wedocs-faq-item[open] .wedocs-faq-item__question::after {
    content: '\2212';
}

.wedocs-faq-item__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.wedocs-faq-item[open] .wedocs-faq-item__answer {
    grid-template-rows: 1fr;
}

.wedocs-faq-item__answer-inner {
    overflow: hidden;
    padding: 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.wedocs-faq-item[open] .wedocs-faq-item__answer-inner {
    padding-bottom: 14px;
}
