/* FAQ Accordion */
.afaq-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--afaq-gap, 15px);
}

/* Item */
.afaq-item {
    background-color: var(--afaq-item-bg, #ffffff);
    border-width: var(--afaq-item-bw, 1px);
    border-style: solid;
    border-color: var(--afaq-item-bc, #e0e0e0);
    border-radius: var(--afaq-item-br, 8px);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.afaq-item.afaq-active {
    box-shadow: var(--afaq-item-sh-active, 0 2px 12px rgba(0,0,0,0.08));
}

/* Question (clickable header) */
.afaq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--afaq-q-pad, 20px 25px);
    cursor: pointer;
    user-select: none;
    gap: 15px;
}

.afaq-question:hover {
    opacity: 0.85;
}

.afaq-q-text {
    flex: 1;
    font-size: var(--afaq-q-size, 17px);
    font-weight: var(--afaq-q-weight, 600);
    color: var(--afaq-q-color, #333333);
    margin: 0;
}

/* Toggle icon */
.afaq-icon {
    flex-shrink: 0;
    width: var(--afaq-icon-size, 24px);
    height: var(--afaq-icon-size, 24px);
    position: relative;
    transition: transform 0.3s ease;
}

.afaq-icon::before,
.afaq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--afaq-icon-color, #666666);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Horizontal bar */
.afaq-icon::before {
    width: 100%;
    height: 2px;
    transform: translate(-50%, -50%);
}

/* Vertical bar (becomes + / −) */
.afaq-icon::after {
    width: 2px;
    height: 100%;
    transform: translate(-50%, -50%);
}

.afaq-active .afaq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* Answer */
.afaq-answer {
    display: none;
    padding: var(--afaq-a-pad, 0 25px 20px);
}

.afaq-answer-inner {
    font-size: var(--afaq-a-size, 15px);
    color: var(--afaq-a-color, #555555);
    line-height: 1.7;
}

.afaq-answer-inner p:first-child {
    margin-top: 0;
}

.afaq-answer-inner p:last-child {
    margin-bottom: 0;
}
