/**
 * Product FAQ - Frontend Styles
 */

.product-faq-section {
    padding: 35px 0 25px 0;
    margin-top: 20px;
    clear: both;
}

.product-faq-container {
    max-width: auto;
    margin: 0 auto;
}

.product-faq-header {
    margin-bottom: 25px;
}

.product-faq-header .tvcmsmain-title-wrapper {
    margin-bottom: 5px;
}

.product-faq-title-icon {
    vertical-align: -3px;
    margin-right: 8px;
    color: #a54fcf;
}

.product-faq-subtitle {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
}

/* FAQ List */
.product-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* FAQ Item Card */
.product-faq-item {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.product-faq-item:hover {
    border-color: #a54fcf;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.product-faq-item[open] {
    border-color: #a54fcf;
    box-shadow: 0 4px 15px rgba(255, 164, 0, 0.08);
}

/* Question Summary */
.product-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
    color: #22262d;
    background: #fff;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.product-faq-question::-webkit-details-marker {
    display: none;
}

.product-faq-question::marker {
    display: none;
}

.product-faq-question:hover {
    color: #a54fcf;
}

.product-faq-q-text {
    flex: 1;
    padding-right: 15px;
    line-height: 1.45;
}

/* Toggle Icon (+ / -) */
.product-faq-toggle-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22262d;
    transition: all 0.25s ease;
}

.product-faq-item:hover .product-faq-toggle-icon {
    background: #a54fcf;
    color: #22262d;
}

.product-faq-toggle-icon .icon-minus {
    display: none;
}

.product-faq-item[open] .product-faq-toggle-icon {
    background: #a54fcf;
    color: #22262d;
    transform: rotate(180deg);
}

.product-faq-item[open] .product-faq-toggle-icon .icon-plus {
    display: none;
}

.product-faq-item[open] .product-faq-toggle-icon .icon-minus {
    display: block;
}

/* Answer Content */
.product-faq-answer {
    padding: 0 22px 18px 22px;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    border-top: 1px solid #f2f2f2;
    animation: faqFadeIn 0.25s ease-in-out;
}

.product-faq-answer-inner {
    padding-top: 14px;
}

.product-faq-answer strong {
    color: #111827;
    font-weight: 600;
}

.product-faq-answer p {
    margin-bottom: 10px;
}

.product-faq-answer p:last-child {
    margin-bottom: 0;
}

.product-faq-answer ul,
.product-faq-answer ol {
    margin: 8px 0 12px 20px;
    padding-left: 5px;
}

.product-faq-answer li {
    margin-bottom: 5px;
}

.product-faq-answer a {
    color: #a54fcf;
    text-decoration: underline;
}

.product-faq-answer a:hover {
    color: #9f27db;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .product-faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }

    .product-faq-toggle-icon {
        width: 28px;
        height: 28px;
    }

    .product-faq-answer {
        padding: 0 16px 14px 16px;
        font-size: 13px;
    }
}