/* Structural Styles */
.ami-accordion-wrapper {
    border-bottom: 1px solid #e5e5e5; /* Bottom border for the whole wrapper to close the list */
    width: 100%;
}

.ami-accordion-item {
    border-top: 1px solid #e5e5e5;
    overflow: hidden;
    position: relative; /* Ensure stacking context */
}

.ami-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
    width: 100%;
    /* Default typography */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    
    /* Touch target fix */
    min-height: 44px; /* Standard mobile touch size */
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on tap */
}

.ami-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    line-height: 1;
    flex-shrink: 0; /* Prevents icon squashing */
    margin-left: 10px; /* Spacing from text */
}

/* Ensure SVG is sized correctly */
.ami-accordion-icon svg {
    display: block; /* Removes mysterious bottom gap */
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Open State */
.ami-accordion-item.is-active .ami-accordion-icon {
    transform: rotate(45deg);
}

/* Content */
.ami-accordion-content {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

/* Editor preview fix */
.elementor-editor-active .ami-accordion-content {
    display: block; 
}