/**
 * CategoryContent FAQ Widget Styles
 * Copyright © 2026 Moogento. All rights reserved.
 *
 * BEM naming convention: .moo-powercat-faq-widget__element--modifier
 * Includes 5 style variants: default, card, minimal, tabbed, nested
 * Animation inspired by CodePen examples
 */

/* ============================================
   CSS Custom Properties (Theme Variables)
   ============================================ */
.moo-powercat-faq-widget {
    --faq-font-family: inherit;
    --faq-font-size: 16px;
    --faq-line-height: 1.6;

    /* Colors */
    --faq-text-color: #333;
    --faq-text-muted: #666;
    --faq-bg: #fff;
    --faq-border-color: #e0e0e0;
    --faq-accent-color: #0066cc;
    --faq-hover-bg: #f5f7fa;

    /* Spacing */
    --faq-gap: 1rem;
    --faq-padding: 1.5rem 2.2rem;
    --faq-border-radius: 8px;

    /* Animation */
    --faq-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --faq-icon-size: 24px;

    /* Shadows */
    --faq-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --faq-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Base Widget Styles
   ============================================ */
.moo-powercat-faq-widget {
    font-family: var(--faq-font-family);
    font-size: var(--faq-font-size);
    line-height: var(--faq-line-height);
    color: var(--faq-text-color);
    max-width: 100%;
    margin: 2rem 0;
}

.moo-powercat-faq-widget * {
    box-sizing: border-box;
}

.moo-powercat-faq-widget .faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--faq-gap);
}

/* ============================================
   FAQ Item Base
   ============================================ */
.moo-powercat-faq-widget .faq-item {
    border: 1px solid var(--faq-border-color);
    border-radius: var(--faq-border-radius);
    background: var(--faq-bg);
    overflow: hidden;
    transition: box-shadow var(--faq-transition), border-color var(--faq-transition);
}

.moo-powercat-faq-widget .faq-item:hover {
    border-color: var(--faq-accent-color);
}

/* ============================================
   FAQ Question (Trigger)
   ============================================ */
.moo-powercat-faq-widget .faq-question {
    padding: var(--faq-padding);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--faq-bg);
    transition: background var(--faq-transition);
    user-select: none;
}

.moo-powercat-faq-widget .faq-question:hover {
    background: var(--faq-hover-bg);
}

.moo-powercat-faq-widget .faq-question.active {
    background: var(--faq-hover-bg);
}

.moo-powercat-faq-widget .faq-question span,
.moo-powercat-faq-widget .faq-question-text {
    flex: 1;
    font-weight: 400;
    font-size: 1.05em;
    margin: 0;
}

.moo-powercat-faq-widget .faq-answer span {
    font-weight: 300;
}

.moo-powercat-faq-widget .faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.moo-powercat-faq-widget .faq-toggle:focus {
    outline: 2px solid var(--faq-accent-color);
    outline-offset: 2px;
}

/* ============================================
   FAQ Answer (Content)
   ============================================ */
.moo-powercat-faq-widget .faq-answer {
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    padding: 0 !important;
}

.moo-powercat-faq-widget .faq-answer.is-open {
    opacity: 1;
    /* max-height is set by JS, but fail-safe here */
    max-height: 9999px;
}

.moo-powercat-faq-widget .faq-content {
    padding: 1.25rem 2rem;
    color: var(--faq-text-muted);
    border-top: 1px solid var(--faq-border-color);
    padding-top: var(--faq-padding);
}

.moo-powercat-faq-widget .faq-content p:first-child {
    margin-top: 0;
}

.moo-powercat-faq-widget .faq-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Icons - Plus/Minus (Default)
   Inspired by CodePen: https://codepen.io/dfitzy/pen/JGVzoX
   ============================================ */
.moo-powercat-faq-widget .faq-question .faq-icon {
    position: relative;
    width: var(--faq-icon-size);
    height: var(--faq-icon-size);
    flex: 0 0 auto;
}

.moo-powercat-faq-widget.icon-plus-minus .faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.moo-powercat-faq-widget.icon-plus-minus .faq-icon::before,
.moo-powercat-faq-widget.icon-plus-minus .faq-icon::after {
    content: '';
    position: absolute;
    background: var(--faq-accent-color);
    transition: transform var(--faq-transition);
}

.moo-powercat-faq-widget.icon-plus-minus .faq-icon::before {
    width: 14px;
    height: 2px;
}

