/* Cart Agent — Frontend FAQ Accordion */

.ca-product-faq {
    margin: 40px 0;
    font-family: inherit;
}

.ca-product-faq__title {
    font-size: 1.4em;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.ca-product-faq__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ca-product-faq__item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.ca-product-faq__item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ca-product-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.97em;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}

.ca-product-faq__question:hover,
.ca-product-faq__question.is-open {
    background: #f0f9ff;
    color: #0369a1;
}

.ca-product-faq__question span:first-child {
    flex: 1;
}

.ca-product-faq__chevron {
    flex-shrink: 0;
    font-size: 1.3em;
    color: #94a3b8;
    transform: rotate(0deg);
    transition: transform 0.25s ease, color 0.15s;
    display: inline-block;
}

.ca-product-faq__question.is-open .ca-product-faq__chevron {
    transform: rotate(90deg);
    color: #0369a1;
}

.ca-product-faq__answer {
    padding: 0 18px 16px;
    font-size: 0.92em;
    color: #475569;
    line-height: 1.65;
    border-top: 1px solid #f1f5f9;
}

.ca-product-faq__answer[hidden] {
    display: none;
}

.ca-product-faq__answer div {
    padding-top: 14px;
}

.ca-product-faq__answer p {
    margin: 0 0 8px;
}

.ca-product-faq__answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .ca-product-faq__question {
        padding: 12px 14px;
        font-size: 0.9em;
    }

    .ca-product-faq__answer {
        padding: 0 14px 14px;
        font-size: 0.88em;
    }
}
