/* ==========================================================
   WEYWOT SEO FAQ B2B - BAZOWE ZMIENNE
   ========================================================== */
.weywot-faq-wrapper {
    /* Wartości domyślne (A&J Premium), nadpisywane przez styl inline w PHP */
    --wfaq-bg: #ffffff;
    --wfaq-title: #19344f;
    --wfaq-text: #444444;
    --wfaq-accent: #c0955e;
    --wfaq-border: #edf1f5;
    
    margin: 30px 0;
}

.wfaq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Pojedynczy kafelek pytania */
.wfaq-item {
    background: var(--wfaq-bg);
    border: 1px solid var(--wfaq-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(25, 52, 79, 0.04);
    transition: all 0.3s ease;
}

.wfaq-item:hover, .wfaq-item.active {
    box-shadow: 0 10px 25px rgba(192, 149, 94, 0.1);
    border-color: var(--wfaq-accent);
}

/* Belka Pytania */
.wfaq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    text-align: left;
    transition: background 0.3s;
}

.wfaq-question {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--wfaq-title);
    padding-right: 20px;
}

.wfaq-icon {
    flex-shrink: 0;
    color: var(--wfaq-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animacja Ikony na krzyżyk po otwarciu */
.wfaq-item.active .wfaq-icon {
    transform: rotate(45deg);
}

/* Panel z odpowiedzią */
.wfaq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wfaq-panel-inner {
    padding: 0 30px 30px 30px;
    font-size: 1.05rem;
    color: var(--wfaq-text);
    line-height: 1.7;
}

/* Formatowanie bogatych tekstów (edytora) wewnątrz odpowiedzi */
.wfaq-panel-inner p { margin-top: 0; margin-bottom: 15px; }
.wfaq-panel-inner p:last-child { margin-bottom: 0; }
.wfaq-panel-inner ul { margin-top: 10px; padding-left: 20px; }
.wfaq-panel-inner li { margin-bottom: 8px; }

@media (max-width: 768px) {
    .wfaq-trigger { padding: 18px 20px; }
    .wfaq-panel-inner { padding: 0 20px 20px 20px; }
    .wfaq-question { font-size: 1.05rem; }
}