.moo-powercat-faq-widget.icon-plus-minus .faq-icon::after {
    width: 2px;
    height: 14px;
}

/* Rotate the vertical line to horizontal on active (makes it a minus) */
.moo-powercat-faq-widget.icon-plus-minus .faq-question.active .faq-icon::after {
    transform: rotate(90deg);
}

/* Optional: slight rotation effect on the whole icon */
.moo-powercat-faq-widget.icon-plus-minus .faq-question.active .faq-icon {
    transform: rotate(180deg);
}

/* ============================================
   Icons - Chevron
   ============================================ */
.moo-powercat-faq-widget.icon-chevron .faq-icon::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--faq-accent-color);
    border-bottom: 2px solid var(--faq-accent-color);
    transform: rotate(45deg);
    top: 4px;
    left: 7px;
    transition: transform var(--faq-transition);
}

.moo-powercat-faq-widget.icon-chevron .faq-question.active .faq-icon::before {
    transform: rotate(-135deg);
    top: 10px;
}

/* ============================================
   Icons - Arrow
   ============================================ */
.moo-powercat-faq-widget.icon-arrow .faq-icon::before {
    content: '→';
    font-size: 18px;
    color: var(--faq-accent-color);
    transition: transform var(--faq-transition);
    display: block;
}

.moo-powercat-faq-widget.icon-arrow .faq-question.active .faq-icon::before {
    transform: rotate(90deg);
}

/* ============================================
   Icons - None
   ============================================ */
.moo-powercat-faq-widget.icon-none .faq-icon {
    display: none;
}

/* ============================================
   STYLE: Default
   Clean accordion with subtle styling
   ============================================ */
.moo-powercat-faq-widget.style-default {
    /* Default style uses base styles - ensure explicit selector exists for specificity */
    display: block;
}

/* ============================================
   STYLE: Card
   Elevated cards with shadows
   ============================================ */
.moo-powercat-faq-widget.style-card {
    --faq-gap: 1.25rem;
}

.moo-powercat-faq-widget.style-card .faq-item {
    border: none;
    box-shadow: var(--faq-shadow);
    border-radius: 12px;
}

.moo-powercat-faq-widget.style-card .faq-item:hover {
    box-shadow: var(--faq-shadow-hover);
    transform: translateY(-2px);
}

.moo-powercat-faq-widget.style-card .faq-question {
    padding: 1.5rem;
}

.moo-powercat-faq-widget.style-card .faq-content {
    border-top: none;
    background: linear-gradient(180deg, var(--faq-hover-bg) 0%, var(--faq-bg) 100%);
    padding: 1.5rem;
}

/* ============================================
   STYLE: Minimal
   Borderless with simple dividers
   ============================================ */
.moo-powercat-faq-widget.style-minimal {
    --faq-gap: 0;
}

.moo-powercat-faq-widget.style-minimal .faq-item {
    border: none;
    border-radius: 4px;
    border-bottom: 1px solid var(--faq-border-color);
    margin: 5px 0;
}

.moo-powercat-faq-widget.style-minimal .faq-item:last-child {
    border-bottom: none;
}

.moo-powercat-faq-widget.style-minimal .faq-item:hover {
    border-color: var(--faq-border-color);
}

.moo-powercat-faq-widget.style-minimal .faq-question {
    padding: 1.25rem 0;
}

.moo-powercat-faq-widget.style-minimal .faq-content {
    border-top: none;
    padding: 0 0 1.5rem;
}

/* ============================================
   STYLE: Glass
   Glassmorphism with blur effect
   ============================================ */
.moo-powercat-faq-widget.style-glass {
    --faq-gap: 1rem;
}

.moo-powercat-faq-widget.style-glass .faq-item {
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.moo-powercat-faq-widget.style-glass .faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    pointer-events: none;
}

.moo-powercat-faq-widget.style-glass .faq-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.8),
            transparent,
            rgba(255, 255, 255, 0.3));
    pointer-events: none;
}

.moo-powercat-faq-widget.style-glass .faq-item:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    transition: all 0.3s;
}

.moo-powercat-faq-widget.style-glass .faq-item a {
    color: #68daff;
}

.moo-powercat-faq-widget.style-glass .faq-item a:hover {
    color: #45d1ff;
    font-style: normal;
    border-bottom: 1px dotted #45d1ff;
    text-decoration: none;
}

