:root {
    --accordion-duration: 0.6s;
}

.eael-accordion_media-wrapper {
    margin: 0 auto;
    display: flex;
}

/* Left side - Feature buttons */
.eael-accordion_media-lists {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eael-accordion_media-list {
    background: #ececf0;
    border: none;
    border-radius: 15px;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    transition: background var(--accordion-duration) ease-in-out,
        box-shadow var(--accordion-duration) ease-in-out;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.eael-accordion_media-list.active {
    background-color: #f5f5f6;
}

.eael-accordion_media-list:not(.active):hover {
    background-color: #414141;
}

.eael-accordion_media-list:not(.active):hover .eael-accordion_media-icon {
    border-color: #fff;
}

.eael-accordion_media-icon {
    width: 30px;
    height: 30px;
    border: 1px solid #1d1d1f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 14px;
    color: #1d1d1f;
    position: relative;
}

.eael-accordion_media-icon .close,
.eael-accordion_media-icon .open {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--accordion-duration) ease-in-out,
        transform var(--accordion-duration) ease-in-out;
}

.eael-accordion_media-icon .close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    visibility: visible;
}

.eael-accordion_media-icon .open {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
    visibility: hidden;
}

.eael-accordion_media-list.active .eael-accordion_media-icon .close {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
    visibility: hidden;
}

.eael-accordion_media-list.active .eael-accordion_media-icon .open {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    visibility: visible;
}

.eael-accordion_media-content {
    flex: 1;
    min-width: 0;
}

.eael-accordion_media-title {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 0;
    transition: margin-bottom var(--accordion-duration) ease-in-out;
    line-height: 35px;
}

.eael-accordion_media-list.active .eael-accordion_media-title {
    margin-bottom: 12px;
}

.eael-accordion_media-description {
    font-size: 15px;
    line-height: 1.47;
    color: #000000;
    height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    visibility: hidden;
    transition: height var(--accordion-duration) ease-in-out,
        opacity var(--accordion-duration) ease-in-out,
        padding-top var(--accordion-duration) ease-in-out,
        padding-bottom var(--accordion-duration) ease-in-out;
}

.eael-accordion_media-list.active .eael-accordion_media-description {
    opacity: 1;
    visibility: visible;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Right side - Image Viewer */
.eael-accordion_media-images {
    position: relative;
    width: 100%;
    height: 50vh;
    border-radius: 30px;
    display: flex;
}

.eael-accordion_media-image {
    position: absolute;
    width: 100%;
    height: 50vh !important;
    border-radius: 30px !important;
    object-fit: cover;
    transition: all var(--accordion-duration) ease-in-out;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    border-radius: 30px;
    transition: opacity var(--accordion-duration) ease-in-out,
        transform var(--accordion-duration) ease-in-out;
}

//Slide Up
.eael-accordion_animation-slide-top
    .eael-accordion_media-images
    .eael-accordion_media-image {
    transform: translateY(100px) scale(0.9);
}
.eael-accordion_animation-slide-top
    .eael-accordion_media-images
    .eael-accordion_media-image.active {
    transform: translateY(0) scale(1);
}

//Slide Down
.eael-accordion_animation-slide-bottom
    .eael-accordion_media-images
    .eael-accordion_media-image {
    transform: translateY(-100px) scale(0.9);
}
.eael-accordion_animation-slide-bottom
    .eael-accordion_media-images
    .eael-accordion_media-image.active {
    transform: translateY(0) scale(1);
}

//Slide Left
.eael-accordion_animation-slide-left
    .eael-accordion_media-images
    .eael-accordion_media-image {
    transform: translateX(-100px) scale(0.9);
}
.eael-accordion_animation-slide-left
    .eael-accordion_media-images
    .eael-accordion_media-image.active {
    transform: translateX(0) scale(1);
}

//Slide Right
.eael-accordion_animation-slide-right
    .eael-accordion_media-images
    .eael-accordion_media-image {
    transform: translateX(100px) scale(0.9);
}
.eael-accordion_animation-slide-right
    .eael-accordion_media-images
    .eael-accordion_media-image.active {
    transform: translateX(0) scale(1);
}

//Zoom In
.eael-accordion_animation-zoom-in
    .eael-accordion_media-images
    .eael-accordion_media-image {
    transform: scale(0.7);
}
.eael-accordion_animation-zoom-in
    .eael-accordion_media-images
    .eael-accordion_media-image.active {
    transform: scale(1);
}

//Zoom Out
.eael-accordion_animation-zoom-out
    .eael-accordion_media-images
    .eael-accordion_media-image {
    transform: scale(1.4);
}
.eael-accordion_animation-zoom-out
    .eael-accordion_media-images
    .eael-accordion_media-image.active {
    transform: scale(1);
}

// Fade Slide Up
.eael-accordion_animation-fade-top
    .eael-accordion_media-images
    .eael-accordion_media-image {
    transform: translateY(60px) scale(0.95);
}
.eael-accordion_animation-fade-top
    .eael-accordion_media-images
    .eael-accordion_media-image.active {
    transform: translateY(0) scale(1);
}

//Rotate Zoom
.eael-accordion_animation-rotate-zoom
    .eael-accordion_media-images
    .eael-accordion_media-image {
    transform: scale(0.8) rotate(-10deg);
}
.eael-accordion_animation-rotate-zoom
    .eael-accordion_media-images
    .eael-accordion_media-image.active {
    transform: scale(1) rotate(0deg);
}

.eael-accordion_media-image.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    border-radius: 30px;
}

@media (max-width: 1024px) {
    .eael-accordion_media-wrapper {
        // grid-template-columns: 1fr;
        gap: 40px;
    }

    .eael-accordion_media-lists {
        padding-right: 0;
    }

    .eael-accordion_media-images {
        order: 1;
    }
}

@media (max-width: 768px) {
    .section-product-viewer {
        padding: 40px 20px;
    }

    .eael-accordion_media-list {
        padding: 16px 20px;
    }

    .eael-accordion_media-title {
        font-size: 16px;
    }

    .eael-accordion_media-description {
        font-size: 15px;
    }
}

@media only screen and (max-width: 767px) {
    .eael-accordion_media-wrapper {
        flex-direction: column !important;
        .eael-accordion_media-lists {
            width: 100% !important;
        }
    }
}
