/* ================================================
   ESPRESSIMO PRODUCT FAQ ACCORDION WIDGET Proto V1
   ================================================ */

.elementor-widget-espressimo_product_faq_accordion_proto_v1,
.elementor-widget-espressimo_product_faq_accordion_proto_v1 .elementor-widget-container {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.esp-faq {
    width: 100%;
    background: #fff9f2;
    border-bottom: 1px solid #e6dad4;
    direction: rtl;
}

/* ── Each accordion row ── */
.esp-faq__section {
    border-bottom: 1px solid #e6dad4;
}

.esp-faq__section:last-child {
    border-bottom: none;
}

/* Remove native details marker */
.esp-faq__section summary {
    list-style: none;
}
.esp-faq__section summary::-webkit-details-marker {
    display: none;
}

/* ── Trigger row ── */
.esp-faq__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    cursor: pointer;
    transition: background 0.2s;
}

.esp-faq__trigger:hover {
    background: #f6ede3;
}

.esp-faq__trigger-label {
    font-family: 'Dialect PM', sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: #522c25;
}

.esp-faq__chevron {
    color: #522c25;
    opacity: 0.5;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.esp-faq__section[open] .esp-faq__chevron {
    transform: rotate(180deg);
}

/* ── Panel content ── */
.esp-faq__panel {
    padding: 0 48px 40px;
}

/* ── Specs Grid ── */
.esp-faq__spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid #e6dad4;
    border-radius: 12px;
    overflow: hidden;
}

.esp-faq__spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid #e6dad4;
}

.esp-faq__spec-row:nth-child(odd) {
    background: rgba(246, 237, 227, 0.4);
    border-left: 1px solid #e6dad4;
}

.esp-faq__spec-row:nth-child(even) {
    background: #fff;
}

.esp-faq__spec-row:nth-last-child(-n+2) {
    border-bottom: none;
}

.esp-faq__spec-label {
    font-family: 'Dialect PM', sans-serif;
    font-size: 17px;
    color: #75605a;
    opacity: 1;
}

.esp-faq__spec-value {
    font-family: 'Dialect PM', sans-serif;
    font-size: 17px;
    font-weight: bold;
    color: #522c25;
    text-align: left;
}

/* ── Inner FAQ items ── */
.esp-faq__qa-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.esp-faq__qa-item {
    border: 1px solid #e6dad4;
    border-radius: 12px;
    overflow: hidden;
}

.esp-faq__qa-item summary {
    list-style: none;
}
.esp-faq__qa-item summary::-webkit-details-marker {
    display: none;
}

.esp-faq__qa-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    cursor: pointer;
    text-align: right;
    transition: background 0.2s;
}

.esp-faq__qa-q:hover {
    background: #f6ede3;
}

.esp-faq__qa-q-text {
    font-family: 'Dialect PM', sans-serif;
    font-size: 19px;
    font-weight: bold;
    color: #522c25;
}

.esp-faq__qa-chevron {
    color: #522c25;
    opacity: 0.4;
    flex-shrink: 0;
    margin-right: 16px;
    transition: transform 0.3s ease;
}

.esp-faq__qa-item[open] .esp-faq__qa-chevron {
    transform: rotate(180deg);
}

/* ── Documents Grid ── */
.esp-faq__docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.esp-faq__doc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e6dad4;
    border-radius: 12px;
    padding: 16px 24px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.esp-faq__doc-link:hover {
    background: #f6ede3;
    border-color: rgba(196, 101, 0, 0.4);
}

.esp-faq__doc-name {
    font-family: 'Dialect PM', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #522c25;
    transition: color 0.15s;
    display: block;
}

.esp-faq__doc-link:hover .esp-faq__doc-name {
    color: #8B3A00;
}

.esp-faq__doc-meta {
    font-family: 'Dialect PM', sans-serif;
    font-size: 15px;
    color: #75605a;
    opacity: 1;
    margin-top: 2px;
    display: block;
}

.esp-faq__doc-dl {
    font-family: 'Dialect PM', sans-serif;
    font-size: 14px;
    color: #c46500;
    opacity: 0.7;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.esp-faq__doc-link:hover .esp-faq__doc-dl {
    opacity: 1;
}

/* ── Inner FAQ answer ── */
.esp-faq__qa-a {
    border-top: 1px solid #e6dad4;
    padding: 16px 24px 20px;
    font-family: 'Dialect PM', sans-serif;
    font-size: 18px;
    line-height: 30px;
    color: #522c25;
    opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .esp-faq__trigger {
        padding: 20px 24px;
    }
    .esp-faq__trigger-label {
        font-size: 22px;
    }
    .esp-faq__panel {
        padding: 0 24px 32px;
    }
    .esp-faq__spec-row {
        padding: 14px 20px;
    }
}

@media (max-width: 560px) {
    .esp-faq__trigger {
        padding: 16px 18px;
    }
    .esp-faq__trigger-label {
        font-size: 20px;
    }
    .esp-faq__panel {
        padding: 0 18px 24px;
    }
    /* Spec grid → single column */
    .esp-faq__spec-grid {
        grid-template-columns: 1fr;
    }
    .esp-faq__spec-row {
        padding: 14px 18px;
        border-left: none !important;
    }
    .esp-faq__spec-row:nth-last-child(-n+2) {
        border-bottom: 1px solid #e6dad4;
    }
    .esp-faq__spec-row:last-child {
        border-bottom: none;
    }
    .esp-faq__spec-label,
    .esp-faq__spec-value {
        font-size: 16px;
    }
    /* Inner FAQ items → comfortable tap padding, full width */
    .esp-faq__qa-q {
        padding: 16px 18px;
    }
    .esp-faq__qa-q-text {
        font-size: 18px;
    }
    .esp-faq__qa-a {
        padding: 14px 18px 18px;
        font-size: 17px;
        line-height: 28px;
    }
    /* Documents grid → single column */
    .esp-faq__docs-grid {
        grid-template-columns: 1fr;
    }
    .esp-faq__doc-link {
        padding: 16px 18px;
    }
}