.moo-powercat-faq-widget.style-glass .faq-question {
    padding: 1.25rem 1.5rem;
    background: transparent;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.moo-powercat-faq-widget.style-glass .faq-question:hover,
.moo-powercat-faq-widget.style-glass .faq-question.active {
    background: rgba(255, 255, 255, 0.1);
}

.moo-powercat-faq-widget.style-glass .faq-content {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.55rem 1.5rem 1.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.moo-faq-hero-sidebar .moo-powercat-faq-widget.style-glass .faq-content {
    padding: 1.75rem 1.5rem;
}

.moo-powercat-faq-widget.style-glass .faq-icon::before,
.moo-powercat-faq-widget.style-glass .faq-icon::after {
    background: rgba(255, 255, 255, 0.8);
}

.moo-powercat-faq-widget.style-glass.icon-chevron .faq-icon::before {
    border-color: rgba(255, 255, 255, 0.8);
}

.moo-powercat-faq-widget.style-glass.icon-arrow .faq-icon::before {
    color: rgba(255, 255, 255, 0.8);
}

.moo-powercat-faq-widget.style-minimal .faq-question:hover {
    background: transparent;
}

.moo-powercat-faq-widget.style-minimal .faq-question span {
    color: var(--faq-accent-color);
}

/* ============================================
   LAYOUT: Hero Sidebar
   Two-column layout with vertical category links
   ============================================ */
.moo-faq-hero-sidebar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 40px;
    padding-left: max(40px, calc((100% - 1320px) / 2));
    padding-right: max(40px, calc((100% - 1320px) / 2));
    /* Default gradient bg if no image provided */
    background: linear-gradient(135deg, #090979 0%, #0d9488 50%, #00d4ff 100%);
    background-size: cover;
    background-position: center;
}

.moo-faq-hero-sidebar .faq-sidebar-left {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
}

.moo-faq-hero-sidebar .faq-sidebar-left h2,
.moo-faq-hero-sidebar-grid .faq-sidebar-left h2 {
    font-size: 3.5rem;
    margin: 0 0 1rem;
    color: #fff;
}

.moo-faq-hero-sidebar .faq-sidebar-left .faq-sidebar-subtitle,
.moo-faq-hero-sidebar-grid .faq-sidebar-left .faq-sidebar-subtitle {
    font-size: 1.6rem;
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.7);
}

.moo-faq-hero-sidebar .faq-sidebar-links,
.moo-faq-hero-sidebar-grid .faq-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.moo-faq-hero-sidebar .faq-sidebar-link,
.moo-faq-hero-sidebar-grid .faq-sidebar-link {
    padding: 1rem 0 0;
    color: #F0F6F6;
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
    font-size: 1.8rem;
    transition: all 0.2s ease;
    font-weight: 300;
}

.moo-faq-hero-sidebar .faq-sidebar-link:hover,
.moo-faq-hero-sidebar-grid .faq-sidebar-link:hover {
    color: #fff;
    padding-left: 5px;
    background: transparent;
}

.moo-faq-hero-sidebar .faq-sidebar-link.active,
.moo-faq-hero-sidebar-grid .faq-sidebar-link.active {
    color: #48F3ED;
    font-weight: 400;
    background: transparent;
}

.moo-faq-hero-sidebar .faq-sidebar-right {
    flex: 1;
}

.moo-faq-hero-sidebar .faq-sidebar-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2.2rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 20px;
}

.moo-faq-hero-sidebar .faq-sidebar-category-title::before {
    content: "::";
    color: #47f3ed;
    font-size: 3.2rem;
    line-height: 3rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    margin: -0.6rem 0 0;
}

.moo-faq-hero-sidebar .faq-sidebar-content {
    display: none;
}

.moo-faq-hero-sidebar .faq-sidebar-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.moo-faq-hero-sidebar .moo-powercat-faq-widget {
    background: transparent;
    margin: 0;
}

/* Responsiveness for Hero Sidebar */
@media (max-width: 768px) {
    .moo-faq-hero-sidebar {
        flex-direction: column;
        padding: 40px 20px;
        gap: 25px;
    }

    .moo-faq-hero-sidebar .faq-sidebar-left {
        flex: none;
        text-align: center;
    }

    .moo-faq-hero-sidebar .faq-sidebar-links,
    .moo-faq-hero-sidebar-grid .faq-sidebar-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px 15px;
    }

    .moo-faq-hero-sidebar .faq-sidebar-link,
    .moo-faq-hero-sidebar-grid .faq-sidebar-link {
        padding: 1rem 10px 1.5rem;
        background: rgba(255, 255, 255, .1);
        border-radius: 20px;
        line-height: 1rem;
        font-size: 1.6rem;
        padding: 2rem 3rem;
        line-height: 0;
    }

    .moo-faq-hero-sidebar .faq-sidebar-link.active,
    .moo-faq-hero-sidebar-grid .faq-sidebar-link.active {
        background: rgba(0, 212, 255, 0.2);
    }

    .moo-faq-hero-sidebar .faq-sidebar-link:hover,
    .moo-faq-hero-sidebar-grid .faq-sidebar-link:hover {
        padding-left: 0;
    }
}

