/* ─── MPK FAQ Widget Styles ───────────────────────────────────────────── */

.mpk-faq-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.mpk-faq-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.mpk-faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mpk-faq-item details[open] {
    border-color: #333466;
}

/* Pytanie (summary) */
.mpk-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05em;
    padding: 14px 18px;
    list-style: none;
    user-select: none;
    gap: 12px;
    color: #1a1a2e;
    background-color: #f9f9fc;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* Usuń domyślny trójkąt przeglądarki */
.mpk-faq-question::-webkit-details-marker,
.mpk-faq-question::marker {
    display: none;
}

.mpk-faq-question:hover {
    background-color: #eeeef8;
}

details[open] .mpk-faq-question {
    color: #333466;
    background-color: #eeeef8;
    border-bottom: 1px solid #ddd;
}

.mpk-faq-question-text {
    flex: 1;
}

/* Ikona strzałki */
.mpk-faq-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #333466;
    transition: transform 0.25s ease;
}

details[open] .mpk-faq-icon {
    transform: rotate(180deg);
}

/* Odpowiedź */
.mpk-faq-answer {
    padding: 14px 18px 14px 24px;
    border-left: 3px solid #333466;
    background: #fff;
    font-size: 0.97em;
    line-height: 1.7;
    color: #444;
}

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

.mpk-faq-answer a {
    color: #333466;
    text-decoration: underline;
}

.mpk-faq-answer a:hover {
    color: #000;
}

/* Animacja otwarcia */
details[open] .mpk-faq-answer {
    animation: mpk-faq-slide-in 0.2s ease forwards;
}

@keyframes mpk-faq-slide-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0);    }
}
