/* 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;
}


/* Ensure images in the footer (like the EHO logo) align properly */
.tmvcs-dop-footer-static img {
    vertical-align: middle;
    margin-right: 8px;
}

.tmvcs-dop-inline-container[data-content-layout="expanded"] p strong:first-child {
    display: block;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1.1em;
    color: #000;
    text-transform: uppercase;
}

.dop-back-to-top {
    font-size: 0.8em;
    margin-bottom: 10px;
    text-align: right;
}

/* Only apply dashed borders and centering inside the WordPress Editor */
.wp-admin .tmvcs-block-preview {
    padding: 1.5em;
    border: 1px dashed #999;
    background-color: #f9f9f9;
    text-align: center;
}

/* Ensure the frontend container is clean */
.tmvcs-dop-inline-container {
    text-align: left; /* Reset centering */
    border: none;     /* Reset dashed border */
}

/* Fix the Static Footer alignment */
.tmvcs-dop-footer-static {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #666;
}
