/* -------------------------------------------
    Custom Icon List
     - alpha-icon-lists
     - Compatibility with Elementor
---------------------------------------------- */

@import '../../../assets/sass/config';
@import '../../../assets/sass/direction';

.alpha-icon-lists {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;

    li {
        transition: background-color .3s;

        a {
            color: inherit;
        }

        i {
            vertical-align: middle;
        }
    }

    li:after {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        border-width: 0 0 1px 0;
    }

    .list-title {
        margin: 0;
    }

    &.h-align-center {
        text-align: center;

        li:after {
            margin-left: auto;
            margin-right: auto;
        }
    }
    &.h-align-right {
        text-align: right;
        li:after {
            margin-left: auto;
        }
    }

    &.inline-type {
        display: flex;
        flex-wrap: wrap;

        li:after {
            top: 50%;
            left: 100%;
            right: auto;
            transform: translateY(-50%);
            border-width: 0 1px 0 0;
            height: 14px;
        }
    }
    &.v-align-middle {
        text-align: right;
        align-items: center;
    }

    &.v-align-bottom {
        text-align: right;
        align-items: flex-end;
    }

    &.numeric-lists {
        li a {
            &:#{$before} {
                content: attr(data-id);
                margin-#{$right}: 5px;
            }
        }
    }
}

.alpha-icon-list-item {
    position: relative;   

    &:hover {
        color: var(--alpha-primary-color);
    }
}

.a-icon-calendar {
    margin-#{$left}: 1px;
}

// Compatibility with Elementor
.elementor-widget .elementor-icon-list-icon {
    display: inline-flex;
}
.elementor-widget .elementor-icon-list-icon i {
    width: auto;
}
.elementor-widget .elementor-icon-list-icon + .elementor-icon-list-text {
    padding-left: 8px;
}
.elementor-icon-list-text a {
    color: inherit;

    &:hover {
        color: var(--alpha-primary-color);
    }
}
.elementor-widget .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item:after {
    position: absolute;
}
