/* Accordion Wrapper */
.lcake-accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-family: inherit;
    overflow: hidden;
}

/* Accordion Item */
.lcake-accordion-item {
    border-bottom: 1px solid #ddd;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.lcake-accordion-item:last-child {
    border-bottom: none;
}

.lcake-accordion-item.active .lcake-accordion-header {
    background-color: #e9e9e9;
    box-shadow: inset 3px 0 0 0 #0073e6;
}

/* Accordion Header */
.lcake-accordion-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 12px;
    user-select: none;
    outline-offset: 2px;
}

.lcake-accordion-header:focus {
    outline: 2px solid #0073e6;
    background-color: #f0f8ff;
}

.lcake-accordion-header:hover .lcake-accordion-icon,
.lcake-accordion-header:focus .lcake-accordion-icon {
    color: #0073e6;
    transform: scale(1.1);
}

/* Icon Positioning */
.lcake-accordion-header.icon-left {
    flex-direction: row-reverse;
}

.lcake-accordion-header.icon-left .lcake-accordion-icon {
    margin-right: 10px;
}

.lcake-accordion-header.icon-right {
    flex-direction: row;
}

.lcake-accordion-header.icon-right .lcake-accordion-icon {
    margin-left: 10px;
}

/* Accordion Title */
.lcake-accordion-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    color: #222;
    line-height: 1.4;
}

/* Accordion Icon */
.lcake-accordion-icon {
    display: flex;
    align-items: center;
    font-size: 1.15em;
    color: #555;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lcake-accordion-icon svg,
.lcake-accordion-icon i {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    fill: currentColor;
}

.lcake-accordion-icon-active {
    display: none;
}

.lcake-accordion-item.active .lcake-accordion-icon-active {
    display: inline-block;
    color: #0073e6;
}

.lcake-accordion-item.active .lcake-accordion-icon> :not(.lcake-accordion-icon-active) {
    display: none;
}

/* Accordion Content */
.lcake-accordion-content {
    padding: 0 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.lcake-accordion-item .lcake-accordion-content {
    display: none;
}

.lcake-accordion-item.active .lcake-accordion-content {
    display: block;
}

/* Content Body */
.lcake-accordion-body p {
    margin-bottom: 1em;
}

/* Responsive */
@media (max-width: 768px) {
    .lcake-accordion-header {
        padding: 12px 15px;
    }

    .lcake-accordion-content {
        padding: 12px 15px 20px 15px;
    }
}