/* --- CSS FOR NATIVE <details> ACCORDION --- */

.am-faq-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-top: 1px solid #e0e0e0;
}

.am-faq-item {
    border-bottom: 1px solid #e0e0e0;
}

/* Style the question (the <summary> tag) */
.am-faq-question {
    all: unset; /* Powerful reset to avoid theme conflicts */
    display: block; 
    cursor: pointer;
    padding: 18px 50px 18px 20px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    position: relative; /* For the icon */
}

/* Remove the default arrow/marker from the <summary> element */
.am-faq-question::-webkit-details-marker {
    display: none;
}
.am-faq-question::marker {
    display: none;
}


.am-faq-question:hover {
    background-color: #f7f7f7;
}

/* The '+' icon on the right */
.am-faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: #0073aa;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

/* When the accordion is open, rotate the icon */
.am-faq-item[open] > .am-faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

/* Style the answer content */
.am-faq-answer-content {
    padding: 0 20px 20px 20px;
    color: #555;
    line-height: 1.6;
}