/* ============================================
   Hero Sidebar Grid Layout (always-open, 2-col)
   ============================================ */
.moo-faq-hero-sidebar-grid {
    display: flex;
    flex-direction: row;
    gap: 50px;
    padding: 60px 50px;
    padding-left: max(50px, calc((100% - 1320px) / 2));
    padding-right: max(50px, calc((100% - 1320px) / 2));
    background: linear-gradient(135deg, #1e3a5f 0%, #0d9488 50%, #06b6d4 100%);
    background-size: cover;
    background-position: center;
}

.moo-faq-hero-sidebar-grid .faq-sidebar-left {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
}

.moo-faq-hero-sidebar-grid .faq-sidebar-left .faq-sidebar-subtitle {
    font-size: 1.6rem;
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.7);
}

.moo-faq-hero-sidebar-grid .faq-sidebar-right {
    flex: 1;
}

.moo-faq-hero-sidebar-grid .faq-sidebar-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2.2rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 20px;
}

.moo-faq-hero-sidebar-grid .faq-sidebar-category-title::before {
    content: "::";
    color: #47f3ed;
    font-size: 3.2rem;
    line-height: 3rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    margin: -0.6rem 0 0;
}

.moo-faq-hero-sidebar-grid .faq-sidebar-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.moo-faq-hero-sidebar-grid .faq-sidebar-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.moo-faq-hero-sidebar-grid .moo-powercat-faq-widget {
    background: transparent;
    margin: 0;
}

/* Two-column grid for FAQ items */
.moo-faq-hero-sidebar-grid .faq-list.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Always-open FAQ styling for grid */
.moo-faq-hero-sidebar-grid .faq-question.always-open {
    cursor: default;
    pointer-events: none;
}

.moo-faq-hero-sidebar-grid .faq-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(10px);
}

.moo-faq-hero-sidebar-grid .faq-question {
    background: transparent !important;
    padding: 0 0 0.5rem;
    margin-bottom: 0.5rem;
}

.moo-faq-hero-sidebar-grid .faq-question-text {
    color: #fff;
    font-weight: 500;
}

.moo-faq-hero-sidebar-grid .faq-answer {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
    padding: 0 !important;
}

.moo-faq-hero-sidebar-grid .faq-content {
    font-size: 90%;
}

/* Responsive: Single column on mobile */
@media (max-width: 768px) {
    .moo-faq-hero-sidebar-grid {
        flex-direction: column;
        padding: 40px 20px;
        gap: 25px;
    }

    .moo-faq-hero-sidebar-grid .faq-sidebar-left {
        flex: none;
        text-align: center;
    }

    .moo-faq-hero-sidebar-grid .faq-sidebar-link {
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
    }

    .moo-faq-hero-sidebar-grid .faq-list.faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth group transition for both sidebar layouts */
.moo-faq-hero-sidebar .faq-sidebar-content,
.moo-faq-hero-sidebar-grid .faq-sidebar-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================
   STYLE: Tabbed
   Category tabs for multi-level FAQs
   ============================================ */
.moo-powercat-faq-widget.style-tabbed .faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--faq-border-color);
    padding-bottom: 0;
}

.moo-powercat-faq-widget.style-tabbed .faq-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    color: var(--faq-text-muted);
    transition: color var(--faq-transition), border-color var(--faq-transition);
}

.moo-powercat-faq-widget.style-tabbed .faq-tab:hover {
    color: var(--faq-accent-color);
}

.moo-powercat-faq-widget.style-tabbed .faq-tab.active {
    color: var(--faq-accent-color);
    border-bottom-color: var(--faq-accent-color);
    font-weight: 600;
}

.moo-powercat-faq-widget.style-tabbed .faq-category {
    display: none;
}

.moo-powercat-faq-widget.style-tabbed .faq-category.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ============================================
   STYLE: Nested
   Hierarchical collapsible groups
   ============================================ */
