/* ======================================================
   ZDrive Product FAQs – Frontend (Final Polished)
   Author: zdrive
   Font: Barlow (global)
   Main Color: #AC8510
   ====================================================== */

.zdrive-product-faqs {
    margin-top: 40px;
    font-family: inherit; /* uses global Barlow */
}

/* FAQ Card */
.zdrive-faq {
    margin-bottom: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* =========================
   QUESTION BUTTON
   ========================= */
.zdrive-faq-q {
    width: 100%;
    background: #f9f9f9;
    border: none;
    padding: 16px 20px;

    font-family: inherit;
    font-weight: 600;
    font-size: 16px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    color: #222;
    text-align: left;
    cursor: pointer;

    /* REMOVE ALL DEFAULT BUTTON BEHAVIOR */
    outline: none;
    border-radius: 0;
    box-shadow: none;

    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;

    transition: background 0.25s ease, color 0.25s ease;
}

/* Hover (desktop) */
.zdrive-faq-q:hover {
    background: #AC8510;
    color: #fff;
}

/* Remove Safari pink focus/active */
.zdrive-faq-q:focus,
.zdrive-faq-q:active,
.zdrive-faq-q:focus-visible {
    background: #f9f9f9;
    color: #222;
    outline: none;
}

/* =========================
   ACTIVE STATE
   ========================= */
.zdrive-faq.active .zdrive-faq-q {
    background: #AC8510;
    color: #fff;
}

/* =========================
   ICON
   ========================= */
.zdrive-faq-icon {
    font-size: 20px;
    color: #AC8510;
    transition: transform 0.3s ease, color 0.3s ease;
    user-select: none;
}

.zdrive-faq.active .zdrive-faq-icon {
    transform: rotate(180deg);
    color: #fff;
}

/* =========================
   ANSWER PANEL
   ========================= */
.zdrive-faq-a {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    padding: 0 20px;
    background: #fff;

    border-left: 3px solid #AC8510;

    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        padding 0.25s ease;
}

.zdrive-faq.active .zdrive-faq-a {
    max-height: 600px;
    opacity: 1;
    padding: 16px 20px;
}

/* Text inside answer */
.zdrive-faq-a p {
    margin: 0 0 10px;
    line-height: 1.6;
    font-family: inherit;
}

.zdrive-faq-a p:last-child {
    margin-bottom: 0;
}

/* =========================
   MOBILE OPTIMIZATION
   ========================= */
@media (max-width: 768px) {
    .zdrive-faq-q {
        padding: 16px;
        font-size: 15px;
    }

    .zdrive-faq.active .zdrive-faq-a {
        padding: 14px 16px;
    }
}




/* ======================================================
   ZDRIVE FAQ — FIX QUESTION TEXT CUTTING (MOBILE SAFE)
   ====================================================== */

/* Allow question text to wrap properly */
.zdrive-faq-q {
    white-space: normal;
    overflow: hidden;
}

/* Target the question text span */
.zdrive-faq-q span:first-child {
    flex: 1;
    min-width: 0;

    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;

    line-height: 1.4;
}

/* Keep icon fixed and visible */
.zdrive-faq-icon {
    flex-shrink: 0;
    margin-left: 12px;
}

/* Mobile-specific tightening */
@media (max-width: 768px) {
    .zdrive-faq-q {
        align-items: flex-start;
    }

    .zdrive-faq-icon {
        margin-top: 2px;
    }
}
