/* Default list */
ul.wp-block-list {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--20);

    .wp-block-column &,
    &:has(.wp-block-list-item__icon),
    &:has(.button-icon) {
        padding-left: 20px;
    }
}

/* Unstyled list */
ul.is-style-unstyled,
ol.is-style-unstyled {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;

    & li {
        padding-left: 0;

        & + .button-icon,
        & > svg {
            display: none;
        }
        
        &::before {
            content: none;
        }
    }
}

/* Lists with links next to icons */
ul.wp-block-list li svg:has(+ a),
ol.wp-block-list li svg:has(+ a) {
    transition: transform 0.15s ease;
}

ul.wp-block-list li svg:has(+ a:hover),
ol.wp-block-list li svg:has(+ a:hover) {
    transform: translateX(3px);
}
