/* Hide default marker */
.tmvcs-dop-accordion summary::-webkit-details-marker { display: none; }

/* --- ACCORDION RESET --- */
details > summary {
    list-style: none; /* Remove default triangle */
    cursor: pointer;    
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

/* Remove default marker in Webkit/Chrome */
details > summary::-webkit-details-marker {
    display: none;
}

/* --- THE +/- ICON --- */
details > summary::after {
    content: "+"; 
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* When open, change content to - */
details[open] > summary::after {
    content: "\2212"; 
    transform: rotate(180deg);
}

/* --- THE SMOOTH ANIMATION --- */
details .tmvcs-dop-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    overflow: hidden; /* Required to hide content when closed */
}

details .tmvcs-dop-panel > * {
    min-height: 0;
}


/*  Open State */
details[open] .tmvcs-dop-panel {
    grid-template-rows: 1fr;
    opacity: 1;
    padding-bottom: 16px;
}
