/* 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: #1a1a1a;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

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

.wcpfaq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wcpfaq-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wcpfaq-item.active {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.wcpfaq-question {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
    gap: 15px;
}

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

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

.wcpfaq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.wcpfaq-icon svg {
    width: 14px;
    height: 14px;
    color: #6b7280;
    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: #1f2937;
    line-height: 1.5;
}

.wcpfaq-item.active .wcpfaq-q-text {
    color: #1e40af;
}

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

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

.wcpfaq-answer-inner {
    padding: 0 22px 22px 61px;
    color: #4b5563;
    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: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.wcpfaq-answer-inner a:hover {
    border-bottom-color: #3b82f6;
}

/* 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;
    }
}