.moo-powercat-faq-widget.style-nested .faq-category {
    margin-bottom: 1.5rem;
}

.moo-powercat-faq-widget.style-nested .faq-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--faq-accent-color), #4a90d9);
    color: #fff;
    border-radius: var(--faq-border-radius) var(--faq-border-radius) 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    transition: all var(--faq-transition);
}

.moo-powercat-faq-widget.style-nested .is-collapsed .faq-category-header {
    border-radius: var(--faq-border-radius);
}

.moo-powercat-faq-widget.style-nested .faq-category-header:hover {
    background: linear-gradient(135deg, #0052a3, #3d7bc7);
}

.moo-powercat-faq-widget.style-nested .faq-category-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.moo-powercat-faq-widget.style-nested .faq-category-icon::before,
.moo-powercat-faq-widget.style-nested .faq-category-icon::after {
    content: '';
    position: absolute;
    background: #fff;
    transition: transform var(--faq-transition);
}

.moo-powercat-faq-widget.style-nested .faq-category-icon::before {
    width: 12px;
    height: 2px;
    top: 9px;
    left: 4px;
}

.moo-powercat-faq-widget.style-nested .faq-category-icon::after {
    width: 2px;
    height: 12px;
    top: 4px;
    left: 9px;
}

.moo-powercat-faq-widget.style-nested .faq-category.is-collapsed .faq-category-icon::after {
    transform: rotate(0);
}

.moo-powercat-faq-widget.style-nested .faq-category.is-expanded .faq-category-icon::after {
    transform: rotate(90deg);
}

.moo-powercat-faq-widget.style-nested .faq-category-content {
    border: 1px solid var(--faq-border-color);
    border-top: none;
    border-radius: 0 0 var(--faq-border-radius) var(--faq-border-radius);
    overflow: hidden;
}

.moo-powercat-faq-widget.style-nested .faq-list {
    gap: 0;
}

.moo-powercat-faq-widget.style-nested .faq-item {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--faq-border-color);
}

.moo-powercat-faq-widget.style-nested .faq-item:last-child {
    border-bottom: none;
}

.moo-powercat-faq-widget.style-nested .faq-item:hover {
    border-color: var(--faq-border-color);
}

.faq-sidebar-link {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
    font-size: 2rem;
    transition: color 0.2s ease;
    font-weight: 400;
}

.faq-sidebar-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2.4rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 20px;
}

/* Limit height to prevent layout shift (Desktop only) */
@media (min-width: 769px) {
    .faq-sidebar-right .moo-powercat-faq-widget .faq-list {
        /* Height is set dynamically by JS */
        padding-right: 10px;
        padding-top: 2px;
        /* Space for scrollbar */
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
        padding-bottom: 2px;
    }

    /* Custom Scrollbar for WebKit */
    .faq-sidebar-right .moo-powercat-faq-widget .faq-list::-webkit-scrollbar {
        width: 6px;
    }

    .faq-sidebar-right .moo-powercat-faq-widget .faq-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .faq-sidebar-right .moo-powercat-faq-widget .faq-list::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
}

.faq-sidebar-right .moo-powercat-faq-widget.style-minimal .faq-item {
    padding: 1.25rem 2rem;
}


/* ============================================
   BEHAVIOR: All Open
   All answers visible, no collapse
   ============================================ */
.moo-powercat-faq-widget.behavior-all-open .faq-question {
    cursor: default;
}

.moo-powercat-faq-widget.behavior-all-open .faq-question:hover {
    background: var(--faq-bg);
}

.moo-powercat-faq-widget.behavior-all-open .faq-answer {
    max-height: none;
    opacity: 1;
    display: block !important;
}

.moo-powercat-faq-widget.behavior-all-open .faq-icon {
    display: none;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 768px) {
    .moo-powercat-faq-widget {
        --faq-font-size: 15px;
        --faq-padding: 1rem;
    }

    .moo-powercat-faq-widget.style-tabbed .faq-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .moo-powercat-faq-widget.style-tabbed .faq-tabs::-webkit-scrollbar {
        display: none;
    }

    .moo-powercat-faq-widget.style-tabbed .faq-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .moo-powercat-faq-widget * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .moo-powercat-faq-widget .faq-answer {
        max-height: none !important;
        opacity: 1 !important;
        display: block !important;
    }

    .moo-powercat-faq-widget .faq-icon {
        display: none;
    }
}
