/**
 * FAQ Accordion Styles — Lotus Holistic Healthcares
 * Matches the screenshot design: teal questions, light dividers, caret icon.
 *
 * @package BlocksyChild
 */

/* ── Wrapper ── */
.lotus-faq-wrap {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
}

/* ── Item ── */
.lotus-faq-item {
    border-bottom: 1px solid #E0E0E0;
}

/* .lotus-faq-item:first-child {
    border-top: 1px solid #E0E0E0;
} */

/* ── Question button ── */
.lotus-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 4px;
    cursor: pointer;
    text-align: left;
    gap: 12px;
}

.lotus-faq-question:focus-visible {
    outline: 2px solid #2AA1AF;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Question text — teal colour matching the site's primary */
.lotus-faq-question__text {
    color: #2AA1AF;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    flex: 1;
}

/* ── Caret icon ── */
.lotus-faq-question__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #2AA1AF;
    position: relative;
    transition: transform 0.22s ease;
}

/* Down caret (closed state) */
.lotus-faq-question__icon::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-right: 2px solid #2AA1AF;
    border-bottom: 2px solid #2AA1AF;
    transform: rotate(45deg) translateY(-3px);
    position: absolute;
    top: 3px;
    left: 4px;
    transition: transform 0.22s ease;
}

/* Up caret (open state) */
.lotus-faq-item--open .lotus-faq-question__icon::before {
    transform: rotate(-135deg) translateY(-3px);
    top: 7px;
}

/* ── Answer panel ── */
.lotus-faq-answer {
    overflow: hidden;
}

.lotus-faq-answer[hidden] {
    display: none;
}

.lotus-faq-answer__inner {
    padding: 0 4px 18px;
    color: #444444;
    font-size: 15px;
    line-height: 1.7;
}

.lotus-faq-answer__inner p {
    margin: 0 0 0.6em;
}

.lotus-faq-answer__inner p:last-child {
    margin-bottom: 0;
}

/* ── Admin notice (shortcode empty state, admins only) ── */
.lotus-faq-notice {
    color: #7a5c00;
    background: #fff8e1;
    border-left: 4px solid #f0a500;
    padding: 8px 14px;
    font-size: 14px;
    margin: 0;
}

/* ── Animate open/close ── */
.lotus-faq-answer--animating {
    display: block !important;
    overflow: hidden;
    transition: height 0.25s ease;
}
