/* ==========================================================================
   DB FAQ - Productos de la Sierra
   Accordion FAQ component
   ========================================================================== */

.dbfaqs {
    padding: 24px;
    border: 1px solid #EAECF0;
    border-radius: 8px;
    background: #fff;
}

/* Header */
.dbfaqs__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #EAECF0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #344054;
}

.dbfaqs__header svg {
    flex-shrink: 0;
    color: #4a7c59;
}

/* Items */
.dbfaqs__item {
    border-bottom: 1px solid #EAECF0;
}

.dbfaqs__item:last-child {
    border-bottom: none;
}

/* Trigger button */
.dbfaqs__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: color 0.2s ease;
}

.dbfaqs__trigger:focus {
    outline: none;
}

.dbfaqs__trigger:hover {
    color: #4a7c59;
}

/* Question text */
.dbfaqs__question {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 500;
    color: #344054;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.dbfaqs__trigger:hover .dbfaqs__question {
    color: #4a7c59;
}

/* Icon: plus/minus toggle */
.dbfaqs__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f2f4f7;
    color: #667085;
    transition: all 0.25s ease;
}

.dbfaqs__trigger:hover .dbfaqs__icon {
    background: #e8f0eb;
    color: #4a7c59;
}

/* When open: rotate the + to become x */
.dbfaqs__trigger:not(.collapsed) .dbfaqs__icon {
    background: #4a7c59;
    color: #fff;
    transform: rotate(45deg);
}

.dbfaqs__trigger:not(.collapsed) .dbfaqs__question {
    color: #4a7c59;
    font-weight: 600;
}

/* Answer area */
.dbfaqs__answer {
    padding: 0 0 16px 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #475467;
}

.dbfaqs__answer p {
    margin: 0;
    color: #475467;
}

.dbfaqs__answer ul {
    padding-left: 1.5rem;
    margin: 8px 0;
}

.dbfaqs__answer ul li {
    list-style: disc;
    font-size: 1rem;
    color: #475467;
    margin-bottom: 4px;
}

/* Collapse animation override for smoother transitions */
#dbfaq-accordion .collapse {
    transition: height 0.3s ease;
}

#dbfaq-accordion .collapsing {
    transition: height 0.3s ease;
}

/* Responsive */
@media (max-width: 767px) {
    .dbfaqs {
        padding: 16px;
    }

    .dbfaqs__trigger {
        padding: 14px 0;
    }

    .dbfaqs__question {
        font-size: 0.95rem;
    }

    .dbfaqs__answer {
        font-size: 0.9rem;
    }
}
