/* WC Product FAQ - Frontend Styles */

.wcpfaq-container-frontend {
    margin: 40px 0;
    padding: 0;
}

.wcpfaq-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #0F172A;
    padding-bottom: 15px;
    border-bottom: 1px solid #E2E8F0;
}

.wcpfaq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wcpfaq-item {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}

.wcpfaq-item:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 16px rgba(15,23,42,0.08);
}

.wcpfaq-item.active {
    border-color: #0EA5E9;
    box-shadow: 0 4px 16px rgba(14,165,233,0.12);
}

.wcpfaq-question {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 15px;
}

.wcpfaq-question:hover {
    background: #F8FAFC;
}

.wcpfaq-item.active .wcpfaq-question {
    background: #F0F9FF;
}

.wcpfaq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wcpfaq-item.active .wcpfaq-icon {
    background: #0EA5E9;
    transform: rotate(180deg);
}

.wcpfaq-icon svg {
    width: 14px;
    height: 14px;
    color: #64748B;
    transition: color 0.3s ease;
}

.wcpfaq-item.active .wcpfaq-icon svg {
    color: #ffffff;
}

.wcpfaq-q-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #0F172A;
    line-height: 1.5;
}

.wcpfaq-item.active .wcpfaq-q-text {
    color: #0EA5E9;
}

.wcpfaq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wcpfaq-item.active .wcpfaq-answer {
    max-height: 1000px;
}

.wcpfaq-answer-inner {
    padding: 0 22px 22px 61px;
    color: #64748B;
    font-size: 15px;
    line-height: 1.7;
}

.wcpfaq-answer-inner p {
    margin: 0 0 12px 0;
}

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

.wcpfaq-answer-inner ul,
.wcpfaq-answer-inner ol {
    margin: 12px 0;
    padding-left: 20px;
}

.wcpfaq-answer-inner li {
    margin-bottom: 6px;
}

.wcpfaq-answer-inner a {
    color: #0EA5E9;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.wcpfaq-answer-inner a:hover {
    border-bottom-color: #0EA5E9;
}

/* Alternative Theme - Dark */
.wcpfaq-theme-dark .wcpfaq-container-frontend {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 16px;
}

.wcpfaq-theme-dark .wcpfaq-title {
    color: #ffffff;
    border-bottom-color: #2d2d44;
}

.wcpfaq-theme-dark .wcpfaq-item {
    background: #16162a;
    border-color: #2d2d44;
}

.wcpfaq-theme-dark .wcpfaq-item:hover {
    border-color: #3d3d5c;
}

.wcpfaq-theme-dark .wcpfaq-item.active {
    border-color: #6366f1;
}

.wcpfaq-theme-dark .wcpfaq-question:hover {
    background: #1f1f3a;
}

.wcpfaq-theme-dark .wcpfaq-item.active .wcpfaq-question {
    background: #1e1e45;
}

.wcpfaq-theme-dark .wcpfaq-icon {
    background: #2d2d44;
}

.wcpfaq-theme-dark .wcpfaq-item.active .wcpfaq-icon {
    background: #6366f1;
}

.wcpfaq-theme-dark .wcpfaq-icon svg {
    color: #9ca3af;
}

.wcpfaq-theme-dark .wcpfaq-q-text {
    color: #e5e7eb;
}

.wcpfaq-theme-dark .wcpfaq-item.active .wcpfaq-q-text {
    color: #a5b4fc;
}

.wcpfaq-theme-dark .wcpfaq-answer-inner {
    color: #9ca3af;
}

/* Minimal Theme */
.wcpfaq-theme-minimal .wcpfaq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
}

.wcpfaq-theme-minimal .wcpfaq-item:hover {
    box-shadow: none;
}

.wcpfaq-theme-minimal .wcpfaq-item.active {
    box-shadow: none;
    border-color: #e5e7eb;
}

.wcpfaq-theme-minimal .wcpfaq-question {
    padding: 20px 0;
}

.wcpfaq-theme-minimal .wcpfaq-question:hover {
    background: transparent;
}

.wcpfaq-theme-minimal .wcpfaq-item.active .wcpfaq-question {
    background: transparent;
}

.wcpfaq-theme-minimal .wcpfaq-answer-inner {
    padding: 0 0 20px 39px;
}

/* Responsive */
@media (max-width: 768px) {
    .wcpfaq-container-frontend {
        margin: 25px 0;
    }
    
    .wcpfaq-title {
        font-size: 20px;
    }
    
    .wcpfaq-question {
        padding: 15px 18px;
        gap: 12px;
    }
    
    .wcpfaq-q-text {
        font-size: 15px;
    }
    
    .wcpfaq-answer-inner {
        padding: 0 18px 18px 54px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wcpfaq-question {
        padding: 14px 15px;
        gap: 10px;
    }
    
    .wcpfaq-icon {
        width: 20px;
        height: 20px;
    }
    
    .wcpfaq-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .wcpfaq-q-text {
        font-size: 14px;
    }
    
    .wcpfaq-answer-inner {
        padding: 0 15px 15px 45px;
        font-size: 13px;
        line-height: 1.6;
    }
}
